1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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`.
This commit is contained in:
Gunar Schorcht 2021-12-19 15:56:31 +01:00
parent ae8713fea8
commit 48f59a1487
2 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,7 @@ config CPU_FAM_ESP8266
select MODULE_ESP_SDK if TEST_KCONFIG select MODULE_ESP_SDK if TEST_KCONFIG
select MODULE_PERIPH_COMMON if TEST_KCONFIG select MODULE_PERIPH_COMMON if TEST_KCONFIG
select MODULE_RTT_RTC if HAS_PERIPH_RTT && MODULE_PERIPH_RTC select MODULE_RTT_RTC if HAS_PERIPH_RTT && MODULE_PERIPH_RTC
select MODULE_ZTIMER_NO_PERIPH_RTT if MODULE_ESP_WIFI_ANY
## CPU Models ## CPU Models
config CPU_MODEL_ESP8266EX config CPU_MODEL_ESP8266EX

View File

@ -23,3 +23,8 @@ endif
ifneq (,$(filter periph_rtc,$(USEMODULE))) ifneq (,$(filter periph_rtc,$(USEMODULE)))
USEMODULE += rtt_rtc USEMODULE += rtt_rtc
endif endif
ifneq (,$(filter esp_wifi_any,$(USEMODULE)))
# avoid that ztimer_periph_rtt is used as backend
USEMODULE += ztimer_no_periph_rtt
endif