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

61 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
Karl Fessel
05f114d0af doc: fix unbalaced grouping
- most were trivial
    - missing group close or open
    - extra space
    - no doxygen comment
- name commad might open an implicit group
    this hould also be implicit cosed but does not happen somtimes
- crazy: internal declared groups have to be closed internal
2022-09-14 15:05:25 +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
Gunar Schorcht
327a4a58b2 boards: add ST L3Gxxxx 3-axis gyro family 2022-03-18 06:34:54 +01: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
18e58e4963
boards/stm32f3discovery: add lsm303dlhc configuration 2021-03-02 17:27:14 +01:00
39e06babf5
boards/stm32: use generic clk_conf.h header 2020-10-27 08:44:56 +01:00
dd8eec540a
boards/stm32f3*: adapt to new clock configuration 2020-09-24 11:27:24 +02:00
f9a4dddc90
boards/stm32f3disco: use shared default clock configuration 2020-08-31 10:49:44 +02:00
89f422f370
stm32f3discovery: remove obsolete spi_divtable 2020-08-18 16:55:10 +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
Gaëtan Harter
5e58eccd5a
boards/stm32f3discovery: Fix no external low speed crystal
The board does not have external low speed crystal.

Page 20 of User Manual: 6.10.2 "OSC 32 kHz clock supply"

 * X3 Crystal (not provided)

https://www.st.com/resource/en/user_manual/dm00063382.pdf

This fixes `example/default` and makes `tests/periph_rtc` work properly.
2019-02-26 16:44:46 +01: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
634d9f6d68 boards: adapt stm32f3 based boards to new I2C api 2018-07-25 12:01:35 +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
Vincent Dupont
a4b25ad4dc boards/nucleo-f3xx: adapt clock config 2017-09-01 10:15:32 +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
smlng
de948189c3 periph: generalized button macros 2017-06-20 21:19:56 +02:00
Vincent Dupont
bb52575d45 boards: fix I2C_APBCLK value in stm32-based boards 2017-03-17 12:56:54 +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
83457febed boards/stm32f3discovery: mapped LEDs + btn to SAUL 2017-01-11 12:08:33 +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
1bc1dd94ba boards/stm32-based: added missing CLOCK_APBx defines 2016-12-09 12:20:02 +01:00
Peter Kietzmann
126f12b138 Merge pull request #4164 from DipSwitch/add_clock_selection_stm32f3
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F3 family
2016-03-30 09:32:33 +02:00
DipSwitch
cc5a06d954 cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F3 family 2016-03-29 22:45:11 +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
Hauke Petersen
d0d8ea33ab boards/stm32f3discovery: unified LED defines 2016-03-15 18:37:53 +01:00
Hauke Petersen
ce2fdd7865 boards/stm*discovery: added define for user button 2016-03-02 12:11:34 +01:00
Joakim Nohlgård
e2f7ac78f0 Merge pull request #4040 from gebart/pr/periph-timer-init-freq
periph/timer: Change timer_init API to support arbitrary (integer) frequencies
2016-02-15 23:36:44 +01:00
Joakim Nohlgård
cf7c18b76f boards/stm32f3discovery: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Hauke Petersen
9988f00d7b boards: fixed some PWM definitions 2016-02-12 16:10:01 +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
18e364ae17 boards: removed deprecated HW_TIMER defines 2015-09-17 11:22:03 +02:00
Andreas "Paul" Pauli
84c758e65a board/stm32f3discovery: corrected timer 4 clock value 2015-07-15 17:33:44 +02:00
Andreas "Paul" Pauli
7c4e291f70 board/stm32f3discovery: corrected timer 3 clock value 2015-07-14 18:40:45 +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
Oleg Hahm
5312ae998b boards: removed incorrect doxygen comment markers 2015-06-24 15:54:36 +02:00