Skip to content

Commit 870c1c0

Browse files
committed
cpu/esp32/esp-idf/adc: migration to ESP-IDF v5.4
1 parent cd7b1a6 commit 870c1c0

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

cpu/esp32/esp-idf/adc/Makefile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,26 @@ MODULE = esp_idf_adc
22

33
# source files to be compiled for this module
44
ESP32_SDK_SRC = \
5-
components/driver/adc.c \
6-
components/driver/adc_common.c \
7-
components/hal/adc_hal.c \
5+
components/driver/deprecated/adc_legacy.c \
6+
components/esp_hw_support/adc_share_hw_ctrl.c \
7+
components/hal/adc_hal_common.c \
8+
components/hal/rtc_io_hal.c \
89
components/soc/$(CPU_FAM)/adc_periph.c \
910
#
1011

11-
ifneq (,$(filter esp32c3 esp32s2,$(CPU_FAM)))
12-
ESP32_SDK_SRC += components/driver/$(CPU_FAM)/adc2_init_cal.c
13-
INCLUDES += -I$(ESP32_SDK_DIR)/components/driver/include/driver
14-
endif
15-
16-
ifneq (,$(filter esp32c3 esp32h2 esp32s3,$(CPU_FAM)))
12+
ifneq (esp32,$(CPU_FAM))
1713
ESP32_SDK_SRC += components/efuse/$(CPU_FAM)/esp_efuse_rtc_calib.c
1814
endif
1915

20-
ifneq (,$(filter esp32s2,$(CPU_FAM)))
16+
ifeq (esp32s2,$(CPU_FAM))
2117
ESP32_SDK_SRC += components/efuse/esp32s2/esp_efuse_rtc_table.c
2218
endif
2319

2420
include $(RIOTBASE)/Makefile.base
2521

2622
ESP32_SDK_BIN = $(BINDIR)/$(MODULE)
2723

24+
INCLUDES += -I$(ESP32_SDK_DIR)/components/driver/deprecated
25+
2826
include ../esp_idf.mk
2927
include ../esp_idf_cflags.mk

0 commit comments

Comments
 (0)