refactor(etm): move ETM retention info from HAL to driver layer

Move soc_etm_retention_desc_t type definition and soc_etm_retention_info
data from hal component to esp_hw_support component, following the
pattern of other peripheral retention data (e.g. MWDT).

- Create esp_private/etm_retention.h with type and extern declaration
- Create port/<target>/etm_retention.c for each target with retention data
- Remove hal/<target>/etm_periph.c and hal/include/hal/etm_periph.h
- Update esp_etm.c to include the new header
- Update CMakeLists.txt in both components
This commit is contained in:
morris
2026-07-13 15:37:52 +08:00
parent 6ef9a267f1
commit bedeedafec
15 changed files with 104 additions and 103 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ if(NOT esp_tee_build AND NOT BOOTLOADER_BUILD)
list(APPEND srcs "color_hal.c")
if(CONFIG_SOC_ETM_SUPPORTED)
list(APPEND srcs "etm_hal.c" "${target}/etm_periph.c")
list(APPEND srcs "etm_hal.c")
endif()
if(CONFIG_SOC_MODEM_CLOCK_IS_INDEPENDENT AND CONFIG_SOC_MODEM_CLOCK_SUPPORTED)