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
796e127df9
boards/stm32: replace GPIO_UNDEF with SPI_CS_UNDEF
2022-01-06 12:34:09 +01:00
39e06babf5
boards/stm32: use generic clk_conf.h header
2020-10-27 08:44:56 +01:00
1b8460d68f
boards/stm32f1: use shared default clock configuration
2020-08-31 08:40:17 +02:00
f2c4a14d64
spark-core: remove obsolete spi_divtable
2020-08-18 16:55:09 +02:00
Vincent Dupont
4647659ea8
boards: fix CLOCK_PLL_PREDIV on stm32f1xx boards
2020-03-09 18:00:48 +01: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
70802fc652
boards*: cleanup doxygen
...
- replace brief with name where required
- remove some unwanted empty lines
- fix missing closing doxygen name block
2018-04-18 12:08:56 +02:00
b78c96ffc7
boards/*: make brief description consistent
2018-01-24 08:30:56 +01: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
Hauke Petersen
c866634469
cpu/stm32f1: reworked clock initialization code
2017-04-27 11:06:48 +02:00
Vincent Dupont
833440f65c
boards/spark-core: remove custom vector base address
2017-03-17 18:07:22 +01:00
ebc35a0613
boards: fix doxygen @brief in periph.conf
2017-01-27 10:31:56 +01:00
Hauke Petersen
0edef2a0e1
cpu/stm32*+boards: adapted to new SPI API
...
- adapted the SPI driver
- adapted all boards using the CPU
2017-01-25 16:46:45 +01:00
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
2017-01-19 18:30:53 +01:00
PeterKietzmann
40976cb40a
cpu/stm32f1: optimize ACR setting and move to cpu.c
2017-01-10 17:09:23 +01:00
Hauke Petersen
55c6c4582b
boards/stm32-based: adapted UART configuration
2017-01-05 11:00:18 +01:00
Pieter Willemsen
a0835ccb1d
stm32: use periph_clk_en/dis functions for clock changes
2016-12-16 15:01:56 +01:00
Hauke Petersen
ab12d60d05
boards/stm32-based: adapted timer configurations
2016-12-09 12:20:04 +01:00
46bd2f45d9
sys: xtimer: replace XTIMER_MASK with XTIMER_WIDTH in board config
2016-07-06 18:16:15 +02:00
Peter Kietzmann
5817d91b91
Merge pull request #5192 from DipSwitch/pr/fix_stm32f1_also_disable_hsi_on_hse
...
cpu/stm32f1: Disable HSI when using the HSE as system clock
2016-05-17 10:51:46 +02:00
DipSwitch
a259cc42b0
[SQUASH] Make PLL_DIV and PLL_MUL behave the same as for the F3 and F4
2016-04-05 23:51:55 +02:00
DipSwitch
bd9b3a269c
cpu/stm32/perip/dac: Move DAC implementation to stm32_common/periph since all STM32 DAC's have the same basics
2016-03-29 22:25:50 +02:00
DipSwitch
93bce6291c
Merge pull request #5090 from haukepetersen/opt_stm_clken
...
cpu/stm32_common: added shared periph_clk_en/dis functions
2016-03-16 23:02:20 +01:00
Hauke Petersen
083204c899
boards: fixed timer conf for stm32f1 based boards
2016-03-16 12:24:51 +01:00
Hauke Petersen
eeea9c9cfb
baords: fixed timer config for stm32f1 based boards
2016-03-16 10:53:36 +01:00
Hauke Petersen
b0606a7e11
boards/spark-core: adapted UART configuration
2016-03-16 10:45:05 +01:00
Hauke Petersen
99888549af
Merge pull request #4154 from DipSwitch/add_clock_selection_stm32f1
...
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F1 family
2016-03-15 19:10:43 +01:00
Hauke Petersen
047050d032
boards/spark-core: unified LED defines
2016-03-15 18:37:53 +01:00
DipSwitch
2558050d9e
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F1
2016-03-15 17:50:39 +01:00
DipSwitch
4a2134fd53
cpu/stm32f1/adc: Initial import for STM32F1 ADC
2016-03-14 22:52:26 +01:00
Hauke Petersen
1c3bd7a6f5
boards/spark-core: adapted to timer changes
2016-03-01 22:39:37 +01:00
Joakim Nohlgård
d9697ede5f
boards/spark-core: 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
424beb1bd6
boards/spark-core: adjusted to new vendor header
...
- fixed clock configuration
- removed non-existent TIMER_1
- removed unused system_stm32f1.c file
2016-01-26 23:45:51 +01:00
Hauke Petersen
db25206a58
boards: use default values for STDIO defines
2016-01-05 12:08:31 +01:00
Hauke Petersen
e395dfd91e
boards: s/GPIO(x,y)/GPIO_PIN(x,y)/
2015-10-13 14:59:53 +02:00
Hauke Petersen
18e364ae17
boards: removed deprecated HW_TIMER defines
2015-09-17 11:22:03 +02:00
Hauke Petersen
e292375c5b
board/spark-core: adjusted GPIO defines
2015-08-12 10:50:18 +02:00
Oleg Hahm
f90032f94f
Merge pull request #3334 from kaspar030/remove_old_net
...
remove old network stack
2015-08-06 15:10:11 +02:00
Hauke Petersen
de8d8be728
boards/spark-core: adapted to GPIO driver changes
2015-08-06 13:48:25 +02:00
830af458ea
oldnet: remove radio_packet_length_t define
2015-08-06 12:13:18 +02:00
Oleg Hahm
e634b8c5a8
Merge pull request #3056 from OlegHahm/board_leading_underscore_removal
...
boards: remove header guard under scores
2015-06-28 17:27:28 +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
a174b7644a
boards: adjusted peripheral confs to GPIO changes
2015-06-12 19:12:21 +02:00
Hauke Petersen
7b98e71139
board/spark-core: fixed doxygen group name
2015-02-12 15:11:01 +01:00