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

43 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
97a6543c10
tree-wide: Introduce netif feature and use it
This gets rid of a long list of boards with network interfaces and
instead let's boards (or MCUs with peripheral network interfaces)
provide the netif feature.

The apps that before used the long list are not depending on the
feature instead (in case of the default example, this is an
optional dependency).

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
Co-authored-by: mewen.berthelot <mewen.berthelot@orange.com>
2024-05-22 10:39:56 +02:00
MrKevinWeiss
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +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
Benjamin Valentin
468ea89953 boards: drop LED init
This is handled by periph_init_leds now
2022-02-18 14:35:43 +01:00
MrKevinWeiss
deda2cfb97
boards: Fix stm32 based boards kconfig models 2021-12-15 09:31:45 +01:00
Benjamin Valentin
fc88c4c4e5 boards: drop cpu_init() 2021-10-13 23:36:41 +02:00
b53d750029
boards/stm32: set openocd as only supported programmer 2021-02-24 13:29:16 +01:00
4c290e1f92
boards: remove include of serial.inc.mk 2020-12-02 09:20:57 +01:00
b87b901795
boards/lobaro-lorabox: use common stm32loader 2020-12-01 17:27:14 +01:00
2d6e8984b8
boards/stm32l0/l1: add Kconfig clock configuration 2020-11-03 14:23:46 +01:00
39e06babf5
boards/stm32: use generic clk_conf.h header 2020-10-27 08:44:56 +01:00
8ac1909ea3
cpu: boards: stm32l0l1: use IS_ACTIVE where possible in stmclk 2020-09-22 22:30:19 +02:00
5e886a76c9
boards/stm32l0/l1: merge default clock configuration headers 2020-09-22 22:30:19 +02:00
4bdb3db0f9
boards/stm32l1: override default LSE in boards where needed 2020-09-22 22:30:19 +02:00
8f39a4a310
boards/stm32l1: use shared clock configuration header 2020-08-28 16:55:32 +02:00
f4bc27e408
boards/lobaro-lorabox: move xtimer defines to board.h 2020-08-20 13:41:40 +02:00
023eec7936
lobaro-lorabox: remove obsolete spi_divtable 2020-08-18 16:55:03 +02:00
cf0c41cea1
boards/lobaro-lorabox: model features in Kconfig 2020-07-16 11:34:04 +02:00
Marian Buschsieweke
501586e586
boards/lobaro-lorabox: Fix units & alignment in doc 2020-06-16 11:36:48 +02:00
facb626b02
boards/stm32*: adapt for new stm32 cpu organization 2020-05-20 13:39:10 +02:00
7761169964
Merge pull request #11657 from Yanok35/pr-stm32-spi-af
boards/stm32-based: allow SPI signals routed on multiple alternate functions
2019-10-25 09:47:49 +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
Francisco Molina
1ae0873769 boards: change PORT used for flash/debug/reset to PROG_DEV 2019-10-24 12:58:12 +02:00
Gaëtan Harter
367aa841a2
boards/pyterm: change TERMFLAGS to PYTERMFLAGS
The boards are using `pyterm` specific options that do not work on any
other `RIOT_TERMINAL`. It is a shame this is required but at least do
not pass arbitrary arguments to the other RIOT_TERMINAL.
So use the new PYTERMFLAGS for this.
2019-08-27 14:25:02 +02:00
Gaëtan Harter
636285ebe4
boards: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-08-20 16:11:50 +02:00
Benjamin Valentin
8af04cd939 boards: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Francisco
b8cd3c0724
Merge pull request #11809 from aabadie/pr/boards/stm32_timer_conf_common
boards/stm32: introduce common timer configurations and use them where possible
2019-08-06 17:07:22 +02:00
cb25ed7b05
boards/stm32: provide support custom spi pins mode for lora boards
This minimize a lot power consumption when going to sleep after the spi has been used
2019-08-05 16:46:41 +02:00
b710cda156
boards/lobaro-lorabox: use common timer configuration 2019-08-05 15:00:53 +02:00
7853ca0108
boards/stm32*: remove useless RTC_NUMOF defines 2019-08-05 11:08:53 +02:00
francisco
9bdfc1c95a boards/lobaro-lorabox: add -A suffix to CPU_MODEL 2019-07-09 08:56:37 +02:00
8db29ad065
boards/lobaro-lorabox: add sx1272 driver to netdev_default deps 2019-07-01 14:50:04 +02:00
Gaëtan Harter
84d7e37b11
boards/lobaro-lorabox: use FLASHFILE for boards using stm32loader.py
Update to use FLASHFILE as file to be flashed on the board.
2019-06-04 16:37:32 +02:00
Yegor Yefremov
2c41c9e094 boards/lobaro-lorabox: make sx127x definition consistent
No need to specify SX127X_PARAMS structure as it is already
defined in drivers/sx127x/include/sx127x_params.h.

Also remove SX127X_PARAM_SPI and SX127X_PARAM_PASELECT as their
values are the same as default ones.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-04-29 09:07:29 +02:00
Leandro Lanzieri
609db0c2f6 boards/lobaro-lorabox: Remove auto init LED0 2019-02-25 13:43:50 +01:00
9a69c9bbc5 boards/stm32: remove useless empty conf defines 2019-01-02 14:52:38 +01:00
4ae15d18b5 boards/stm32based: remove periph_gpio/irq from board level 2018-12-18 21:51:14 +01:00
Sebastian Meiling
5b118df6b1 boards: add feature periph_gpio_irq to lobaro-lorabox 2018-11-21 17:35:49 +01:00
smlng
3f938123d5 lorabox: add port to flasher parameters
This adds the port parameter to the stm32loader flash script. This was
necessary to allow flashing on macOS X where the default port is not
autodetected correctly and needs to be specified, e.g. by running:

    BOARD=lobaro-lorabox PORT=/dev/tty.SLAB_USBtoUART \
    make -C examples/lorawan flash term`
2018-10-17 16:07:00 +02:00
cladmi
b450141d4d
boards: unconditionally include CPU/Makefile.features
The file always exist so no need to do '-include'.

Replaced using:

    sed -i 's|-\(include $(RIOTCPU)/.*/Makefile.features\)|\1|' \
        $(git grep -l  '$(RIOTCPU)/.*/Makefile.features' boards)
2018-10-11 17:13:40 +02:00
Leandro Lanzieri
177ef5bfa9 boards/lobaro-lorabox: Add initial support for Lobaro Lorabox board 2018-09-18 18:07:07 +02:00