Kconfig 2.2 KB

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