1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 07:51:19 +01:00

boards/esp32: model Kconfig

This commit is contained in:
Leandro Lanzieri 2021-11-18 17:18:59 +01:00
parent 185d1a20df
commit b3b468ad8b
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
8 changed files with 45 additions and 1 deletions

View File

@ -10,3 +10,14 @@ config BOARD_COMMON_ESP32
select HAS_PERIPH_GPIO_IRQ
select HAS_PERIPH_UART
select HAS_PERIPH_UART_MODECFG
select HAVE_SAUL_GPIO
config MODULE_BOARDS_COMMON_ESP32
bool
depends on TEST_KCONFIG
depends on BOARD_COMMON_ESP32
depends on HAS_ARCH_ESP32
default y
help
Common ESP32 boards code.

View File

@ -19,4 +19,6 @@ config BOARD_ESP32_HELTEC_LORA32_V2
select HAS_PERIPH_PWM
select HAS_PERIPH_SPI
select HAVE_SX1276
source "$(RIOTBOARD)/common/esp32/Kconfig"

View File

@ -22,3 +22,18 @@ config BOARD_ESP32_TTGO_T_BEAM
select HAS_PERIPH_UART
source "$(RIOTBOARD)/common/esp32/Kconfig"
menu "ESP32 TTGO T-Beam options"
depends on TEST_KCONFIG
depends on BOARD_ESP32_TTGO_T_BEAM
config MODULE_ESP32_TTGO_T_BEAM_V1_0
bool "Use V1.0 board variant"
select MODULE_PERIPH_I2C
help
There are at least three board types: rev0, rev1, and V1.0. Versions
rev0 and rev1 are very similar, the only difference is that rev1 has
an additional LED connected to GPIO14. The pinout of V1.0 has more
changes.
endmenu

View File

@ -14,3 +14,9 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += esp_spi_ram
FEATURES_PROVIDED += arduino
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_ADD_CONFIG += $(BOARDDIR)/esp32-wemos-lolin-d32-pro.config
endif

View File

@ -0,0 +1 @@
CONFIG_MODULE_ESP_SPI_RAM=y

View File

@ -20,6 +20,7 @@ config BOARD_ESP32_WROVER_KIT
select HAS_PERIPH_PWM
select HAS_PERIPH_SPI
select HAS_SDCARD_SPI
select MODULE_ESP_JTAG
select HAVE_ILI9341
source "$(RIOTBOARD)/common/esp32/Kconfig"

View File

@ -15,3 +15,9 @@ FEATURES_PROVIDED += esp_spi_ram
FEATURES_PROVIDED += esp_rtc_timer_32k
FEATURES_PROVIDED += arduino
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_ADD_CONFIG += $(BOARDDIR)/esp32-wrover-kit.config
endif

View File

@ -0,0 +1,2 @@
# Sets up configuration for openocd
CONFIG_MODULE_ESP_JTAG=y