mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
17 lines
453 B
CMake
17 lines
453 B
CMake
|
set(srcs)
|
||
|
set(public_include "include")
|
||
|
if(CONFIG_SOC_GPTIMER_SUPPORTED)
|
||
|
list(APPEND srcs "src/gptimer.c"
|
||
|
"src/gptimer_priv.c")
|
||
|
endif()
|
||
|
|
||
|
if(CONFIG_SOC_TIMER_SUPPORT_ETM)
|
||
|
list(APPEND srcs "src/gptimer_etm.c")
|
||
|
endif()
|
||
|
|
||
|
idf_component_register(SRCS ${srcs}
|
||
|
INCLUDE_DIRS ${public_include}
|
||
|
PRIV_REQUIRES "esp_pm"
|
||
|
LDFRAGMENTS "linker.lf"
|
||
|
)
|