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

21 Commits

Author SHA1 Message Date
Marian Buschsieweke
97b91b4f8f
boards/stm32: use GPIO LL for LEDs
This fixes a race in `LED<NUM>_TOGGLE`, which is a read-copy-write
operation. Any access to a GPIO pin on the same GPIO port that
happens concurrently could result in data corruption. Using the
GPIO LL API, which is thread-safe, fixes the issue.

Note: The used GPIO LL functions will work even in when the GPIO LL
      module is not used.
2024-08-02 09:55:24 +02:00
MrKevinWeiss
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +01:00
Marian Buschsieweke
1fd9913293
boards/common/stm32: clean up LED definitions
Let boards only define the port and pin number of each LEDs. The common
definitions in `stm32_leds.h` will provide `LED<x>_ON`, `LED<x>_OFF`,
`LED<x>_TOGGLE`, `LED<x>_PIN`, `LED<x>_MASK` and `LED<x>_PORT`.

In addition to code de-duplication, this also makes it easier to use
LEDs in GPIO LL, which can be beneficial for super low overhead
debugging output - e.g. when a bug is timing sensitive and `DEBUG()`
would spent to much time for stdio to reproduce a bug.
2022-08-08 23:35:06 +02:00
Benjamin Valentin
5d111e71aa boards: drop board_init() from board.h 2022-02-25 15:08:58 +01:00
Francisco Molina
464d941a3e boards: drop empty custom board_init & empty board.c 2022-02-22 18:27:37 +01:00
Benjamin Valentin
468ea89953 boards: drop LED init
This is handled by periph_init_leds now
2022-02-18 14:35:43 +01:00
MrKevinWeiss
deda2cfb97
boards: Fix stm32 based boards kconfig models 2021-12-15 09:31:45 +01:00
Benjamin Valentin
fc88c4c4e5 boards: drop cpu_init() 2021-10-13 23:36:41 +02:00
Francisco Molina
63a2a6ce1b
treewide: model newlib as a FEATURE 2021-01-27 09:24:25 +01:00
Benjamin Valentin
40cc547a7a boards/stm32f030f4-demo: use picolibc to save ROM
STM32F030R4 only has 16k Flash, so use picolibc as done on other
16k flash boards to save some ROM.
2021-01-08 09:11:02 +01:00
2d97581d06
boards/stm32f0: use clk_conf.h 2020-12-17 08:38:40 +01:00
6e9a433c9a
boards/stm32f0*: adapt Kconfig for clock configuration 2020-11-10 14:53:14 +01:00
665426fefc
boards/stm32f0: adapt to refactored clock configuration 2020-09-08 16:03:44 +02:00
48a8d29c4e
boards/stm32f0: use shared default clock configuration 2020-08-30 22:05:46 +02:00
hugues
80990e7c96 boards/stm32f030f4-demo: declare adc_config[] directly in periph_conf.h 2020-08-27 03:56:26 +02:00
ca7f50c169
stm32f030f4-demo: remove obsolete spi_divtable 2020-08-18 16:55:09 +02:00
be33f63cae
boards/stm32*disco: model features in Kconfig 2020-07-16 11:34:03 +02:00
facb626b02
boards/stm32*: adapt for new stm32 cpu organization 2020-05-20 13:39:10 +02:00
Marian Buschsieweke
a949179f69
boards/stm32f030f4-demo: Use STM32 programmer conf 2019-11-12 19:46:29 +01:00
Yannick Gicquel
d37adee32d boards/stm32-based: allow SPI signals routed on multiple alternate functions
There is no hardware limitation for custom boards based on STM32 to uses
SPI bus with signals coming from different PORT and alternate functions.

This patch allow alternate's function definition per pin basis, thus enable
the support of SPI bus signals routed on differents PORT.

Signed-off-by: Yannick Gicquel <ygicquel@gmail.com>
2019-10-25 06:27:41 +02:00
Benjamin Valentin
a97e0543cb boards: add stm32f030f4-demo
The board is a very cheap (< 1€) breakout board for the stm32f030f4 MCU.
2019-10-21 15:30:22 +02:00