feat(esp_timer): Adds blocking stop function

This commit is contained in:
Konstantin Kondrashov
2026-09-23 14:30:13 +08:00
committed by guozifan
parent c6681c7ca0
commit 13b7a384e7
4 changed files with 311 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