From c1238ad4e48b8d3fe9ee4d9bd36b1a35ddf07575 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Fri, 4 Feb 2022 08:23:45 +0100 Subject: [PATCH] cpu/esp: model missing modules --- boards/esp32-wrover-kit/Makefile.features | 2 +- cpu/esp32/periph/Kconfig | 4 ++++ cpu/esp32/periph/Kconfig.i2c | 2 +- cpu/esp8266/Kconfig | 4 ++++ cpu/esp_common/Kconfig | 3 +++ 5 files changed, 13 insertions(+), 2 deletions(-) diff --git a/boards/esp32-wrover-kit/Makefile.features b/boards/esp32-wrover-kit/Makefile.features index c3a06b4d0f..4061dc907c 100644 --- a/boards/esp32-wrover-kit/Makefile.features +++ b/boards/esp32-wrover-kit/Makefile.features @@ -19,5 +19,5 @@ FEATURES_PROVIDED += arduino # This configuration enables modules that are only available when using Kconfig # module modelling ifeq (1, $(TEST_KCONFIG)) - KCONFIG_BOARD_CONFIG += $(BOARDDIR)/esp32-wrover-kit.config + KCONFIG_BOARD_CONFIG += $(BOARDDIR)/$(BOARD).config endif diff --git a/cpu/esp32/periph/Kconfig b/cpu/esp32/periph/Kconfig index d9beb65cac..ec121a59e2 100644 --- a/cpu/esp32/periph/Kconfig +++ b/cpu/esp32/periph/Kconfig @@ -27,4 +27,8 @@ config MODULE_PERIPH_RTT_HW_RTC bool default y if MODULE_PERIPH_RTT +config MODULE_ESP_HW_COUNTER + bool "Use hardware counter" + depends on MODULE_PERIPH_TIMER + endif # TEST_KCONFIG diff --git a/cpu/esp32/periph/Kconfig.i2c b/cpu/esp32/periph/Kconfig.i2c index fbbce1598b..fb4daba14b 100644 --- a/cpu/esp32/periph/Kconfig.i2c +++ b/cpu/esp32/periph/Kconfig.i2c @@ -7,7 +7,7 @@ if TEST_KCONFIG -choice +choice ESP32_I2C_IMPLEMENTATION bool "I2C implementation" depends on MODULE_PERIPH_I2C help diff --git a/cpu/esp8266/Kconfig b/cpu/esp8266/Kconfig index 076fb92561..175c85b9dc 100644 --- a/cpu/esp8266/Kconfig +++ b/cpu/esp8266/Kconfig @@ -84,5 +84,9 @@ config MODULE_ESP_I2C_SW default y if MODULE_PERIPH_I2C select MODULE_PERIPH_I2C_SW +config MODULE_ESP_SW_TIMER + bool "Use software timer" + depends on MODULE_PERIPH_TIMER + rsource "sdk/Kconfig" rsource "vendor/Kconfig" diff --git a/cpu/esp_common/Kconfig b/cpu/esp_common/Kconfig index aef54697a0..c6668b1f6c 100644 --- a/cpu/esp_common/Kconfig +++ b/cpu/esp_common/Kconfig @@ -111,6 +111,9 @@ config MODULE_ESP_LOG_STARTUP endmenu +config MODULE_ESP_QEMU + bool "Simulate ESP with QEMU" + endif # TEST_KCONFIG rsource "freertos/Kconfig"