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

boards/esp32s2-devkit: add feature periph_usbdev

This commit is contained in:
Gunar Schorcht 2022-09-26 21:11:44 +02:00
parent 293d62ac45
commit 16853b6339
2 changed files with 14 additions and 6 deletions

View File

@ -30,10 +30,14 @@ config BOARD_ESP32S2_DEVKIT
select HAS_PERIPH_I2C
select HAS_PERIPH_PWM
select HAS_PERIPH_SPI
select HAS_PERIPH_USBDEV if BOARD_VERSION_ESP32S2_DEVKITC_1
select HAS_PERIPH_USBDEV if BOARD_VERSION_ESP32S2_DEVKITC_1U
select HAS_PERIPH_USBDEV if BOARD_VERSION_ESP32S2_DEVKITC_1R
select HAS_PERIPH_USBDEV if BOARD_VERSION_ESP32S2_DEVKITC_1RU
choice
bool "ESP32-S2-DevKit board version"
default BOARD_VERSION_ESP32S2_DEVKITM_1
default BOARD_VERSION_ESP32S2_DEVKITC_1
config BOARD_VERSION_ESP32S2_DEVKITM_1
bool "ESP32-S2-DevKitM-1"

View File

@ -1,17 +1,17 @@
# default board version if not defined
BOARD_VERSION ?= esp32s2-devkitm-1
BOARD_VERSION ?= esp32s2-devkitc-1
ifeq (esp32s2-devkitm-1,$(BOARD_VERSION))
CPU_MODEL = esp32s2_mini_1x_n4
else ifeq (esp32s2-devkitm-1u,$(BOARD_VERSION))
CPU_MODEL = esp32s2_mini_1x_n4
else ifeq (esp32s2-devkitm-1r,$(BOARD_VERSION))
CPU_MODEL = esp32s2_mini-1x_n4r2
CPU_MODEL = esp32s2_mini_1x_n4r2
else ifeq (esp32s2-devkitm-1ru,$(BOARD_VERSION))
CPU_MODEL = esp32s2_mini-1x_n4r2
else ifeq (esp32s2-devkitc_1,$(BOARD_VERSION))
CPU_MODEL = esp32s2_mini_1x_n4r2
else ifeq (esp32s2-devkitc-1,$(BOARD_VERSION))
CPU_MODEL = esp32s2_solo_n4
else ifeq (esp32s2-devkitc_1u,$(BOARD_VERSION))
else ifeq (esp32s2-devkitc-1u,$(BOARD_VERSION))
CPU_MODEL = esp32s2_solo_n4
else ifeq (esp32s2-devkitc-1r,$(BOARD_VERSION))
CPU_MODEL = esp32s2_solo_n4r2
@ -40,3 +40,7 @@ FEATURES_PROVIDED += periph_pwm
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += arduino
ifneq (,$(filter esp32s2-devkitc-%,$(BOARD_VERSION)))
FEATURES_PROVIDED += periph_usbdev
endif