mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-24 17:27:21 +00:00
gptimer: fix race condition between start and stop
Added state transition in gptimer_start/stop functions. So that it's not possible to make a stopped timer continue to run because of race condition.
This commit is contained in:
@@ -75,6 +75,7 @@ endif()
|
||||
# GPTimer related source files
|
||||
if(CONFIG_SOC_GPTIMER_SUPPORTED)
|
||||
list(APPEND srcs "gptimer/gptimer.c"
|
||||
"gptimer/gptimer_priv.c"
|
||||
"deprecated/timer_legacy.c")
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user