Benjamin Valentin
669104d841
cpu/sam0_common: SPI: don't perform DMA transfer for small buffers
...
Setting up a DMA transfer can take longer than sending out a buffer
byte by byte if the buffer is small.
DMA only shows advantages for large buffers, using it for every transfer
will cause a net slowdown.
Since we did not come up with a good way to determine the treshold based
on the SPI frequency, just use a fixed buffer for now so that DMA can be
used without slowing things down overall.
2021-11-19 17:22:51 +01:00
benpicco
e0b3cba571
Merge pull request #17226 from dylad/pr/boards/nrf9160dk/add_riotboot_support
...
boards/nrf9160dk: add riotboot support
2021-11-19 15:45:05 +01:00
06530c4297
cpu/stm32: clone cmsis header in build/stm32
2021-11-19 13:24:57 +01:00
Dylan Laduranty
25b168c34f
boards/nrf9160dk: add riotboot to FEATURES_PROVIDED
2021-11-18 23:05:42 +01:00
benpicco
09e0692a85
Merge pull request #17201 from bergzand/pr/nrf5x/periph_qdec
...
nrf5x_common: Add qdec peripheral implementation
2021-11-18 22:30:58 +01:00
benpicco
2ffbcecbe1
Merge pull request #17225 from dylad/pr/cpu/nrf91/add_periph_flashpage_support
...
cpu/nrf9160: add periph_flashpage support
2021-11-18 22:10:18 +01:00
benpicco
24aa7eb6bf
Merge pull request #17191 from benpicco/drivers/periph-byte_type
...
drivers/periph: use uint_fast8_t as default type
2021-11-18 17:21:55 +01:00
Francisco
d573401319
Merge pull request #16912 from leandrolanzieri/pr/cpu/efm32/model_kconfig
...
cpu/efm32: model kconfig
2021-11-18 11:02:29 +01:00
Benjamin Valentin
3d8e0d7f43
cpu/esp32: fix cast to periph type
2021-11-18 10:14:51 +01:00
Benjamin Valentin
eabc9a8042
cpu/nrf5x_common: fix cast to periph type
2021-11-18 10:14:51 +01:00
Benjamin Valentin
90a6d90df8
cpu/gd32v: uart: fix function parameter
2021-11-18 10:14:51 +01:00
Francisco
691601fbe2
Merge pull request #17087 from gschorcht/cpu/esp32/fix_code_placement
...
cpu/esp32: place freertos and periph in IRAM
2021-11-18 10:05:25 +01:00
Leandro Lanzieri
805a77b13a
cpu/efm32: model Kconfig
2021-11-18 09:03:06 +01:00
Leandro Lanzieri
44e7e82fad
Merge pull request #17227 from leandrolanzieri/pr/cpu/atmega1281/fix_pcint
...
cpu/atmega1281: fix pcint
2021-11-18 08:55:30 +01:00
Gunar Schorcht
be1532d935
Merge pull request #17221 from maribu/cpu/esp32
...
cpu/esp32: make CI happy
2021-11-18 06:45:30 +01:00
31c531c904
Merge pull request #17218 from maribu/cpu/arm7_common
...
cpu/arm7_common: suppress false positives of cppcheck
2021-11-18 06:30:46 +01:00
Dylan Laduranty
6671aada97
cpu/nrf9160: add FLASHPAGE* feature to Kconfig
2021-11-17 17:25:36 +01:00
Leandro Lanzieri
1035620b38
cpu/atmega1281: fix pcint
2021-11-17 15:05:25 +01:00
Dylan Laduranty
cc440bc296
cpu/nrf9160: add flashpage configuration
2021-11-17 14:06:04 +01:00
Dylan Laduranty
b734622944
cpu/nrf5x_common: update periph_flashpage for nRF9160 support
2021-11-17 14:05:51 +01:00
Marian Buschsieweke
b2f9e2c226
cpu/esp32: fix wrong control flow
2021-11-17 13:10:37 +01:00
Marian Buschsieweke
e46c1f732e
cpu/esp32: make CI happy
2021-11-17 13:10:37 +01:00
9f9ecca95e
Merge pull request #17219 from maribu/cpu/atmega_common
...
cpu/atmega_common: make cppcheck happy
2021-11-17 10:10:20 +01:00
19a5310ca2
Merge pull request #17220 from maribu/cpu/cortexm_common
...
cpu/cortexm_common: make CI happy
2021-11-17 10:07:30 +01:00
Dylan Laduranty
aa8608eff5
Merge pull request #17064 from bergzand/pr/usbdev/xmit
...
USB: refactor to xmit-based API
2021-11-17 09:07:00 +01:00
Marian Buschsieweke
7885130809
cpu/cortexm_common: make CI happy
2021-11-16 21:52:55 +01:00
Marian Buschsieweke
fcba75d86d
cpu/arm7_common: suppress false positives of cppcheck
2021-11-16 21:51:48 +01:00
83c2f2d367
Merge pull request #17155 from maribu/cpu/native
...
cpu/native: align stack in thread_stack_init()
2021-11-16 20:48:32 +01:00
a6b6f43ce2
sam0_common/usbdev: Adapt to xmit API
2021-11-16 20:17:04 +01:00
c81df904ea
stm32/usbdev: Adapt to xmit API
2021-11-16 20:17:04 +01:00
617027ab5c
nrf52/usb: Adapt to xmit API
2021-11-16 20:17:03 +01:00
Marian Buschsieweke
d91c9cdc5a
cpu/atmega_common: make cppcheck happy
2021-11-16 16:20:26 +01:00
3b1bdd6b3c
nrf5x_common: Add qdec peripheral implementation
2021-11-16 15:21:51 +01:00
76215adef1
Merge pull request #17154 from maribu/cpu/stm32/periph_usb
...
cpu/stm32/periph/usbdev: fix alignment issues
2021-11-16 11:20:34 +01:00
Dylan Laduranty
8f4ef1eb75
Merge pull request #17186 from benpicco/cpu/sam0_common/uart-frac
...
cpu/sam0_common: uart: set oversampling based on baud rate
2021-11-15 21:53:19 +01:00
chrysn
5a1c5ad096
Merge pull request #17202 from Ollrogge/doxygen_fix_pr
...
periph/flashpage: fix wrong doxygen group
2021-11-15 19:43:32 +01:00
Francisco
72abac66f1
Merge pull request #17183 from fjmolinas/pr_stm32wl_adc
...
cpu/stm32/wl: initial periph_adc implementation
2021-11-15 19:06:24 +01:00
Ollrogge
37403c09eb
periph/flashpage: fix wrong doxygen group
2021-11-15 17:25:59 +01:00
benpicco
70ae34a448
Merge pull request #16979 from ospoco/master
...
cpu/stm32: Add hardening changes to stm32
2021-11-15 15:09:01 +01:00
Francisco Molina
63c51d4add
cpu/stm32/wl: initial periph_adc implementation
2021-11-15 09:52:45 +01:00
benpicco
046ecf221e
Merge pull request #17187 from fjmolinas/pr_i2c_stm32wl_typo
...
cpu/stm32/include/cpu_conf_stm32_common.h: fix typo in macro
2021-11-12 13:41:58 +01:00
VanL
ee832148b3
cpu/stm32: Add hardening changes to stm32
...
Initialize STM32 RDP in a glitch-resistant fashion to prevent
debugger use when restrictions are set by the designer.
2021-11-11 15:58:52 -06:00
Francisco Molina
ec0e3d242e
cpu/stm32/include/cpu_conf_stm32_common.h: fix typo in macro
2021-11-11 19:58:34 +01:00
Benjamin Valentin
18cdd100a9
cpu/sam0_common: uart: set oversampling based on baud rate
...
In Asynchronous Fractional baud rate mode, the baud rate can not be
greater than the source frequency divided by the oversampling (8, 16).
Currently we are always using 16x oversampling.
This makes it impossible to e.g. set a 2 MHz UART baud rate on the 16 MHz
`saml10-xpro`.
With this change, the oversampling is automatically reduced to 8x which
allows us to set 16 MHz / 8 -> 2 MHz baud rate.
2021-11-11 17:03:05 +01:00
326b0c980a
cpu/native: migrate periph_rtc to ztimer
2021-11-11 10:54:30 +01:00
Marian Buschsieweke
73fc2c215a
Merge pull request #17150 from maribu/cpu/esp_common/periph_flashpage
...
cpu/esp_common: fix unaligned access in periph_flashpage
2021-11-08 10:49:40 +01:00
Marian Buschsieweke
cb6525b033
cpu/esp_common: fix unaligned access in periph_flashpage
2021-11-07 22:06:27 +01:00
Marian Buschsieweke
09b8387df4
cpu/native: align stack in thread_stack_init()
...
Unaligned accesses on x86(_64) are allowed, but slow. However, some host systems
might not be that forgiving. Aligning the stack to sizeof(uintptr_t) should be
a pretty safe safety measure.
And with this done, all casts of the stack pointer that increase alignment
requirements are now intermediately casted to `uintptr_t` to silence
warnings from -Wcast-align - after all the stacks are now manually aligned.
2021-11-06 20:22:10 +01:00
Marian Buschsieweke
825a598ca7
cpu/stm32/periph/usbdev: fix alignment issues
...
Make sure in `_usbdev_new_ep()` that `usbdev_ep_t::buf` is always aligned to 4
bytes. With this in mind, add intermediate casts to `uintptr_t` before casting
`usbdev_ep_t::buf` to `uint32_t *` to silence `-Wcast-align`, as we now manually
enforced correct alignment.
2021-11-06 20:19:39 +01:00
dylad
8842377e93
cpu/sam0: prevent disabled irq from being called
...
Reported-by: biboc <bapclenet@gmail.com>
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2021-11-05 18:21:21 +01:00