Espressif ESP32-S2 Programming Manual page 1138

Table of Contents

Advertisement

Chapter 2. API Reference
CONFIG_ESP_TIMER_PROFILING
Enable esp_timer profiling features
Found in:
Component config
If enabled, esp_timer_dump will dump information such as number of times the timer was started,
number of times the timer has triggered, and the total time it took for the callback to run. This option
has some effect on timer performance and the amount of memory used for timer storage, and should
only be used for debugging/testing purposes.
Default value:
• No (disabled)
CONFIG_ESP_TIMER_TASK_STACK_SIZE
High-resolution timer task stack size
Found in:
Component config
Configure the stack size of "timer_task"task. This task is used to dispatch callbacks of timers created
using ets_timer and esp_timer APIs. If you are seing stack overflow errors in timer task, increase this
value.
Note that this is not the same as FreeRTOS timer task. To configure FreeRTOS timer task size, see
"FreeRTOS timer task stack size"option in "FreeRTOS"menu.
Range:
• from 2048 to 65536
Default value:
• 3584
CONFIG_ESP_TIMER_INTERRUPT_LEVEL
Interrupt level
Found in:
Component config
It sets the interrupt level for esp_timer ISR in range 1..3. A higher level (3) helps to decrease the ISR
esp_timer latency.
Range:
• from 1 to 1
Default value:
• 1
CONFIG_ESP_TIMER_SUPPORTS_ISR_DISPATCH_METHOD
Support ISR dispatch method
Found in:
Component config
Allows using ESP_TIMER_ISR dispatch method (ESP_TIMER_TASK dispatch method is also aval-
ible). - ESP_TIMER_TASK - Timer callbacks are dispatched from a high-priority esp_timer task. -
ESP_TIMER_ISR - Timer callbacks are dispatched directly from the timer interrupt handler. The ISR
dispatch can be used, in some cases, when a callback is very simple or need a lower-latency.
Default value:
• No (disabled)
Espressif Systems
>
High resolution timer (esp_timer)
>
High resolution timer (esp_timer)
>
High resolution timer (esp_timer)
>
High resolution timer (esp_timer)
1127
Submit Document Feedback
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF