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

138 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
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +01:00
f9d247791d
treewide: replace occurrences of tests/driver_ with new path 2023-05-06 15:38:21 +02:00
MrKevinWeiss
464f57b4a3
boards: Remove PLL overrides in kconfig
Since we know the HSE speed, manual overrides are not needed anymore
2022-11-03 13:38:09 +01: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
Benjamin Valentin
468ea89953 boards: drop LED init
This is handled by periph_init_leds now
2022-02-18 14:35:43 +01:00
MrKevinWeiss
04a235933d
boards/msbiot: Fix kconfig clk tree 2022-02-10 13:43:38 +01:00
MrKevinWeiss
29c3e7d87b
boards/*/Kconfig: Fix simple kconfig models 2022-02-01 13:58:08 +01:00
Leandro Lanzieri
df7ce1c647
makefiles/kconfig: use two lists for boards and CPUs default configs
This introduces KCONFIG_BOARD_CONFIG and KCONFIG_CPU_CONFIG variable for
boards and CPUs (including common directories) to add default
configuration files to be merged. The current approach, as it uses
Makefile.features, would include boards first, not allowing them to
override CPU configurations.
2021-12-13 12:33:21 +01:00
Benjamin Valentin
fc88c4c4e5 boards: drop cpu_init() 2021-10-13 23:36:41 +02:00
Benjamin Valentin
25a5df2166 boards: select 868 MHz band for CC110x 2021-09-17 12:58:10 +02: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
7201acdcd0
boards: remove conditional for st-link version 2021-02-23 21:22:52 +01:00
603186f913
make: namespace openocd DEBUG_ADAPTER variable 2021-02-23 21:22:52 +01:00
96b79c21f0
boards/stm32f4*: add Kconfig clock configuration 2021-01-19 22:09:16 +01: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
4c9049e435
boards/msbiot: model features in kconfig 2020-07-16 11:34:05 +02:00
97f98dcace
boards/stm32: remove useless ifdef around DMA config 2020-05-25 13:23:20 +02:00
dc6bb50021
Merge pull request #14093 from bergzand/pr/boards_stm32f4/add_spi_dma
boards/stm32f4: Add DMA config for SPI
2020-05-25 13:17:22 +02:00
70e3bf84b0
msbiot: Add DMA config for SPI 2020-05-25 11:42:10 +02:00
facb626b02
boards/stm32*: adapt for new stm32 cpu organization 2020-05-20 13:39: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
Benjamin Valentin
dc58ef59ae boards: remove duplicate gnrc_netdev_default from Makefile.dep
`gnrc_netdev_default` will pull in `netdev_default`, so no need to
check for both in `Makefile.dep`
2020-05-05 09:58:45 +02:00
Marian Buschsieweke
c989205d8f
boards/msbiot: Use common stm32 serial/programmer settings 2020-04-09 09:57:45 +02:00
Gunar Schorcht
d02223d6dd boards/msbiot: fix broken links 2020-03-24 10:38:40 +01: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
Jannes
fdd34499ac drivers/mpu9x50: Correct read_temperature
Change msbiot Makefile.dep back to mpu9150
2019-10-17 14:04:43 +02:00
Jannes
2df5d6048d driver/mpu9x50: Rename mpu9150 to mpu9x50
Rename all files

Rename all variables, methods and methodcalls

Rename all folders

Add to the makefiles

Add to doc
2019-10-17 12:52:18 +02:00
Juan I Carrano
e2b2b8e43c
Merge pull request #12014 from cladmi/pr/cpu_cpu_model/migration/straightforward_ones
boards: move CPU/CPU_MODEL definition to Makefile.features
2019-08-21 18:52:28 +02:00
Marian Buschsieweke
137c2c0adf
boards: Added cc110x params for MSB-A2 & MSB-IoT 2019-08-20 16:38:49 +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
Marian Buschsieweke
615e25f319
drivers: Removed driver for CC110x transceivers
- Removed cc110x driver
- Updated all makefiles
- Kept both board specific configurations and support for it in RIOT's
  upper layers, so re-implementations don't need to start from zero
2019-08-19 12:56:47 +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
Marian Buschsieweke
489138c2d3
boards/msbiot: Updated/fixed documentation
- Updated outdated information
- Fixed Markdown to generate desired output
- Replaced references to source code by references to their documentation
- Correct use of units (b = bit, B = byte, Ki = 1024, K = 1000, ...)
2019-06-27 09:27:04 +02:00
a68f78bb10
boards/*: remove unused FEATURES_MCU_GROUP variable 2019-06-14 11:32:15 +02:00
414c304f2b
boards/*: remove useless export when setting DEBUG_ADAPTER 2019-06-03 10:32:08 +02:00
4ae15d18b5 boards/stm32based: remove periph_gpio/irq from board level 2018-12-18 21:51:14 +01: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
Joakim Nohlgård
8996cbe313 make: Introduce new feature flag periph_gpio_irq 2018-08-29 08:53:20 +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