mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
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:
@@ -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"
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user