Koen Zandberg
1b2adb4821
cpu/fe310: Use ecall instruction for thread yield
2021-01-13 12:51:25 +01:00
Marian Buschsieweke
e2c5467d09
cpu/nrf5x_common/radio/nrfmin: drop duplicated code
...
`gnrc_netif_hdr_build()` calls internally `gnrc_netif_hdr_init()`, which does
initialize `gnrc_netif_hdr_t::rssi` and `gnrc_netif_hdr_t::lqi`. So no need to
do this twice.
2021-01-13 08:53:17 +01:00
Benjamin Valentin
3a7aa5d09a
cpu/sam0_common: RTC: add timeout to spurious tamper event
...
Errate 2.17.4 says:
> Upon enabling the RTC tamper detection feature, a false tamper
> detection *can* be reported by the RTC.
It turns out that this spurious event is not always generated.
If RTC alarm is used and the CPU was previously woken from hibernate
by RTC, it *can* happen that the false tamper event is *not* generated.
In this case, we will block indefinitely on the mutex.
To solve this, add a timeout to the event.
Also poll the event instead of using a mutex, as we have already set
`PM->SLEEPCFG.bit.SLEEPMODE` at this point.
2021-01-12 17:36:40 +01:00
Benjamin Valentin
5b11da01c1
cpu/sam0_common: UART: add support for SAMD20
2021-01-12 15:48:39 +01:00
Benjamin Valentin
93d27bb9a0
cpu/sam0_common: I2C: add support for SAMD20
2021-01-12 15:48:39 +01:00
Benjamin Valentin
81e06f46a4
cpu/samd21: add samd20 to Kconfig
2021-01-12 15:48:39 +01:00
Benjamin Valentin
31b8dad147
cpu/samd21: add support for SAMD20
2021-01-12 15:48:39 +01:00
Benjamin Valentin
7b65398ae1
cpu/sam0_common: add samd20 vendor files
...
Files from Atmel.SAMD20_DFP.1.3.165.atpack
2021-01-12 15:48:39 +01:00
Benjamin Valentin
8004aa4d34
cpu/sam0_common: not every CPU has DMA
2021-01-12 15:48:37 +01:00
Leandro Lanzieri
2cf3c603c7
cpu/kinetis/timer: consider no LPTMR when no config present
2021-01-12 15:31:37 +01:00
dylad
bca340d338
cpu/nrf52: update RIOTBOOT_LEN w/ MODULE_USBUS_DFU
2021-01-12 11:34:22 +01:00
dylad
9d02efb4ea
cpu/cortexm_common: increase RIOTBOOT_LEN size when usbus_dfu is used
2021-01-12 11:34:22 +01:00
Martine Lenders
19565f4aea
Merge pull request #15741 from aabadie/pr/boards/lpc1768_common_conf
...
boards/lpc1768: move vendor conf code to CPU level
2021-01-12 10:30:03 +01:00
Sebastiaan de Schaetzen
6e90111eb9
stm32/periph/uart: set flow control bits before enabling uart
2021-01-12 07:37:19 +01:00
Jens Wetterich
450ede0da0
cpu/esp_common: Add missing includes and ISO-C++ compatibility
2021-01-10 18:02:39 +01:00
Alexandre Abadie
1090e55683
boards/lpc1768: move vendor conf code to CPU level
2021-01-08 21:47:10 +01:00
Alexandre Abadie
b13598cdc4
cpu/stm32: fix ENABLE_DEBUG definition
2021-01-08 14:37:33 +01:00
Alexandre Abadie
ba85c2d9ca
cpu/sam0_common: fix ENABLE_DEBUG definition
2021-01-08 14:37:33 +01:00
Alexandre Abadie
8dbe37969b
cpu/qn908x: fix ENABLE_DEBUG definition
2021-01-08 14:37:33 +01:00
Alexandre Abadie
189f7d862d
cpu/esp32: fix typo in timer documentation
2021-01-08 12:04:24 +01:00
Alexandre Abadie
8acf9398e8
Merge pull request #15723 from aabadie/pr/tools/codespell_fixes
...
tools/codespell: fix new typos found by recent version + add new ignored words
2021-01-08 11:01:49 +01:00
Alexandre Abadie
b4458e73f2
cpu/esp32: fix typo in Doxygen comment
...
depenend => depend
2021-01-08 10:15:32 +01:00
Leandro Lanzieri
131c0069d8
Merge pull request #15706 from aabadie/pr/cpu/stm32_mco_kconfig
...
cpu/stm32: model MCO clock configuration in kconfig
2021-01-08 09:49:00 +01:00
Bas Stottelaar
31c5c4988e
Merge pull request #15377 from basilfx/feature/efm32_slstk3400a
...
boards/slstk3400a: add support
2021-01-08 07:29:03 +01:00
Gerson Fernando Budke
1426e15679
cpu/avr8_common: Normalize method prefix name
...
Refactor atmega_ prefix to avr8_ prefix and update copyrights.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-01-07 16:29:42 -03:00
Gerson Fernando Budke
4cbd311196
cpu: Refact atmega_common into avr8_common
...
Split atmega_common code into avr8_common folder. This moves common
avr8 code to be used for all avr8 variants: tiny, mega and xmega.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-01-07 16:29:22 -03:00
Gerson Fernando Budke
a0028a9ff8
cpu/atmega_common: Split cpu.c into atmega_cpu/cpu.c
...
Split cpu.c file into cpu.c and atmega_cpu.c files. This extract mega
specific code from common code.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-01-07 16:17:05 -03:00
Gerson Fernando Budke
4d68dd5aea
cpu/atmega_common: Extract clock definitions
...
Refactor clock definitions from cpu.h to clock.h.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-01-07 16:17:05 -03:00
Alexandre Abadie
d027454ad4
cpu/stm32/kconfig: use depends on instead of if
2021-01-07 16:07:04 +01:00
Alexandre Abadie
e8a5493080
cpu/stm32: model MCO in Kconfig for l4/wb
2021-01-07 16:02:30 +01:00
Alexandre Abadie
0e39c2ba17
cpu/stm32: model MCO in Kconfig for l0/l1
2021-01-07 16:02:29 +01:00
Alexandre Abadie
a9b154b4ac
cpu/stm32: model MCO in Kconfig for g0/g4
2021-01-07 16:02:29 +01:00
Alexandre Abadie
1f0e6c1057
cpu/stm32: model MCO in Kconfig for f0/f1/f3
2021-01-07 16:02:29 +01:00
Alexandre Abadie
5e719816d2
cpu/stm32/kconfigs: select cpu fam/lines without mco prescaler
2021-01-07 16:02:29 +01:00
Bas Stottelaar
d831a7e746
cpu/efm32: adapt MPU-capable cpus
2021-01-06 23:44:54 +01:00
Bas Stottelaar
ef8985fbbd
cpu/efm32: add support for efm32hg family
2021-01-06 23:44:53 +01:00
Marian Buschsieweke
4714e38911
cpu/atmega_common: drop unused module
...
The module cpu_atmega_common_cxx seems to be non-existing and not used. It is
unclear whether this slipped in by accident or if this was actually useful at
some point in time. In any case, the module is not present (anymore) and cannot
be used, so let's clean up the Makefile.
2021-01-06 20:46:56 +01:00
Marian Buschsieweke
b14ca8318e
Merge pull request #15680 from maribu/msp430-malloc
...
cpu/msp430_common: use malloc_thread_safe
2021-01-03 11:21:03 +01:00
Marian Buschsieweke
cc8070cede
Merge pull request #15681 from maribu/mips-malloc
...
cpu/mips32r2_common: use malloc_thread_safe
2021-01-03 11:20:41 +01:00
Jens Wetterich
e36a0d883a
esp_common/esp_now: use netdev_register()
2020-12-23 19:44:57 +01:00
Alexandre Abadie
73d3232f67
Merge pull request #15673 from maribu/fe310-malloc
...
cpu/fe310: use malloc_thread_safe
2020-12-21 13:29:02 +01:00
Marian Buschsieweke
9a61e27f8d
Merge pull request #15679 from maribu/arm7-malloc
...
cpu/arm7_common: use malloc_thread_safe
2020-12-21 10:00:34 +01:00
benpicco
7d8f801b20
Merge pull request #15650 from aabadie/pr/cpu/stm32_clk_merge_f0f1f3
...
cpu/stm32: merge f0/f1/f3 clock configuration headers
2020-12-20 02:31:12 +01:00
iosabi
70113b5fd3
cpu/qn908x: Implement blocking I2C support
...
This initial I2C support allows to use the I2C bus in controller mode to
interact with multiple peripherals in blocking mode. The CPU will
perform a busy wait when transferring data over I2C.
2020-12-19 22:41:57 +00:00
Marian Buschsieweke
7f7bf8454b
cpu/mips32r2_common: use malloc_thread_safe
...
This should fix concurrent dynamic memory allocation.
2020-12-18 18:17:32 +01:00
Marian Buschsieweke
dfb67cef91
cpu/msp430_common: use malloc_thread_safe
...
This should fix concurrent dynamic memory allocation.
2020-12-18 17:30:40 +01:00
Marian Buschsieweke
915d14eb98
cpu/arm7_common: use malloc_thread_safe
...
This should fix concurrent dynamic memory allocation.
2020-12-18 17:23:12 +01:00
Martine Lenders
6646682873
Merge pull request #15611 from benpicco/boards/eui_provider.h
...
net/eui_provider: API cleanup
2020-12-18 15:02:57 +01:00
Marian Buschsieweke
277ddcb108
cpu/cortexm_common: fix select in Kconfig
...
Only select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG is true.
2020-12-18 12:50:33 +01:00
Marian Buschsieweke
b422ef9970
cpu/fe310: use malloc_thread_safe
2020-12-18 10:29:37 +01:00