1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 08:32:43 +01:00
RIOT/cpu/esp32/esp-idf/adc/Makefile
2022-07-15 16:17:03 +02:00

26 lines
642 B
Makefile

MODULE = esp_idf_adc
# source files to be compiled for this module
ESP32_SDK_SRC = \
components/driver/adc.c \
components/driver/adc_common.c \
components/hal/adc_hal.c \
components/soc/$(CPU)/adc_periph.c \
#
ifneq (,$(filter esp32c3 esp32s3,$(CPU)))
ESP32_SDK_SRC += components/driver/$(CPU)/adc2_init_cal.c
INCLUDES += -I$(ESP32_SDK_DIR)/components/driver/include/driver
endif
ifneq (,$(filter esp32c3 esp32h2 esp32s3,$(CPU)))
ESP32_SDK_SRC += components/efuse/$(CPU)/esp_efuse_rtc_calib.c
endif
include $(RIOTBASE)/Makefile.base
ESP32_SDK_BIN = $(BINDIR)/$(MODULE)
include ../esp_idf.mk
include ../esp_idf_cflags.mk