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

34 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
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
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
Marian Buschsieweke
137c2c0adf
boards: Added cc110x params for MSB-A2 & MSB-IoT 2019-08-20 16:38:49 +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
Jose Alamos
7b28fbf110 boards: fix Doxygen group directives 2018-08-01 15:24:55 +02:00
Marian Buschsieweke
ce57a574df
boards/msbiot: Added support for on-board buttons 2018-05-29 09:33:08 +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
882bcff048 boards: replace @brief with @name when necessary 2017-04-13 12:10:30 +02: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
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
c1aef11844 boards/msbiot: unified LED defines 2016-03-15 16:24:49 +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
f8c1dd694b boards/msbiot: adatped to UART changes 2015-12-07 18:00:40 +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
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
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
Fabian Nack
b2fb894c90 board - msbiot: Prepare msbiot for mpu9150 driver usage 2015-02-13 10:08:38 +01:00
Hauke Petersen
46827fe7a2 board/msbiot: fixed doxygen group name 2015-02-12 13:39:47 +01:00
Fabian Nack
dc658f8be0 boards - msbiot: prepare msbiot for new cc110x driver 2014-12-01 17:14:09 +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
c83e4cb361 stm32f1: unify UART0 use 2014-09-26 14:16:59 +02:00
Fabian Nack
e8a33d58db board - msbiot: initial import for the msbiot 2014-09-02 15:45:32 +02:00