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

18 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
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
39e06babf5
boards/stm32: use generic clk_conf.h header 2020-10-27 08:44:56 +01:00
8ac1909ea3
cpu: boards: stm32l0l1: use IS_ACTIVE where possible in stmclk 2020-09-22 22:30:19 +02:00
5e886a76c9
boards/stm32l0/l1: merge default clock configuration headers 2020-09-22 22:30:19 +02:00
4bdb3db0f9
boards/stm32l1: override default LSE in boards where needed 2020-09-22 22:30:19 +02:00
8f39a4a310
boards/stm32l1: use shared clock configuration header 2020-08-28 16:55:32 +02:00
f4bc27e408
boards/lobaro-lorabox: move xtimer defines to board.h 2020-08-20 13:41:40 +02:00
023eec7936
lobaro-lorabox: remove obsolete spi_divtable 2020-08-18 16:55:03 +02: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
8af04cd939 boards: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
b710cda156
boards/lobaro-lorabox: use common timer configuration 2019-08-05 15:00:53 +02:00
7853ca0108
boards/stm32*: remove useless RTC_NUMOF defines 2019-08-05 11:08:53 +02:00
Yegor Yefremov
2c41c9e094 boards/lobaro-lorabox: make sx127x definition consistent
No need to specify SX127X_PARAMS structure as it is already
defined in drivers/sx127x/include/sx127x_params.h.

Also remove SX127X_PARAM_SPI and SX127X_PARAM_PASELECT as their
values are the same as default ones.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-04-29 09:07:29 +02:00
Leandro Lanzieri
609db0c2f6 boards/lobaro-lorabox: Remove auto init LED0 2019-02-25 13:43:50 +01:00
9a69c9bbc5 boards/stm32: remove useless empty conf defines 2019-01-02 14:52:38 +01:00
Leandro Lanzieri
177ef5bfa9 boards/lobaro-lorabox: Add initial support for Lobaro Lorabox board 2018-09-18 18:07:07 +02:00