Kconfig 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_TIME_FUNCS_USE_RTC_TIMER # [refactor-todo] remove when timekeeping and persistence are separate
  11. bool
  12. config ESP_TIME_FUNCS_USE_ESP_TIMER # [refactor-todo] remove when timekeeping and persistence are separate
  13. bool
  14. config ESP_TIME_FUNCS_USE_NONE # [refactor-todo] remove when timekeeping and persistence are separate
  15. bool
  16. config ESP_TIMER_TASK_STACK_SIZE
  17. int "High-resolution timer task stack size"
  18. default 3584
  19. range 2048 65536
  20. help
  21. Configure the stack size of "timer_task" task. This task is used
  22. to dispatch callbacks of timers created using ets_timer and esp_timer
  23. APIs. If you are seing stack overflow errors in timer task, increase
  24. this value.
  25. Note that this is not the same as FreeRTOS timer task. To configure
  26. FreeRTOS timer task size, see "FreeRTOS timer task stack size" option
  27. in "FreeRTOS" menu.
  28. choice ESP_TIMER_IMPL
  29. prompt "Hardware timer to use for esp_timer"
  30. default ESP_TIMER_IMPL_TG0_LAC if IDF_TARGET_ESP32
  31. default ESP_TIMER_IMPL_SYSTIMER
  32. help
  33. esp_timer APIs can be implemented using different hardware timers.
  34. - "FRC2 (legacy)" implementation has been used in ESP-IDF v2.x - v4.1.
  35. - "LAC timer of Timer Group 0" implementation is simpler, and has smaller
  36. run time overhead because software handling of timer overflow is not needed.
  37. - "SYSTIMER" implementation is similar to "LAC timer of Timer Group 0" but for non ESP32 chips.
  38. config ESP_TIMER_IMPL_FRC2
  39. bool "FRC2 (legacy) timer"
  40. depends on IDF_TARGET_ESP32
  41. config ESP_TIMER_IMPL_TG0_LAC
  42. bool "LAC timer of Timer Group 0"
  43. depends on IDF_TARGET_ESP32
  44. config ESP_TIMER_IMPL_SYSTIMER
  45. bool "SYSTIMER"
  46. depends on !IDF_TARGET_ESP32
  47. endchoice
  48. endmenu # esp_timer