From 48f59a1487971f28208a6a524141eb15685c14fe Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sun, 19 Dec 2021 15:56:31 +0100 Subject: [PATCH] cpu/esp8266: RTT is used by the WiFi Interface If the WiFi interface is enabled by module `esp_wifi_any`, binary SDK libraries use the RTT. Therefore, `ztimer` must not use `periph_rtt`as backend, if the WiFi interface is enabled by module `esp_wifi_any`. --- cpu/esp8266/Kconfig | 1 + cpu/esp8266/Makefile.dep | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/cpu/esp8266/Kconfig b/cpu/esp8266/Kconfig index cca627a7d6..354468be41 100644 --- a/cpu/esp8266/Kconfig +++ b/cpu/esp8266/Kconfig @@ -29,6 +29,7 @@ config CPU_FAM_ESP8266 select MODULE_ESP_SDK if TEST_KCONFIG select MODULE_PERIPH_COMMON if TEST_KCONFIG select MODULE_RTT_RTC if HAS_PERIPH_RTT && MODULE_PERIPH_RTC + select MODULE_ZTIMER_NO_PERIPH_RTT if MODULE_ESP_WIFI_ANY ## CPU Models config CPU_MODEL_ESP8266EX diff --git a/cpu/esp8266/Makefile.dep b/cpu/esp8266/Makefile.dep index 4c3bf5e9b8..ae18a86e74 100644 --- a/cpu/esp8266/Makefile.dep +++ b/cpu/esp8266/Makefile.dep @@ -23,3 +23,8 @@ endif ifneq (,$(filter periph_rtc,$(USEMODULE))) USEMODULE += rtt_rtc endif + +ifneq (,$(filter esp_wifi_any,$(USEMODULE))) + # avoid that ztimer_periph_rtt is used as backend + USEMODULE += ztimer_no_periph_rtt +endif