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

56 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
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
796e127df9
boards/stm32: replace GPIO_UNDEF with SPI_CS_UNDEF 2022-01-06 12:34:09 +01:00
2d97581d06
boards/stm32f0: use clk_conf.h 2020-12-17 08:38:40 +01:00
665426fefc
boards/stm32f0: adapt to refactored clock configuration 2020-09-08 16:03:44 +02:00
48a8d29c4e
boards/stm32f0: use shared default clock configuration 2020-08-30 22:05:46 +02:00
hugues
477e910066 boards/stm32f0discovery: declare adc_config[] directly in periph_conf.h 2020-08-27 03:56:26 +02:00
f53983e5fa
stm32f0discovery: remove obsolete spi_divtable 2020-08-18 16:55:09 +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
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
Vincent Dupont
a4b25ad4dc boards/nucleo-f3xx: adapt clock config 2017-09-01 10:15:32 +02:00
Vincent Dupont
12a12108a7 boards/stm32f0discovery: adapt clock configuration 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
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
ccdb6eac70 boards/stm32f0discovery: export user LEDs and button to SAUL 2017-01-17 18:08:55 +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
Hauke Petersen
1bc1dd94ba boards/stm32-based: added missing CLOCK_APBx defines 2016-12-09 12:20:02 +01: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
7b1208a935 boards/stm32f0discovery: unified LED defines 2016-03-15 18:37:53 +01:00
Hauke Petersen
32e4f7b786 boards/stm32f0discovery: adapted ADC configuration 2016-03-14 13:06:23 +01:00
Hauke Petersen
ce2fdd7865 boards/stm*discovery: added define for user button 2016-03-02 12:11:34 +01:00
Joakim Nohlgård
9a7ec18ac8 boards/stm32f0discovery: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
MohmadAyman
6d25bad433 boards/stm32f0discovery: adapted to GPIO driver changes 2016-02-12 07:02:16 +02: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
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
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
Anand Srivastava
f694d46b43 boards/stm32f0discovery: led color fix 2015-05-11 16:26:28 +05:30
Hauke Petersen
0f00ae627f board/stm32f0discovery: fixed GPIO ISR defines 2015-03-13 15:32:48 +01:00
Hauke Petersen
0f5c941cf6 board/stm32f0discovery: cleaned up timer defines
- make irq prio 'timer global'
- removed unused timer_1 defs
2015-03-13 10:21:56 +01:00
Hauke Petersen
622045f934 board/stm32f0discovery: fixed doxygen group name 2015-02-12 15:11:01 +01:00
Hauke Petersen
7ec85a3797 board/stm32f0discovery: fixed GPIO CLKEN defines 2015-01-21 08:20:28 +01:00
BytesGalore
fc56535dd3 boards: add extern "C" to header files 2014-10-31 11:27:59 +01:00
Thomas Eichinger
d0b0af6d81 stm32f*: rename STDIO buffer and enable getchar with UART0 2014-09-26 14:16:59 +02:00
Thomas Eichinger
8fc2e61e20 stm32f0: be UART0 aware 2014-09-26 14:16:31 +02:00
Hauke Petersen
cdb335e21d [SQUASH ME] stm32f0: substantial fixes to SPI driver 2014-09-24 15:41:48 +02:00
Hauke Petersen
ff4854341a [SQUASH ME] finished 0.1 of spi driver 2014-09-24 15:41:47 +02:00