/ components / esp_timer / Kconfig
Kconfig
 1  menu "High resolution timer (esp_timer)"
 2  
 3      config ESP_TIMER_PROFILING
 4          bool "Enable esp_timer profiling features"
 5          default n
 6          help
 7              If enabled, esp_timer_dump will dump information such as number of times the timer was started,
 8              number of times the timer has triggered, and the total time it took for the callback to run.
 9              This option has some effect on timer performance and the amount of memory used for timer
10              storage, and should only be used for debugging/testing purposes.
11  
12      config ESP_TIME_FUNCS_USE_RTC_TIMER  # [refactor-todo] remove when timekeeping and persistence are separate
13          bool
14  
15      config ESP_TIME_FUNCS_USE_ESP_TIMER  # [refactor-todo] remove when timekeeping and persistence are separate
16          bool
17  
18      config ESP_TIME_FUNCS_USE_NONE  # [refactor-todo] remove when timekeeping and persistence are separate
19          bool
20  
21      config ESP_TIMER_TASK_STACK_SIZE
22          int "High-resolution timer task stack size"
23          default 3584
24          range 2048 65536
25          help
26              Configure the stack size of "timer_task" task. This task is used
27              to dispatch callbacks of timers created using ets_timer and esp_timer
28              APIs. If you are seing stack overflow errors in timer task, increase
29              this value.
30  
31              Note that this is not the same as FreeRTOS timer task. To configure
32              FreeRTOS timer task size, see "FreeRTOS timer task stack size" option
33              in "FreeRTOS" menu.
34  
35      choice ESP_TIMER_IMPL
36          prompt "Hardware timer to use for esp_timer"
37          default ESP_TIMER_IMPL_TG0_LAC if IDF_TARGET_ESP32
38          default ESP_TIMER_IMPL_SYSTIMER
39          help
40              esp_timer APIs can be implemented using different hardware timers.
41  
42              - "FRC2 (legacy)" implementation has been used in ESP-IDF v2.x - v4.1.
43  
44              - "LAC timer of Timer Group 0" implementation is simpler, and has smaller
45                run time overhead because software handling of timer overflow is not needed.
46  
47              - "SYSTIMER" implementation is similar to "LAC timer of Timer Group 0" but for ESP32-S2 chip.
48  
49          config ESP_TIMER_IMPL_FRC2
50              bool "FRC2 (legacy) timer"
51              depends on IDF_TARGET_ESP32
52  
53          config ESP_TIMER_IMPL_TG0_LAC
54              bool "LAC timer of Timer Group 0"
55              depends on IDF_TARGET_ESP32
56  
57          config ESP_TIMER_IMPL_SYSTIMER
58              bool "SYSTIMER"
59              depends on !IDF_TARGET_ESP32
60  
61      endchoice
62  
63  endmenu # esp_timer