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

992 Commits

Author SHA1 Message Date
Gunar Schorcht
7651e68db9 boards/common/silabs: add common USB OTG FS config 2022-12-07 16:34:34 +01:00
Gunar Schorcht
0b1b7e8408 boards/arduino-zero: move tinusb_device feature
The `tinyusb_device` feature introduced with PR #18689 has to be moved from `common/arduino-zero` definition to the `arduino-zero` definition because the common `arduino-zero` features are also used by `wemos-zero` which uses `highlevel_stdio` feature via the `stdio_cdc_acm` module.
2022-12-07 13:56:24 +01:00
Gunar Schorcht
44893a37e4 boards/common/weact-f4x1cx: remove tinyUSB feature
weact-f4xcx boards have only a single USB-C connector that is used for `highlevel_stdio` via USBUS CDC ACM so that it conflicts with tinyUSB for the moment.
2022-12-04 16:23:02 +01:00
Gunar Schorcht
93215df868 sys/usb/usbus: enable USBUS stdio_cdc_acm only if tinyUSB is not used 2022-12-03 12:52:45 +01:00
Gunar Schorcht
9fa01d69d8 boards/common/blxxxpill: enable riotboot feature 2022-11-30 19:28:14 +01:00
Gunar Schorcht
941d6be666 boards: make DFU_USB_ID and DFU_USE_DFUSE overridable 2022-11-30 19:28:14 +01:00
Juergen Fitschen
d9cde14669 treewide: fix typos found by recent codespell 2022-11-24 14:53:48 +01:00
Marian Buschsieweke
232c70ba53
Merge pull request #18948 from maribu/boards/common/nrf52
boards/common/nrf52: fix timer config
2022-11-23 10:47:26 +01:00
Marian Buschsieweke
51b6379dee
boards/common/nrf52: fix timer config
The `channels` member should not be set to the number of hardware
channels *n*, but to *n* - 1 instead. The last channel is implicitly
used in `timer_read()`. Hence out of *n* hardware channels, only *n* - 1
are available to the application.

This fixes a bug introduced by 4d02e15247
which incorrectly set the channel number to *n* rather than to
*n* - 1.
2022-11-22 13:20:53 +01:00
Jue
2a81a2ab5c cpu/efm32: provide periph_uart_modecfg feature for every board 2022-11-21 23:20:19 +01:00
64dcfd67ff
Merge pull request #18811 from maribu/boards/common/nrf52
boards/common/nrf52: improve default clock config
2022-11-21 09:33:47 +00: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
4d02e15247
boards/common/nrf52: improve default clock config
- All nRF52 timers support 32 bit mode, so use that
- All nRF52 timers support at least 4 channels, the timers NRF_TIMER3
  and NRF_TIMER4 even support 6 channels.
- Add a warning that `TIMER_DEV(1)` is used by the IEEE 802.15.4 driver
2022-10-27 21:12:19 +02:00
Marian Buschsieweke
051a1f1e32
boards/common/blxxxpill: rework periph configuration
The peripheral configuration has been completely reworked to resolve
pin conflicts while provided as much of the peripherals as possible.
The changes include:

- Move `I2C_DEV(0)` from PB6/PB7 to PB8/PB9 to solve pin conflict with
  `QDEC_DEV(2)`.
- Use pins PB0, PB1, PB4, and PB5 for PWM instead PA8, PA9, PA10, and
  PA11
    - PA9 and PA10 is in pin conflict with `UART_DEV(0)` which is used
      for stdio with `stdio_uart`, PA8 was in conflict with
      `QDEC_DEV(0)`, PA11 was in conflict with USB D-
- Use PB6, PB7 as `QDEC_DEV(0)` (previously `QDEC_DEV(2)`), as this is
  the only completely conflict free setting
- Use PB4/PB5 instead of PA6/PA7 for QDEC_DEV(1)
    - This fixes a pin conflict with `SPI_DEV(0)` MISO (and
      `ADC_LINE(4)`)
