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
Miquel-HAW
d45a179a2e
boards/b-l475e-iot01a: Adapt lsm6dsxx params
2024-01-24 09:57:04 +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
Dario Petrillo
ce31f840b1
boards/b-l4753-iot0a1: Add SPI2 and SPI3 buses
...
SPI2 is exposed on the PMOD connector, SPI3 is used internally to
communicate with the radio modules onboard
2022-03-30 10:52:53 +02:00
fdacb1a118
boards/stm32: adapt I2C configuration where needed
2022-03-23 10:10:08 +01:00
Benjamin Valentin
5d111e71aa
boards: drop board_init() from board.h
2022-02-25 15:08:58 +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
796e127df9
boards/stm32: replace GPIO_UNDEF with SPI_CS_UNDEF
2022-01-06 12:34:09 +01:00
4877155e23
boards: unify user button defines
2021-12-20 11:39:17 +01:00
01eb420ad9
b-l475e-iot01a: add usbdev feature
2021-12-01 10:15:19 +01:00
39e06babf5
boards/stm32: use generic clk_conf.h header
2020-10-27 08:44:56 +01:00
9dd20c0ccb
cpu: boards: stm32l4/wb: use IS_USED for clock where possible
2020-09-08 18:42:42 +02:00
79e6d9df85
boards/stm32l4*: adapt to new clock configuration
2020-09-08 18:42:42 +02:00
95057a8aef
boards/stm32l4: rename common clock config header
2020-09-08 18:42:41 +02:00
2aa7914879
b-l475e-iot01a: remove obsolete spi_divtable include
2020-08-18 16:55:11 +02:00
7b9f435f70
boards/stm32l4: use common spi_divtable where possible
2020-08-07 12:25:18 +02:00
97f98dcace
boards/stm32: remove useless ifdef around DMA config
2020-05-25 13:23:20 +02:00
9cc338d29e
boards/nucleo-l4*: use shared clock configuration
2020-04-07 17:42:56 +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
7853ca0108
boards/stm32*: remove useless RTC_NUMOF defines
2019-08-05 11:08:53 +02:00
4e26ac943b
boards/b-l475e-iot01a: use common rtt configuration
2019-05-21 08:38:43 +02:00
a218bc62ab
boards/b-l475e-iot01a: add defines and deps for lps22hb
2019-03-20 14:43:37 +01:00
9ecf12119f
boards/b-l475e-iot01a: configure and use DMA
2019-01-08 09:32:18 +01:00
973a6a4c93
boards/stm32: remove unnecessary ADC defines in board config
2019-01-02 09:15:22 +01:00
58b85b256b
boards: update UART conf for STM32 based boards
2018-12-13 12:39:00 +01:00
Vincent Dupont
0e48bd0d93
Merge pull request #9716 from aabadie/b-l475e-iot01-sensors
...
boards/b-l475e-iot01a: configure second I2C and on-board sensors (lis3mdl, lsm6dsl and hts221)
2018-08-08 12:13:00 +02:00
Kevin Weiss
8468fe1c94
Merge pull request #8516 from jia200x/wiki_dox_convertion
...
doc: move wiki to Doxygen documentation (second attempt)
2018-08-07 13:27:04 +02:00
ad34cb311a
boards/b-l475e-iot01a: configure on-board sensors
...
HTS221, LIS3MDL and LSM6DSL
2018-08-06 11:30:29 +02:00
61a9f791b6
boards/b-l475e-iot01a: configure second I2C
...
This I2C bus is used by on-board sensors
2018-08-06 10:58:25 +02:00
Jose Alamos
7b28fbf110
boards: fix Doxygen group directives
2018-08-01 15:24:55 +02:00
d8c51dc373
boards/b-l475e-iot01a: provide i2c configuration
2018-07-25 12:01:36 +02:00
fd0aa2acf0
boards/b-l475e-iot01a: update board name in doxygen
2018-01-31 08:10:31 +01:00
b78c96ffc7
boards/*: make brief description consistent
2018-01-24 08:30:56 +01:00
Michel Rottleuthner
28c131eaee
boards/b-l475e-iot01a: add defines for MSI/LSE-trimming
2018-01-15 14:41:06 +01:00
54b889beb7
boards: add initial support for ST bl-475e-iot01a
2017-12-15 13:37:38 +01:00