feat(esp32p4): added hal support

This commit is contained in:
Armando
2023-07-10 16:11:47 +08:00
parent 4dcab6c2ed
commit ea05ae6af2
30 changed files with 5950 additions and 13 deletions
+11 -2
View File
@@ -39,8 +39,7 @@ if(NOT BOOTLOADER_BUILD)
"rtc_io_hal.c"
"gpio_hal.c"
"uart_hal.c"
"uart_hal_iram.c"
"${target}/clk_tree_hal.c")
"uart_hal_iram.c")
if(NOT CONFIG_APP_BUILD_TYPE_PURE_RAM_APP)
list(APPEND srcs
@@ -52,6 +51,10 @@ if(NOT BOOTLOADER_BUILD)
endif()
endif()
if(CONFIG_SOC_CLK_TREE_SUPPORTED)
list(APPEND srcs "${target}/clk_tree_hal.c")
endif()
if(CONFIG_SOC_SYSTIMER_SUPPORTED AND NOT CONFIG_HAL_SYSTIMER_USE_ROM_IMPL)
list(APPEND srcs "systimer_hal.c")
endif()
@@ -236,6 +239,12 @@ if(NOT BOOTLOADER_BUILD)
endif()
if(${target} STREQUAL "esp32p4")
list(APPEND srcs
"spi_flash_hal_gpspi.c")
endif()
if(${target} STREQUAL "esp32h2")
list(APPEND srcs
"spi_flash_hal_gpspi.c"