feat(esp_timer): Adds blocking stop function

This commit is contained in:
Konstantin Kondrashov
2026-09-10 10:45:24 +08:00
committed by BOT
parent db31a63351
commit 0382b59e21
4 changed files with 311 additions and 28 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