Merge branch 'feature/esp_timer_is_active_when_cb_is_running_v5.4' into 'release/v5.4'

feat(esp_timer): Adds blocking stop API (v5.4)

See merge request espressif/esp-idf!52242
This commit is contained in:
Jiang Jiang Jian
2026-09-21 15:10:06 +08:00
4 changed files with 313 additions and 29 deletions
+2 -1
View File
@@ -214,7 +214,8 @@ The general procedure to create, start, stop, and delete a timer is as follows:
3. Stop the timer
- To stop the running timer, call the function :cpp:func:`esp_timer_stop`.
- To stop the running timer, call the function :cpp:func:`esp_timer_stop`. But it does not guarantee that after this call, the callback will not be running one or more times. To check if the callback is not running after stopping the timer, you can use :cpp:func:`esp_timer_is_active`. Another approach is to use a blocking stop API.
- Blocking the timer stop operation until any in-flight callback completes can be done using :cpp:func:`esp_timer_stop_blocking`.
4. Delete the timer