Kconfig 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. config ESP_TIMER_INTERRUPT_LEVEL
  29. int "Interrupt level"
  30. default 1
  31. range 1 3 if IDF_TARGET_ESP32
  32. range 1 1 if !IDF_TARGET_ESP32
  33. help
  34. It sets the interrupt level for esp_timer ISR in range 1..3.
  35. A higher level (3) helps to decrease the ISR esp_timer latency.
  36. config ESP_TIMER_SUPPORTS_ISR_DISPATCH_METHOD
  37. bool "Support ISR dispatch method"
  38. default n
  39. help
  40. Allows using ESP_TIMER_ISR dispatch method (ESP_TIMER_TASK dispatch method is also avalible).
  41. - ESP_TIMER_TASK - Timer callbacks are dispatched from a high-priority esp_timer task.
  42. - ESP_TIMER_ISR - Timer callbacks are dispatched directly from the timer interrupt handler.
  43. The ISR dispatch can be used, in some cases, when a callback is very simple
  44. or need a lower-latency.
  45. config ESP_TIMER_IMPL_TG0_LAC
  46. bool
  47. default y
  48. depends on IDF_TARGET_ESP32
  49. config ESP_TIMER_IMPL_SYSTIMER
  50. bool
  51. default y
  52. depends on !IDF_TARGET_ESP32
  53. endmenu # esp_timer