feat(gptimer): move gptimer retention info from esp_hal_timg to esp_driver_gptimer

- Add gptimer_priv.h with retention type definitions
- Create timer_periph.c files for 8 chips in esp_driver_gptimer
- Remove retention code from esp_hal_timg timer_periph.c (keep signals)
This commit is contained in:
morris
2026-04-21 13:36:17 +08:00
parent 754ec03795
commit 3ca5ff43a2
20 changed files with 1142 additions and 1068 deletions
+6 -1
View File
@@ -8,6 +8,10 @@ set(public_include "include")
if(CONFIG_SOC_GPTIMER_SUPPORTED)
list(APPEND srcs "src/gptimer.c"
"src/gptimer_common.c")
if(CONFIG_SOC_PAU_SUPPORTED AND CONFIG_SOC_TIMER_SUPPORT_SLEEP_RETENTION)
list(APPEND srcs "${target}/timer_retention.c")
endif()
endif()
if(CONFIG_SOC_TIMER_SUPPORT_ETM)
@@ -18,6 +22,7 @@ set(requires esp_pm esp_hal_timg)
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${public_include}
PRIV_INCLUDE_DIRS "src"
REQUIRES ${requires}
LDFRAGMENTS "linker.lf"
)
)