cpu/esp32: Use periph_adc_ctrl as feature

This commit is contained in:
Leandro Lanzieri 2020-03-09 17:53:46 +01:00
parent 584d03aae0
commit 2b8976d935
No known key found for this signature in database
GPG Key ID: 39607DE6080007A3
3 changed files with 5 additions and 1 deletions

View File

@ -53,6 +53,10 @@ ifneq (,$(filter esp_rtc_timer_32k,$(USEMODULE)))
USEMODULE += esp_rtc_timer
endif
ifneq (,$(filter periph_adc periph_dac,$(USEMODULE)))
FEATURES_REQUIRED += periph_adc_ctrl
endif
ifneq (,$(filter periph_i2c,$(USEMODULE)))
ifneq (,$(filter esp_i2c_hw,$(USEMODULE)))
USEMODULE += core_thread_flags

View File

@ -4,4 +4,5 @@ include $(RIOTCPU)/esp_common/Makefile.features
FEATURES_PROVIDED += arch_esp32
FEATURES_PROVIDED += esp_wifi_enterprise
FEATURES_PROVIDED += periph_adc_ctrl
FEATURES_PROVIDED += periph_rtc

View File

@ -37,7 +37,6 @@ PSEUDOMODULES += esp_wifi_enterprise
USEMODULE += esp_idf_driver
USEMODULE += esp_idf_esp32
USEMODULE += esp_idf_soc
USEMODULE += periph_adc_ctrl
USEMODULE += pm_layered
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/