- Only provide QDEC at PB4/PB5 when PWM is not used to avoid conflict
- Only provide QDEC at PA8/PA9 when UART is not used to avoid conflict
- Use SPI2 (PB15, PB14, PB13, PB12) as `SPI_DEV(0)` instead of SPI1,
  use SPI1 (PA7, PA6, PA5, PA4) as `SPI_DEV(1)`
- Only provide `SPI_DEV(1)` if the ADC is not in used to resolve a
  pin conflict
- Move PB0 and PB1 at the end of the ADC lines (previously
  `ADC_LINE(6)` and `ADC_LINE(7)`, now `ADC_LINE(8)` and `ADC_LINE(9)`)
   - Only provide them when PWM is not in use (to resolve pin conflict
     with PWM)
   - Also do not provide them for the Blackpill boards, which are
     missing pins PB0 and PB1 on the headers

To make life of users easier, a Pinout diagram with the new
configuration was added.
2022-10-27 14:28:07 +02:00
0fca912e91
Merge pull request #18714 from gschorcht/drivers/usbdev_synopsys_dwc2_hs_utmi
drivers/usbdev_synopsys_dwc2: add support for internal UTMI HS PHY
2022-10-16 14:05:32 +02:00
Gunar Schorcht
658d6b69b5 boards/common/stm32: add common configuration for internal USB HS PHY 2022-10-16 11:35:42 +02:00
Benjamin Valentin
d3d89aaec8
boards/blxxxpill: configure usbdev_fs 2022-10-13 21:59:47 +02:00
benpicco
d6d8f8dadb
Merge pull request #18679 from gschorcht/drivers/usbdev_synopsys_dwc2_hs
drivers/usbdev_synopsys_dwc2: add USB OTG HS peripheral support for external ULPI HS PHYs
2022-10-07 00:23:29 +02:00
Gunar Schorcht
4384403638 boards/common/esp32{s2,s3}: update USB OTG configuration 2022-10-06 06:26:22 +02:00
Gunar Schorcht
d2f7fd6a0e boards/common/stm32: rename cfg_usb_otg_hs_fs.h to clarify the usage
The `fs` in the file name means that on-chip FS PHY is configured for USB OTG HS. The file is renamed to `cfg_usb_otg_hs_phy_fs.h`
- to clarify that USB OTG HS is just configured with PHY FS and not HS and FS,
- to allow a configuration of USB OTG FS and HS in one file called `cfg_usb_otg_hs_fs.h` or whatever, and
- to allow a configuration of USB OTG HS with ULPI PHY in a file called `cfg_usb_otg_hs_phy_ulpi.h`.
f
2022-10-06 06:25:38 +02:00
Dylan Laduranty
4e39ba4c7a boards/sam0-based: enable tinyusb_device support in Kconfig
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2022-10-05 20:14:02 +02:00
Dylan Laduranty
b17197fe53 boards/sam0-based: enable tinyusb_device support in Makefiles.features
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2022-10-05 19:23:37 +02:00
Gunar Schorcht
990feeec39 boards: enable feature tinyusb_device for STM32 boards 2022-09-30 19:05:51 +02:00
benpicco
45afb8f986
Merge pull request #18644 from gschorcht/drivers/synopsys_dwc2
drivers: add driver for Synopsys DWC2 that is used as USB OTG peripheral on STM32 and ESP32x SoCs
2022-09-29 04:44:32 +02:00
Benjamin Valentin
2c9a3857d9 boards: convert sam0 boards to new adc_conf_chan_t 2022-09-27 22:43:31 +02:00
Gunar Schorcht
293d62ac45 boards/common/esp32: use usbdev_synopsys_dwc2 driver as periph_usbdev 2022-09-27 01:00:57 +02:00
Gunar Schorcht
641e343f7d boards/common/stm32: use usbdev_synopsys_dwc2 driver as periph_usbdev 2022-09-27 01:00:57 +02:00
Benjamin Valentin
f39e502eaf boards: drop unused BTN0_PORT define 2022-09-20 18:08:55 +02:00
Karl Fessel
da51932737 boards: add some missing whitespaces for static tests 2022-09-14 15:11:14 +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
77270e241a
boards/common/stm32: Fix LED configuration
The inverted and non-inverted `LED<num>_ON` and `LED<num>_OFF` macros
are swapped. This didn't reveal in testing as the
`LED<num>_IS_INVERTED` macros where not properly evaluated, due to a
typo in the check. This fixes both.
2022-09-13 08:34:31 +02:00
Gunar Schorcht
d85e9b3cc4 boards/common: add common board definition for ESP32-S2 2022-08-29 17:19:39 +02:00
Marian Buschsieweke
8d1476933b
Merge pull request #18415 from maribu/boards/common/stm32
boards/common/stm32: clean up LED definitions
2022-08-25 20:17:44 +02:00
Gunar Schorcht
84a1dec4f3 boards/common: add common board definition for ESP32-S3 2022-08-17 02:04:07 +02:00
Marian Buschsieweke
a1ed6f3b78
boards/common/blxxxpill: use UART_DEV(0) for stdio
Using `UART_DEV(0)` (UASRT1) for stdio allows to use the same TTL
adapter that is used for programming via `stm32flash` to be used for
serial, without re-wiring after flashing.
2022-08-12 19:13:29 +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
0e58666e49 boards/common/esp32: remove SPIFFS defines with default values
All SPIFFS defines are already defined as defaults in
2022-08-05 22:26:44 +02:00
Gunar Schorcht
f8c060e291 boards/common: add common board definition for ESP32-C3 2022-08-05 22:26:22 +02:00
Dylan Laduranty
b278002a8e boards/saml11-xpro: update doc for SERCOM1 fuse
SAML11 needs special handling for enabling SERCOM1 on EXT1. Update board documentation accordingly

Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2022-07-28 22:42:26 +02:00
Leandro Lanzieri
b3ac6b7057
boards select cc2538 Kconfig feature 2022-07-28 09:32:25 +02:00
Leandro Lanzieri
8390641638
drivers/kw41zrf: model Kconfig 2022-07-28 09:32:24 +02:00
Leandro Lanzieri
7d95e9b5a9
drivers/at86rf2xx: model Kconfig 2022-07-28 09:32:24 +02:00
Gunar Schorcht
06d3616710 cpu/esp32: move CPU_FAM definition to board definition
To support ESP32x SoC families with existing Makefiles, CPU_FAM has to be defined by board definition.
2022-07-18 13:05:21 +02:00
Gunar Schorcht
c0becd2819 cpu/esp32: port periph/i2c_hw to ESP-IDF i2c HAL 2022-07-17 18:48:23 +02:00
benpicco
94e9116c04
Merge pull request #18276 from gschorcht/cpu/esp32/periph_hal_esp32_pwm
cpu/esp32: use ESP-IDF ledc HAL for periph/pwm
2022-07-14 18:09:01 +02:00
Gunar Schorcht
2ae2facf90 cpu/esp32: port periph/pwm to ESP-IDF ledc HAL 2022-07-14 15:50:47 +02:00
Peter Kietzmann
9af87803c6
Merge pull request #18137 from Einhornhool/pr/update-cryptoauth-package
pkg/cryptoauthlib: Update package to latest version
2022-07-06 13:30:16 +02:00
Lena Boeckmann
422d81a2b4 pkg/cryptoauthlib: Update package to latest version 2022-07-06 10:45:39 +02:00
krzysztof-cabaj
1e8c7980e3 boards/common/adruino-atmega: fix issue with wrong port for LED0 2022-06-23 09:06:08 -04:00
Marian Buschsieweke
95df0e8315
Merge pull request #18238 from gschorcht/boards/esp32/cleanup_board_init_common
boards/esp32: cleanup board_init_common
2022-06-22 13:53:15 +02:00
Gunar Schorcht
d00c6b0e3c boards/esp32: cleanup board_init_common
board_init_common isn't needed any longer.
2022-06-21 16:21:10 +02:00
Marian Buschsieweke
e3f5ba90fd
boards/{thingy52,ruuvitag}: allow OpenOCD as programmer 2022-06-21 15:04:13 +02:00
Marian Buschsieweke
2bf39e1aca
boards/common/nrf52: fix compilation of thingy52 and ruuvitag 2022-06-08 12:38:23 +02:00
Marian Buschsieweke
f256e48159
Merge pull request #18168 from maribu/boards/common/programmer
boards/common/{nrf52,cc26xx_cc13xx}: improve default programmer selection
2022-06-08 10:15:17 +02:00
Marian Buschsieweke
ed83aa3883
boards/common/cc26xx_cc13xx: improve default PROGRAMMER setting
Only default to uniflash as default programmer if UNIFLASH_PATH is
set. If this isn't the case, `make flash` fails complaining about
missing `UNIFLASH_PATH` anyway.
2022-06-07 16:45:14 +02:00
Marian Buschsieweke
6d39b3c993
boards/common/nrf52: only default PROGRAMMER to jlink if installed 2022-06-07 16:45:13 +02:00
Marian Buschsieweke
8d63b63e7a
boards/common/nucleo: provide TTY_BOARD_FILTER 2022-06-03 19:59:31 +02:00
Marian Buschsieweke
b986279350
boards/common/cc26xx_cc13xx: provide TTY_BOARD_FILTER 2022-06-03 19:59:31 +02:00
benpicco
e1e2b7c5b6
Merge pull request #17601 from gschorcht/cpu/esp32/upgrade_esp-idf_v4.4
cpu/esp32: Upgrade to ESP-IDF v4.4
2022-06-02 10:18:07 +02:00
Gunar Schorcht
1d914d1496 boards/esp32: changes for ESP-IDF v4.4 2022-06-01 13:21:29 +02:00
krzysztof-cabaj
0c2d257b67 boards/nucleo: cpy2remed enabled 2022-05-18 06:30:39 -04:00
benpicco
9ca3dd5d4b
Merge pull request #17656 from benpicco/vfs_default-test
vfs_default: add compile test and add default mount for more boards
2022-03-29 13:47:08 +02:00
Benjamin Valentin
53756e24cb boards/weact-f4x1cx: configure littlefs2 on external flash 2022-03-29 10:24:01 +02:00
fdacb1a118
boards/stm32: adapt I2C configuration where needed 2022-03-23 10:10:08 +01:00
Leandro Lanzieri
5438a967aa
boards/common/qn908x: perfom checksum on shadow copy 2022-03-07 10:28:13 +01:00
Benjamin Valentin
5d111e71aa boards: drop board_init() from board.h 2022-02-25 15:08:58 +01:00
c6151226ad
Merge pull request #17633 from fjmolinas/pr_ztimer_auto_adjust
sys/ztimer: add auto_adjust module
2022-02-23 10:01:05 +01:00
Francisco Molina
464d941a3e boards: drop empty custom board_init & empty board.c 2022-02-22 18:27:37 +01:00
Benjamin Valentin
4d7a3c1dba sys/board_common: add generic board_init() function 2022-02-22 10:04:44 +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
Francisco Molina
59d069c59d boards: update CONFIG_ZTIMER_USEC_ADJUST% values 2022-02-18 13:07:49 +01:00
Benjamin Valentin
67417ce5a9 drivers/mtd_spi_nor: drop addr_width from mtd_spi_nor_params_t
This is now always determined at run-time.
2022-02-04 12:17:17 +01:00
Gunar Schorcht
529c6fa5b4 boards/arduino-mkr: use UART_UNDEF to enable Serial over STDIO 2022-01-06 17:27:53 +01:00
05da606ea6
Merge pull request #17438 from gschorcht/cpu/esp/feature_cleanup
boards/esp* and cpu/esp: feature definition cleanup
2022-01-04 10:51:33 +01:00
benpicco
40a6000cc5
Merge pull request #17410 from aabadie/pr/cpu/stm32u5
cpu/stm32: add support for U5 family
2022-01-02 18:45:57 +01:00
4465ce1984
boards/common/microbit: fix doxygen grouping 2021-12-23 11:07:58 +01:00
62a682dd2c
boards/b-u585i-iot02a: add initial basic support 2021-12-23 11:04:42 +01:00
Gunar Schorcht
aeb5d1197c boards/esp8266: common periph features moved to cpu/esp_common 2021-12-23 10:33:57 +01:00
Gunar Schorcht
b1d2d46ee4 boards/esp32: common periph features moved to cpu/esp_common 2021-12-23 10:33:35 +01:00
Kevin "Tristate Tom" Weiss
e3f6212708
Merge pull request #17355 from leandrolanzieri/pr/boards/samd21/model_kconfig
boards/samd21-based: model Kconfig
2021-12-15 12:35:32 +01:00
Marian Buschsieweke
26eed0ae5a
Merge pull request #17399 from maribu/boards/common/nrf52xxxdk
boards/common/nrf52xxxdk: Expose LEDs via saul_pwm
2021-12-15 11:08:39 +01:00
Leandro Lanzieri
6ecbfe99f7 boards/common/sodaq: model Kconfig 2021-12-15 10:30:51 +01:00
Leandro Lanzieri
ea0039f7a0 boards/common/arduino-zero: model Kconfig 2021-12-15 10:30:51 +01:00
Leandro Lanzieri
7fe6eba806 boards/common/arduino-mkr: model Kconfig 2021-12-15 10:30:51 +01:00
Leandro Lanzieri
d249fc5ba7 boards/common/samdx1-arduino-bootloader: model Kconfig 2021-12-15 10:30:51 +01:00
MrKevinWeiss
deda2cfb97
boards: Fix stm32 based boards kconfig models 2021-12-15 09:31:45 +01:00
Marian Buschsieweke
c118df3eb2
boards/common/nrf52xxxdk: Expose LEDs via saul_pwm
This allows dimming the LEDs instead of only turning them on and off.
2021-12-14 22:02:56 +01:00
Kevin "Tristate Tom" Weiss
ed94dd7085
Merge pull request #17376 from leandrolanzieri/pr/makefiles/add_board_cpu_config_variables
makefiles/kconfig: add board & CPU config variables
2021-12-13 13:26:40 +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
Leandro Lanzieri
4be55b7a49
boards/common/esp8266: model Kconfig 2021-12-10 18:54:07 +01:00
Leandro Lanzieri
b3b468ad8b
boards/esp32: model Kconfig 2021-12-10 18:54:07 +01:00
Francisco
7362074f49
Merge pull request #17235 from leandrolanzieri/cpu/kinetis/model_kconfig
cpu/kinetis: model kconfig
2021-12-09 14:22:10 +01:00
Francisco Molina
766bfeace4 boards: model nrf52 boards 2021-12-08 13:25:29 +01:00
Francisco Molina
e25076e370 boards/common/particle-mesh: use nrf52/bootloader_nrfutil.dep.mk 2021-12-08 13:25:29 +01:00
Francisco Molina
7a1758d7f4 boards/particle: use FEATURES_REQUIRED for periph_uart_hw_fc 2021-12-08 13:25:29 +01:00
Francisco Molina
48777f5ba4 boards/common/nrf52xxxdk: align module name with dirname 2021-12-08 13:25:29 +01:00
Leandro Lanzieri
8337d6d762
boards/kinetis: model Kconfig 2021-12-07 11:33:24 +01:00
Leandro Lanzieri
4f51174eb4
Merge pull request #17331 from MrKevinWeiss/pr/kconfig/samd5x
boards/adafruit-itsybitsy-m4: Model kconfig
2021-12-06 10:22:37 +01:00