1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

31557 Commits

Author SHA1 Message Date
498646aa17
fe310: Remove vendor plic driver 2020-08-31 16:26:43 +02:00
bef82edf43
fe310: Adapt peripherals to use the plic driver 2020-08-31 16:26:43 +02:00
1d999a1335
fe310: Make header guard unique for plic vendor header
Otherwise it conflicts with the other plic.h header
2020-08-31 16:26:43 +02:00
3180a11b51
fe310: Add PLIC peripheral driver 2020-08-31 16:26:42 +02:00
Leandro Lanzieri
5c3f7bde0c
Merge pull request #14780 from fjmolinas/pr_efm32_lpetimer_cleanup
cpu/efm32/timer: cleanups and improvements
2020-08-31 15:41:23 +02:00
82ac139107
Merge pull request #14901 from benpicco/cpu/fe310/picolib-fix
picolibc: fix build for fe310
2020-08-31 15:37:03 +02:00
Martine S. Lenders
8386ec9fac
sock: make sock implementation dependency of sock API + stack
This is the logical continuation of [#12931] for _all_ `sock`
implementations.

[#12931]: https://github.com/RIOT-OS/RIOT/pull/12931
2020-08-31 15:17:22 +02:00
Benjamin Valentin
bd57640d5b drivers/periph_common: RTC: fix doxygen 2020-08-31 14:16:42 +02:00
Gunar Schorcht
d63d58ac0b pkg: use inline function for GPIO comparison
The expandable GPIO API requires the comparison of structured GPIO types. This means that inline functions must be used instead of direct comparisons. For the migration process, packages must first be changed so that they use the inline comparison functions.
2020-08-31 13:11:05 +02:00
Gunar Schorcht
6e18769dbb tests: use inline functions for GPIO comparison
The expandable GPIO API requires the comparison of structured GPIO types. This means that inline functions must be used instead of direct comparisons. For the migration process, tests must first be changed so that they use the inline comparison functions.
2020-08-31 13:11:05 +02:00
Gunar Schorcht
6d61381d2a drivers: use inline functions for GPIO comparisons
The expandable GPIO API requires the comparison of structured GPIO types. This means that inline functions must be used instead of direct comparisons. For the migration process, drivers must first be changed so that they use the inline comparison functions.
2020-08-31 13:10:28 +02:00
Gunar Schorcht
147b79169c drivers/periph/gpio: add comparison functions
The expandable GPIO API requires the comparison of structured GPIO types. This means that inline functions must be used instead of direct comparisons. For the migration process, drivers and other modules must first be changed so that they use the inline comparison functions.
2020-08-31 13:10:28 +02:00
Benjamin Valentin
c0397668ca picolibc: fix build for fe310
We need to include `irq.h` for `irq_disable()`.
2020-08-31 12:56:56 +02:00
f264b049aa
Merge pull request #14888 from bergzand/pr/fe310/gpio_atomics
fe310: Use read-modify-store instruction for GPIO bitwise operations
2020-08-31 11:11:54 +02:00
Leandro Lanzieri
083b73d71b
Merge pull request #14828 from wosym/candev_native_check
tests/candev: Prevent user from attempting to use native can interface on non-native board
2020-08-31 11:06:02 +02:00
Leandro Lanzieri
64a3b79019
Merge pull request #14885 from miri64/gnrc_ipv6_nib/cleanup/sock_dns-dep
gnrc_ipv6_nib: don't pull in RDNSS support with sock_dns
2020-08-31 11:00:09 +02:00
f9a4dddc90
boards/stm32f3disco: use shared default clock configuration 2020-08-31 10:49:44 +02:00
9f12908644
boards/fox: iotlab: use shared default clock configuration 2020-08-31 10:49:44 +02:00
6a6084dfe7
boards/nucleo-f3xx: use shared default clock configuration 2020-08-31 10:49:44 +02:00
Leandro Lanzieri
2e79e00ca7
treewide: change Kconfig prefix for module symbols
This changes the prefix used for the symbols that reprensent modules
(not the ones generated from USEMODULE).

MOD_ => MODULE_
2020-08-31 09:57:28 +02:00
Francisco Molina
8747723392
tests/periph_timer_periodic: remove need for TIMER_CHANNEL_NUMOF 2020-08-31 09:38:33 +02:00
Francisco Molina
6684a593c0
tests/periph_timer: add efm32 boards to 32Khz timer list 2020-08-31 09:38:32 +02:00
Francisco Molina
a3de88a4db
boards: efm32 boards, LETIMER + regular timer 2020-08-31 09:38:32 +02:00
Francisco Molina
cbf78fe3d4
cpu/efm32: allow running both LETIMER and regular timer 2020-08-31 09:38:31 +02:00
Francisco Molina
c77646ff79
cpu/efm32/timer: add enabling/disabling of prescaler timer 2020-08-31 09:38:31 +02:00
Francisco Molina
5c4db4a65b
cpu/efm32: use IS_ACTIVE for CONFIG_EFM32_USE_LETIMER 2020-08-31 09:38:30 +02:00
Leandro Lanzieri
d25fc243c4
treewide: change prefix for generated Kconfig symbols.
This changes the prefixes of the symbols generated from USEMODULE and
USEPKG variables. The changes are as follow:

   KCONFIG_MODULE_ => KCONFIG_USEMODULE_
   KCONFIG_PKG_ => KCONFIG_USEPKG_
   MODULE_ => USEMODULE_
   PKG_ => USEPKG_
2020-08-31 09:37:09 +02:00
1b8460d68f
boards/stm32f1: use shared default clock configuration 2020-08-31 08:40:17 +02:00
5cea49808a
boards/stm32f1f3: introduce default shared clock configuration 2020-08-31 08:40:17 +02:00
Benjamin Valentin
8eb69b7285 boards/derfmega256: define EUI-64 provider 2020-08-30 23:43:57 +02:00
Benjamin Valentin
aed7c18eb5 boards/avr-rss2: define EUI-64 provider 2020-08-30 23:43:57 +02:00
Benjamin Valentin
fd0de8bf70 boards/samr21-xpro: define EUI-64 provider 2020-08-30 23:43:57 +02:00
Benjamin Valentin
f714fac3f4 drivers/at86rf2xx: make use of EUI provider 2020-08-30 23:43:57 +02:00
Benjamin Valentin
0b523835b5 drivers/at86rf215: use eui_provider 2020-08-30 23:43:57 +02:00
Benjamin Valentin
3e8d6388f8 netdev_ieee802154: use eui_provider in netdev_ieee802154_setup() 2020-08-30 23:43:57 +02:00
Benjamin Valentin
bca68ff484 net/link_layer: implement EUI provider
This adds the possibility to define EUI sources and assign them to
a network device.
2020-08-30 23:43:57 +02:00
48a8d29c4e
boards/stm32f0: use shared default clock configuration 2020-08-30 22:05:46 +02:00
88d7ecb857
boards/stm32f0: introduce shared default clock configuration header 2020-08-30 22:05:46 +02:00
Benjamin Valentin
18fe16298c cpu/cc2538: add Watchdog implementation
The Watchdog on the CC2538 only supports 4 intervals (2ms, 16ms, 250ms & 1s).
Since the watchdog timer API specifies a `max_time`, the interval equal or
below that time is selected.

E.g. for `max_time=125ms` the 16ms interval would be selected.
This is outside the tolerance of the `tests/periph_wdt` test.

Co-authored-by: Thomas Geithner <thomas.geithner@dai-labor.de>
2020-08-30 11:46:39 +02:00
889ea15936
fe310: Use read-modify-store instruction on GPIO
The rv32imac supports the A (atomic) extensions containing
read-modify-store operations. This commit modifies the GPIO code to use
these for all bitwise operations. The atomic operations are emitted with
relaxed ordering as they do not require multiprocessor synchronization.

This decreases the duration of the gpio operations from 59 ns to 50 ns
per call. depending a bit on the type of operation.
2020-08-29 09:24:02 +02:00
Wouter Symons
f8d9566a84 tests/candev: Prevent user from attempting to use native can interface on non-native board 2020-08-28 21:17:13 +02:00
Martine S. Lenders
6f6598586d
gnrc_ipv6_nib: don't pull in RDNSS support with sock_dns
Just because a user pulls in the DNS client (`sock_dns`) doesn't mean
they want to pull in RDNSS option support as well. Besides, since
`gnrc_ipv6_nib_dns` depends on `gnrc_ipv6_nib`, this forms a circular
dependency that really isn't necessary.
2020-08-28 20:03:03 +02:00
Martine S. Lenders
04222f0393
examples/gnrc_border_router: include gnrc_ipv6_nib_dns explicitly
The other applications using `sock_dns` do it too
(`tests/gnrc_sock_dns` and `tests/gnrc_ipv6_nib_dns`) and besides it
doesn't make much sense to include RDNSS option support
(aka `gnrc_ipv6_nib_dns`) just because someone uses the DNS client
(aka `sock_dns`). This dependency will be removed in a later commit.
2020-08-28 19:58:00 +02:00
benpicco
029ae8c7d2
Merge pull request #14766 from benpicco/cpu/native-rtc_set_alarm
cpu/native: RTC: implement rtc_set_alarm()
2020-08-28 17:39:47 +02:00
8f39a4a310
boards/stm32l1: use shared clock configuration header 2020-08-28 16:55:32 +02:00
9d1ebb54d4
boards/common/stm32l1: introduce common clock config header 2020-08-28 16:55:32 +02:00
38854a580d
Merge pull request #14871 from miri64/gh-actions/enh/test-on-iotlab-xml
gh-actions: test-on-iotlab: additionally report as XML
2020-08-28 16:55:07 +02:00
Martine S. Lenders
64824854f9
gh-actions: test-on-iotlab: additionally report as XML 2020-08-28 16:07:16 +02:00
d369eff042
Merge pull request #14868 from bergzand/pr/fe310/irq_trap_entry_optimize
fe310: Merge and optimize trap_entry with irq_arch
2020-08-28 15:04:14 +02:00
1e5dc928ad
fe310: Split sched_run call from handle_trap
This is a small optimization to the RISC-V trap handler. By splitting
the call to sched_run from the trap_handle call, loading the previous
thread ptr can be delayed until after it is determined that a schedule
run is required. This shaves of a few cycles during regular interrupts
that do not trigger the scheduler.
2020-08-28 14:17:58 +02:00