mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
# default board version if not defined
|
|
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
|
|
else ifeq (esp32s2-devkitm-1ru,$(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))
|
|
CPU_MODEL = esp32s2_solo_n4
|
|
else ifeq (esp32s2-devkitc-1r,$(BOARD_VERSION))
|
|
CPU_MODEL = esp32s2_solo_n4r2
|
|
else ifeq (esp32s2-devkitc-1ru,$(BOARD_VERSION))
|
|
CPU_MODEL = esp32s2_solo_n4r2
|
|
else ifeq (esp32s2-saola-1m,$(BOARD_VERSION))
|
|
CPU_MODEL = esp32s2_wroom
|
|
else ifeq (esp32s2-saola-1mi,$(BOARD_VERSION))
|
|
CPU_MODEL = esp32s2_wroom
|
|
else ifeq (esp32s2-saola-1r,$(BOARD_VERSION))
|
|
CPU_MODEL = esp32s2_wrover_n4r2
|
|
else ifeq (esp32s2-saola-1ri,$(BOARD_VERSION))
|
|
CPU_MODEL = esp32s2_wrover_n4r2
|
|
else
|
|
$(error BOARD_VERSION is unknown)
|
|
endif
|
|
|
|
# common board and CPU features
|
|
include $(RIOTBOARD)/common/esp32s2/Makefile.features
|
|
|
|
# additional features provided by the board
|
|
FEATURES_PROVIDED += periph_adc
|
|
FEATURES_PROVIDED += periph_dac
|
|
FEATURES_PROVIDED += periph_i2c
|
|
FEATURES_PROVIDED += periph_pwm
|
|
FEATURES_PROVIDED += periph_spi
|
|
|
|
FEATURES_PROVIDED += arduino
|
|
|
|
ifneq (,$(filter esp32s2-devkitc-%,$(BOARD_VERSION)))
|
|
FEATURES_PROVIDED += periph_usbdev
|
|
FEATURES_PROVIDED += tinyusb_device
|
|
endif |