2020-08-08 12:15:27 +00:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
set(srcs "wdt_hal_iram.c"
|
|
|
|
"mpu_hal.c")
|
|
|
|
set(includes "${target}/include" "include")
|
|
|
|
|
|
|
|
if(NOT BOOTLOADER_BUILD)
|
|
|
|
list(APPEND srcs
|
|
|
|
"cpu_hal.c"
|
|
|
|
"rmt_hal.c"
|
|
|
|
"rtc_io_hal.c"
|
|
|
|
"spi_hal.c"
|
|
|
|
"spi_hal_iram.c"
|
|
|
|
"spi_slave_hal.c"
|
|
|
|
"spi_slave_hal_iram.c"
|
|
|
|
"i2s_hal.c"
|
|
|
|
"sigmadelta_hal.c"
|
|
|
|
"timer_hal.c"
|
|
|
|
"ledc_hal.c"
|
|
|
|
"ledc_hal_iram.c"
|
|
|
|
"i2c_hal.c"
|
|
|
|
"i2c_hal_iram.c"
|
|
|
|
"gpio_hal.c"
|
|
|
|
"uart_hal.c"
|
|
|
|
"uart_hal_iram.c"
|
|
|
|
"spi_flash_hal.c"
|
|
|
|
"spi_flash_hal_iram.c"
|
|
|
|
"soc_hal.c"
|
2020-09-29 23:44:12 +00:00
|
|
|
"interrupt_controller_hal.c"
|
2020-11-10 06:51:08 +00:00
|
|
|
"sha_hal.c"
|
2021-01-14 02:44:59 +00:00
|
|
|
"aes_hal.c"
|
|
|
|
"twai_hal.c"
|
2020-12-08 06:50:32 +00:00
|
|
|
"twai_hal_iram.c"
|
|
|
|
"adc_hal.c")
|
2020-08-08 12:15:27 +00:00
|
|
|
|
|
|
|
if(${target} STREQUAL "esp32")
|
|
|
|
list(APPEND srcs
|
2020-11-26 05:06:21 +00:00
|
|
|
"dac_hal.c"
|
2020-08-08 12:15:27 +00:00
|
|
|
"mcpwm_hal.c"
|
2020-11-26 05:06:21 +00:00
|
|
|
"pcnt_hal.c"
|
2020-08-08 12:15:27 +00:00
|
|
|
"sdio_slave_hal.c"
|
2020-11-26 05:06:21 +00:00
|
|
|
"touch_sensor_hal.c"
|
2020-08-08 12:15:27 +00:00
|
|
|
"esp32/adc_hal.c"
|
|
|
|
"esp32/brownout_hal.c"
|
2020-12-25 13:44:22 +00:00
|
|
|
"esp32/interrupt_descriptor_table.c"
|
2020-11-12 12:39:55 +00:00
|
|
|
"esp32/touch_sensor_hal.c"
|
|
|
|
"esp32/gpio_hal_workaround.c")
|
2020-08-08 12:15:27 +00:00
|
|
|
if(NOT BOOTLOADER_BUILD AND CONFIG_ETH_USE_ESP32_EMAC)
|
|
|
|
list(APPEND srcs "esp32/emac_hal.c")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(${target} STREQUAL "esp32s2")
|
|
|
|
list(APPEND srcs
|
2020-11-26 05:06:21 +00:00
|
|
|
"dac_hal.c"
|
|
|
|
"pcnt_hal.c"
|
2020-08-08 12:15:27 +00:00
|
|
|
"spi_flash_hal_gpspi.c"
|
|
|
|
"spi_slave_hd_hal.c"
|
2020-11-26 05:06:21 +00:00
|
|
|
"touch_sensor_hal.c"
|
2020-08-08 12:15:27 +00:00
|
|
|
"esp32s2/adc_hal.c"
|
|
|
|
"esp32s2/brownout_hal.c"
|
|
|
|
"esp32s2/cp_dma_hal.c"
|
|
|
|
"esp32s2/systimer_hal.c"
|
|
|
|
"esp32s2/touch_sensor_hal.c"
|
2020-09-17 11:59:37 +00:00
|
|
|
"esp32s2/dac_hal.c"
|
2020-12-25 13:44:22 +00:00
|
|
|
"esp32s2/interrupt_descriptor_table.c"
|
2020-12-28 10:42:49 +00:00
|
|
|
"esp32s2/usb_hal.c"
|
|
|
|
"esp32s2/usbh_hal.c")
|
2020-08-08 12:15:27 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(${target} STREQUAL "esp32s3")
|
|
|
|
list(APPEND srcs
|
2020-11-26 05:06:21 +00:00
|
|
|
"dac_hal.c"
|
2020-12-09 12:29:26 +00:00
|
|
|
"gdma_hal.c"
|
2021-02-26 05:58:04 +00:00
|
|
|
"lcd_hal.c"
|
2020-11-26 05:06:21 +00:00
|
|
|
"pcnt_hal.c"
|
2020-08-18 09:11:46 +00:00
|
|
|
"spi_flash_hal_gpspi.c"
|
2020-09-08 09:05:49 +00:00
|
|
|
"spi_slave_hd_hal.c"
|
2020-11-26 05:06:21 +00:00
|
|
|
"touch_sensor_hal.c"
|
2020-08-08 12:15:27 +00:00
|
|
|
"esp32s3/brownout_hal.c"
|
2020-12-25 13:44:22 +00:00
|
|
|
"esp32s3/interrupt_descriptor_table.c"
|
2020-08-08 12:15:27 +00:00
|
|
|
"esp32s3/systimer_hal.c"
|
|
|
|
"esp32s3/touch_sensor_hal.c")
|
|
|
|
endif()
|
2020-11-26 05:06:21 +00:00
|
|
|
|
|
|
|
if(${target} STREQUAL "esp32c3")
|
|
|
|
list(APPEND srcs
|
2020-09-30 09:27:33 +00:00
|
|
|
"ds_hal.c"
|
2020-12-09 12:29:26 +00:00
|
|
|
"gdma_hal.c"
|
2020-11-26 05:06:21 +00:00
|
|
|
"esp32c3/adc_hal.c"
|
|
|
|
"esp32c3/brownout_hal.c"
|
|
|
|
"esp32c3/systimer_hal.c"
|
|
|
|
"esp32c3/hmac_hal.c"
|
2020-12-16 06:21:06 +00:00
|
|
|
"spi_flash_hal_gpspi.c"
|
2020-12-24 13:02:32 +00:00
|
|
|
"spi_slave_hd_hal.c"
|
|
|
|
"esp32c3/rtc_cntl_hal.c")
|
2020-11-26 05:06:21 +00:00
|
|
|
endif()
|
2020-08-08 12:15:27 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
|
|
INCLUDE_DIRS ${includes}
|
|
|
|
PRIV_INCLUDE_DIRS ${priv_include}
|
|
|
|
REQUIRES soc
|
|
|
|
LDFRAGMENTS linker.lf)
|