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

77 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
Fabian Hüßler
9163d78910 boards: add VBAT for stm32 based boards with ADC 2022-02-21 10:49:43 +01:00
Marian Buschsieweke
9c77cd8d55
boards/msbiot: fix param for MPU9150
When the driver for the mpu9150 has been renamed to mpu9x50, the
corresponding macro in the MSB-IoT board was forgotten to be renamed
as well. This fixes the issue.
2021-04-07 15:18:30 +02: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
hugues
58fbd8b443 boards/msbiot: declare adc_config[] directly in periph_conf.h 2020-08-27 03:56:26 +02:00
32a1f3ae76
msbiot: remove obsolete spi_divtable include 2020-08-18 16:55:03 +02:00
97f98dcace
boards/stm32: remove useless ifdef around DMA config 2020-05-25 13:23:20 +02:00
70e3bf84b0
msbiot: Add DMA config for SPI 2020-05-25 11:42:10 +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
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
Marian Buschsieweke
137c2c0adf
boards: Added cc110x params for MSB-A2 & MSB-IoT 2019-08-20 16:38:49 +02:00
Benjamin Valentin
8af04cd939 boards: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Marian Buschsieweke
67631f3ae8
boards/msbiot: Added missing doc in board.h
- Fixes warnings with current Doxygen version
- Resolves issue with Doxygen linking e.g. LED0_PIN to the doc of a different
  board
2019-06-28 16:46:46 +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
Jose Alamos
7b28fbf110 boards: fix Doxygen group directives 2018-08-01 15:24:55 +02:00
4e09a2b6b7 boards*: adapt stm32f4 based board with new i2c conf style 2018-07-25 12:01:37 +02:00
d8c3e1da4e
Merge pull request #8549 from haukepetersen/opt_boards_stm32-clk-f4-180
boards/stm32-based: use shared configuration snippets
2018-06-12 20:48:01 +02:00
Marian Buschsieweke
a0f35c9b35
boards/msbiot: Added on-board buttons & LEDs as defalt SAUL devices 2018-05-29 09:33:57 +02:00
Marian Buschsieweke
ce57a574df
boards/msbiot: Added support for on-board buttons 2018-05-29 09:33:08 +02:00
Hauke Petersen
079f3c08d4 boards/stm32f4-based: use shared 168MHz clock conf 2018-05-24 19:00:42 +02:00
Marian Buschsieweke
d97340cd5d
boards/msbiot: Added/updated configuration for the cc110x transceiver
- Adjusted `#define`s to match the naming convention of `cc110x_params.h`
 - Enable the `cc110x` module if `netdev_default` or `gnrc_netdev_default` is
   used
2018-05-21 23:00:06 +02:00
b78c96ffc7 boards/*: make brief description consistent 2018-01-24 08:30:56 +01:00
a860cb74f0 boards/msbiot: adapt board config for mpu9150 to new params scheme 2017-11-08 09:09:21 +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
6f98e81b17 Merge pull request #6759 from OTAkeys/pr/nucleo-i2c-clock
boards: fix I2C_APBCLK value in stm32-based boards
2017-03-31 12:37:07 +02:00
Vincent Dupont
bb52575d45 boards: fix I2C_APBCLK value in stm32-based boards 2017-03-17 12:56:54 +01:00
Victor Arino
34b9c04d9d boards/msbiot: use LED defines 2017-03-13 21:13:37 +01:00
Vincent Dupont
c302b7601d boards: fix stm32-based boards with new gpio driver 2017-03-13 15:09:31 +01:00
a3497539c2 boards: fix PWM doxygen doc in periph_conf 2017-02-16 17:59:21 +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
Hauke Petersen
8f47aee78b boards/stm32-based: adapted PWM configuration 2017-01-17 14:08:39 +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
7b856cda30 boards/stm32-based: adapted PWM configuration 2016-12-15 12:18:39 +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
c1aef11844 boards/msbiot: unified LED defines 2016-03-15 16:24:49 +01:00
Hauke Petersen
02194dad64 boards/msbiot: adapted DAC configuration 2016-03-14 20:39:32 +01:00
Hauke Petersen
e25d1c9dc5 boards/msbiot: adapted to ADC interface changes 2016-03-14 13:06:22 +01:00