2022-08-23 17:56:36 +02:00
|
|
|
# default board version if not defined
|
2022-09-26 21:11:44 +02:00
|
|
|
BOARD_VERSION ?= esp32s2-devkitc-1
|
2022-08-23 17:56:36 +02:00
|
|
|
|
|
|
|
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))
|
2022-09-26 21:11:44 +02:00
|
|
|
CPU_MODEL = esp32s2_mini_1x_n4r2
|
2022-08-23 17:56:36 +02:00
|
|
|
else ifeq (esp32s2-devkitm-1ru,$(BOARD_VERSION))
|
2022-09-26 21:11:44 +02:00
|
|
|
CPU_MODEL = esp32s2_mini_1x_n4r2
|
|
|
|
else ifeq (esp32s2-devkitc-1,$(BOARD_VERSION))
|
2022-08-23 17:56:36 +02:00
|
|
|
CPU_MODEL = esp32s2_solo_n4
|
2022-09-26 21:11:44 +02:00
|
|
|
else ifeq (esp32s2-devkitc-1u,$(BOARD_VERSION))
|
2022-08-23 17:56:36 +02:00
|
|
|
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
|
|
|
|
|
2023-06-23 15:42:08 +02:00
|
|
|
FEATURES_PROVIDED += arduino_pins
|
2022-09-26 21:11:44 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter esp32s2-devkitc-%,$(BOARD_VERSION)))
|
|
|
|
FEATURES_PROVIDED += periph_usbdev
|
2022-09-28 23:56:58 +02:00
|
|
|
FEATURES_PROVIDED += tinyusb_device
|
|
|
|
endif
|