Kconfig 2.2 KB

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