From 1d91d949af43eaca7e5c30f9de0bc90049a20dc2 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sun, 26 Mar 2023 18:30:37 +0200 Subject: [PATCH] cpu/esp32: add RTM feature --- cpu/esp32/Kconfig | 5 +++++ cpu/esp32/Kconfig.esp32 | 1 + cpu/esp32/Kconfig.esp32c3 | 1 + cpu/esp32/Kconfig.esp32s2 | 1 + cpu/esp32/Kconfig.esp32s3 | 1 + cpu/esp32/Makefile.features | 1 + 6 files changed, 10 insertions(+) diff --git a/cpu/esp32/Kconfig b/cpu/esp32/Kconfig index cfff078922..06007deccb 100644 --- a/cpu/esp32/Kconfig +++ b/cpu/esp32/Kconfig @@ -39,6 +39,11 @@ config HAS_ESP_HW_COUNTER Indicates that the used ESP32x SoC supports HW counters that can be used as timers. +config HAS_ESP_RMT + bool + help + Indicates that the ESP32x SoC has a RMT peripheral. + config HAS_ESP_RTC_TIMER_32K bool help diff --git a/cpu/esp32/Kconfig.esp32 b/cpu/esp32/Kconfig.esp32 index ad4af827c9..be547dd0cb 100644 --- a/cpu/esp32/Kconfig.esp32 +++ b/cpu/esp32/Kconfig.esp32 @@ -16,6 +16,7 @@ config CPU_FAM_ESP32 select HAS_ESP_BLE select HAS_ESP_BLE_ESP32 select HAS_ESP_HW_COUNTER + select HAS_ESP_RMT select HAS_ESP_WIFI_ENTERPRISE select HAS_PERIPH_FLASHPAGE select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE diff --git a/cpu/esp32/Kconfig.esp32c3 b/cpu/esp32/Kconfig.esp32c3 index d7e40fe484..72fd4c4d8d 100644 --- a/cpu/esp32/Kconfig.esp32c3 +++ b/cpu/esp32/Kconfig.esp32c3 @@ -17,6 +17,7 @@ config CPU_FAM_ESP32C3 select HAS_BLE_PHY_2MBIT select HAS_ESP_BLE select HAS_ESP_BLE_ESP32C3 + select HAS_ESP_RMT select HAS_ESP_WIFI_ENTERPRISE select HAS_PERIPH_FLASHPAGE select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE diff --git a/cpu/esp32/Kconfig.esp32s2 b/cpu/esp32/Kconfig.esp32s2 index d27f38ef8b..178b21dee0 100644 --- a/cpu/esp32/Kconfig.esp32s2 +++ b/cpu/esp32/Kconfig.esp32s2 @@ -12,6 +12,7 @@ config CPU_FAM_ESP32S2 select HAS_ARCH_ESP32 select HAS_CPU_ESP32 select HAS_ESP_HW_COUNTER + select HAS_ESP_RMT select HAS_ESP_WIFI_ENTERPRISE select HAS_PERIPH_FLASHPAGE select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE diff --git a/cpu/esp32/Kconfig.esp32s3 b/cpu/esp32/Kconfig.esp32s3 index 99c7316233..48dd7676cc 100644 --- a/cpu/esp32/Kconfig.esp32s3 +++ b/cpu/esp32/Kconfig.esp32s3 @@ -17,6 +17,7 @@ config CPU_FAM_ESP32S3 select HAS_BLE_PHY_2MBIT select HAS_ESP_BLE select HAS_ESP_BLE_ESP32C3 + select HAS_ESP_RMT select HAS_ESP_HW_COUNTER select HAS_ESP_WIFI_ENTERPRISE select HAS_PERIPH_FLASHPAGE diff --git a/cpu/esp32/Makefile.features b/cpu/esp32/Makefile.features index 5f3da5066a..1e87ecbcc8 100644 --- a/cpu/esp32/Makefile.features +++ b/cpu/esp32/Makefile.features @@ -16,6 +16,7 @@ endif include $(RIOTCPU)/esp_common/Makefile.features FEATURES_PROVIDED += arch_esp32 +FEATURES_PROVIDED += esp_rmt FEATURES_PROVIDED += esp_wifi_enterprise FEATURES_PROVIDED += periph_flashpage FEATURES_PROVIDED += periph_flashpage_in_address_space