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

28 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
17cce015d4
treewide/stm32: Make CLOCK_HS* configurable 2022-11-03 11:37:28 +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
69659efc99
boards/common/iotlab: change default RTT_FREQUENCY to RTT_MAX_FREQUENCY 2021-01-19 12:37:38 +01:00
Francisco Molina
c4edff3a59
boards cpu: move OpenWSN defintions to openwsn_defs.h 2020-11-10 07:46:35 +01:00
39e06babf5
boards/stm32: use generic clk_conf.h header 2020-10-27 08:44:56 +01:00
e9bf08e6d5
boards/stm32f1*: adapt to new clock configuration 2020-09-24 11:27:24 +02:00
9f12908644
boards/fox: iotlab: use shared default clock configuration 2020-08-31 10:49:44 +02:00
hugues
6a71c35d60 boards/common/iotlab: declare adc_config[] directly in periph_conf.h 2020-08-27 03:56:26 +02:00
801eef0ec4
common/iotlab: remove obsolete spi_divtable 2020-08-18 16:55:02 +02:00
Francisco Molina
7515f1152a
boards/common/iotlab: add OpenWSN timing constants 2020-06-30 13:10:56 +02:00
Francisco Molina
362eb56bf0
boards/common/iotlab: add CONFIG_ZTIMER_USEC 2020-06-17 14:22:21 +02:00
97f98dcace
boards/stm32: remove useless ifdef around DMA config 2020-05-25 13:23:20 +02:00
Francisco Molina
4d398ab09e
cpu/stm32f1: add unified rtt configuration 2020-04-24 08:57:04 +02:00
Hyungsin
6eed5b9d43 remove XTIMER_OVERHEAD 2020-01-10 13:22:11 -08:00
Benjamin Valentin
0ea2cbf1eb boards: remove RTT_NUMOF/RTC_NUMOF
Those macros are defined but never used.
2019-11-08 14:20:33 +01:00
32f54178ea
Merge pull request #11974 from fjmolinas/pr_xtimer_shoot_early
boards: remove unused XTIMER_SHOOT_EARLY defines
2019-08-07 09:29:43 +02:00
Francisco Molina
294aff2ef1 boards: remove unused XTIMER_SHOOT_EARLY defines 2019-08-07 08:49:14 +02:00
Benjamin Valentin
8af04cd939 boards: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
9daf3c74a9 boards/iotlab-m3: disable DMA with SPI 2019-01-15 19:49:32 +01:00
0b6bccb543 boards/iotlab-m3: configure and use DMA
Used with UART and SPI peripheral
2019-01-08 09:32:18 +01:00
Hauke Petersen
c2184f3454 boards/cpu/drivers/sys: use generic stdio_ if 2018-08-22 10:54:25 +02:00
e90f2b439e boards*: adapt f1 based boards to new i2c api 2018-07-25 12:01:37 +02:00
3474d052b9 boards/iotlab: fix saul gpio configuration
take into account inversion of LEDs and initialize them cleared
2018-05-04 15:07:20 +02:00
79ab920333 boards/iotlab*: fix driver params usage 2018-02-28 18:26:39 +01:00
smlng
7ae468c7f3 boards/common: enhance doxygen for IoTlab boards 2017-12-15 10:28:51 +01:00
Hauke Petersen
eb2b9f2169 boards/iotlab: move shared code to common/iotlab 2017-11-30 10:26:35 +01:00