|
|
@@ -8,7 +8,7 @@ set(srcs "mpu_hal.c"
|
|
|
|
|
|
set(includes "${target}/include" "include" "platform_port/include")
|
|
|
|
|
|
-if(NOT CONFIG_HAL_WDT_ROM_IMPL)
|
|
|
+if(NOT CONFIG_HAL_WDT_USE_ROM_IMPL)
|
|
|
list(APPEND srcs "wdt_hal_iram.c")
|
|
|
endif()
|
|
|
|
|
|
@@ -16,7 +16,7 @@ if(NOT ${target} STREQUAL "esp32")
|
|
|
list(APPEND srcs "cache_hal.c")
|
|
|
endif()
|
|
|
|
|
|
-if(target STREQUAL "esp32h2")
|
|
|
+if(${target} STREQUAL "esp32h2")
|
|
|
if(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1)
|
|
|
list(APPEND includes "${target}/include/rev1")
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_2)
|
|
|
@@ -49,50 +49,64 @@ if(NOT BOOTLOADER_BUILD)
|
|
|
"adc_hal_common.c"
|
|
|
"adc_hal.c")
|
|
|
|
|
|
- if(CONFIG_SOC_SYSTIMER_SUPPORTED)
|
|
|
- if(NOT CONFIG_HAL_SYSTIMER_ROM_IMPL)
|
|
|
- list(APPEND srcs "systimer_hal.c")
|
|
|
- endif()
|
|
|
+ if(CONFIG_SOC_SYSTIMER_SUPPORTED AND NOT CONFIG_HAL_SYSTIMER_USE_ROM_IMPL)
|
|
|
+ list(APPEND srcs "systimer_hal.c")
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(CONFIG_SOC_RMT_SUPPORTED)
|
|
|
+ list(APPEND srcs "rmt_hal.c")
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(CONFIG_SOC_PCNT_SUPPORTED)
|
|
|
+ list(APPEND srcs "pcnt_hal.c")
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(CONFIG_SOC_MCPWM_SUPPORTED)
|
|
|
+ list(APPEND srcs "mcpwm_hal.c")
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(CONFIG_SOC_TWAI_SUPPORTED)
|
|
|
+ list(APPEND srcs "twai_hal.c" "twai_hal_iram.c")
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(CONFIG_SOC_GDMA_SUPPORTED)
|
|
|
+ list(APPEND srcs "gdma_hal.c")
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(CONFIG_SOC_I2S_SUPPORTED)
|
|
|
+ list(APPEND srcs "i2s_hal.c")
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(CONFIG_SOC_SIGMADELTA_SUPPORTED)
|
|
|
+ list(APPEND srcs "sigmadelta_hal.c")
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(CONFIG_ETH_USE_ESP32_EMAC)
|
|
|
+ list(APPEND srcs "emac_hal.c")
|
|
|
endif()
|
|
|
|
|
|
if(${target} STREQUAL "esp32")
|
|
|
list(APPEND srcs
|
|
|
"dac_hal.c"
|
|
|
- "rmt_hal.c"
|
|
|
- "sigmadelta_hal.c"
|
|
|
- "mcpwm_hal.c"
|
|
|
- "pcnt_hal.c"
|
|
|
"sdio_slave_hal.c"
|
|
|
"touch_sensor_hal.c"
|
|
|
- "i2s_hal.c"
|
|
|
- "twai_hal.c"
|
|
|
- "twai_hal_iram.c"
|
|
|
"aes_hal.c"
|
|
|
"esp32/adc_hal.c"
|
|
|
"esp32/brownout_hal.c"
|
|
|
"esp32/interrupt_descriptor_table.c"
|
|
|
"esp32/touch_sensor_hal.c"
|
|
|
"esp32/gpio_hal_workaround.c")
|
|
|
- if(NOT BOOTLOADER_BUILD AND CONFIG_ETH_USE_ESP32_EMAC)
|
|
|
- list(APPEND srcs "emac_hal.c")
|
|
|
- endif()
|
|
|
endif()
|
|
|
|
|
|
if(${target} STREQUAL "esp32s2")
|
|
|
list(APPEND srcs
|
|
|
"dac_hal.c"
|
|
|
- "rmt_hal.c"
|
|
|
- "sigmadelta_hal.c"
|
|
|
- "pcnt_hal.c"
|
|
|
"spi_flash_hal_gpspi.c"
|
|
|
"spi_slave_hd_hal.c"
|
|
|
"touch_sensor_hal.c"
|
|
|
"usb_hal.c"
|
|
|
"usb_phy_hal.c"
|
|
|
"xt_wdt_hal.c"
|
|
|
- "i2s_hal.c"
|
|
|
- "twai_hal.c"
|
|
|
- "twai_hal_iram.c"
|
|
|
"aes_hal.c"
|
|
|
"esp32s2/brownout_hal.c"
|
|
|
"esp32s2/cp_dma_hal.c"
|
|
|
@@ -105,21 +119,13 @@ if(NOT BOOTLOADER_BUILD)
|
|
|
if(${target} STREQUAL "esp32s3")
|
|
|
list(APPEND srcs
|
|
|
"ds_hal.c"
|
|
|
- "rmt_hal.c"
|
|
|
- "sigmadelta_hal.c"
|
|
|
- "gdma_hal.c"
|
|
|
"lcd_hal.c"
|
|
|
- "mcpwm_hal.c"
|
|
|
- "pcnt_hal.c"
|
|
|
"spi_flash_hal_gpspi.c"
|
|
|
"spi_slave_hd_hal.c"
|
|
|
"touch_sensor_hal.c"
|
|
|
"usb_hal.c"
|
|
|
"usb_phy_hal.c"
|
|
|
"xt_wdt_hal.c"
|
|
|
- "i2s_hal.c"
|
|
|
- "twai_hal.c"
|
|
|
- "twai_hal_iram.c"
|
|
|
"aes_hal.c"
|
|
|
"esp32s3/brownout_hal.c"
|
|
|
"esp32s3/hmac_hal.c"
|
|
|
@@ -132,15 +138,9 @@ if(NOT BOOTLOADER_BUILD)
|
|
|
if(${target} STREQUAL "esp32c3")
|
|
|
list(APPEND srcs
|
|
|
"ds_hal.c"
|
|
|
- "gdma_hal.c"
|
|
|
- "rmt_hal.c"
|
|
|
- "sigmadelta_hal.c"
|
|
|
"spi_flash_hal_gpspi.c"
|
|
|
"spi_slave_hd_hal.c"
|
|
|
"xt_wdt_hal.c"
|
|
|
- "i2s_hal.c"
|
|
|
- "twai_hal.c"
|
|
|
- "twai_hal_iram.c"
|
|
|
"aes_hal.c"
|
|
|
"esp32c3/adc_hal.c"
|
|
|
"esp32c3/brownout_hal.c"
|
|
|
@@ -151,14 +151,8 @@ if(NOT BOOTLOADER_BUILD)
|
|
|
if(${target} STREQUAL "esp32h2")
|
|
|
list(APPEND srcs
|
|
|
"ds_hal.c"
|
|
|
- "gdma_hal.c"
|
|
|
- "rmt_hal.c"
|
|
|
- "sigmadelta_hal.c"
|
|
|
"spi_flash_hal_gpspi.c"
|
|
|
"spi_slave_hd_hal.c"
|
|
|
- "i2s_hal.c"
|
|
|
- "twai_hal.c"
|
|
|
- "twai_hal_iram.c"
|
|
|
"aes_hal.c"
|
|
|
"esp32h2/brownout_hal.c"
|
|
|
"esp32h2/hmac_hal.c"
|
|
|
@@ -168,7 +162,6 @@ if(NOT BOOTLOADER_BUILD)
|
|
|
if(${target} STREQUAL "esp32c2")
|
|
|
list(APPEND srcs
|
|
|
"ecc_hal.c"
|
|
|
- "gdma_hal.c"
|
|
|
"spi_flash_hal_gpspi.c"
|
|
|
"spi_slave_hd_hal.c"
|
|
|
"esp32c2/brownout_hal.c"
|