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

37 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
39e06babf5
boards/stm32: use generic clk_conf.h header 2020-10-27 08:44:56 +01:00
95fb362a5c
boards/stm32f4xx: use 180MHz default clock header 2020-10-06 22:07:19 +02:00
721625011e
boards/stm32f4*: use new clock configuration scheme 2020-10-06 16:10:05 +02:00
28f00f731f
boards/stm32: remove obsolete UART DMA ISR defines 2020-05-20 08:49:22 +02:00
d8ec0b292f
boards/stm32f4: Set DMA_STREAM_UNDEF for UART DMA
This PR sets the DMA configuration for the UART peripherals on the
stm32f4 boards to the undef value to disable the DMA. This to prevent
from accidentally configuring the DMA to stream 0 channel 0 when
enabling DMA.
2020-05-20 08:49:22 +02:00
Benjamin Valentin
8af04cd939 boards: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
973a6a4c93 boards/stm32: remove unnecessary ADC defines in board config 2019-01-02 09:15:22 +01:00
Jose Alamos
7b28fbf110 boards: fix Doxygen group directives 2018-08-01 15:24:55 +02:00
Hauke Petersen
079f3c08d4 boards/stm32f4-based: use shared 168MHz clock conf 2018-05-24 19:00:42 +02:00
ec06de8d22 boards/f4vi1: fix potential build issue in uart conf 2018-05-22 10:42:43 +02:00
b78c96ffc7 boards/*: make brief description consistent 2018-01-24 08:30:56 +01:00
Vincent Dupont
fc9fc57aa6 boards: adapt stm32f[2|4|7] boards clock config 2017-08-28 17:51:00 +02:00
Hauke Petersen
73ede74cd8 cpu/stm32: unified and cleaned up DAC driver
- removed neccessity to define empty `DAC_NUMOF 0` for each STM
  base board
- adapted all board configs to this
- joined stm32f2 to use common DAC driver
- improved code of DAC driver
2017-06-29 13:03:12 +02:00
Vincent Dupont
b3e7dd84f9 boards: update stm32f4-based boards with stmclk 2017-06-08 16:51:17 +02:00
882bcff048 boards: replace @brief with @name when necessary 2017-04-13 12:10:30 +02:00
Vincent Dupont
c302b7601d boards: fix stm32-based boards with new gpio driver 2017-03-13 15:09:31 +01:00
ebc35a0613 boards: fix doxygen @brief in periph.conf 2017-01-27 10:31:56 +01:00
Oleg Hahm
7ee7801c10 *: remove trailing underscores from header guards 2017-01-19 18:30:53 +01:00
Hauke Petersen
55c6c4582b boards/stm32-based: adapted UART configuration 2017-01-05 11:00:18 +01:00
Hauke Petersen
ab12d60d05 boards/stm32-based: adapted timer configurations 2016-12-09 12:20:04 +01:00
Hauke Petersen
0190cef1d5 boards: cleaned up UART conf for stm32f4 based boards 2016-03-16 12:24:52 +01:00
Hauke Petersen
845e2f1cd7 boards/f4vi1: unified LED defines 2016-03-15 15:48:47 +01:00
Hauke Petersen
54b76cacab boards/f4vi1: added DAC configuration 2016-03-14 20:39:32 +01:00
Hauke Petersen
87f87726f9 boards/f4vi1: added dummy ADC config 2016-03-14 13:06:24 +01:00
Joakim Nohlgård
4754c9e996 boards/f4vi1: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Hauke Petersen
b436219674 boards: removed F_CPU define from board.h 2016-01-27 09:52:44 +01:00
Hauke Petersen
db25206a58 boards: use default values for STDIO defines 2016-01-05 12:08:31 +01:00
Hauke Petersen
2585890052 boards/f4vi1: adapted to UART driver changes 2015-12-07 18:00:40 +01:00
Hauke Petersen
18e364ae17 boards: removed deprecated HW_TIMER defines 2015-09-17 11:22:03 +02:00
Oleg Hahm
5312ae998b boards: removed incorrect doxygen comment markers 2015-06-24 15:54:36 +02:00
BigDaddyD
b6bd067863 boards: removed leading underscores from macros
* also added a trailing underscore to header guards for consistency

Commit for PR 2623, repairing header file include guards.
This PR is intended to fix the include guards in files under RIOT/boards

SQUASH ME: fix underscore removal overdos

SQUASH ME: consistent macro naming

SQUASH ME: missed that one

SQUASH ME: fixed overdo

SQUASH ME: consistency
2015-06-24 15:54:36 +02:00
Hauke Petersen
f4f5e4c9ff board/f4vi1: fixed doxygen group name 2015-02-12 13:37:01 +01:00
Stefan Pfeiffer
a19d6c769d added new board f4vi1 2014-11-04 16:02:25 +01:00