mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ref_clock: port*_CRITICAL vanilla FreeRTOS compliance
Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
This commit is contained in:
parent
f73c972280
commit
92f1d7ae39
@ -130,10 +130,10 @@ void ref_clock_init()
|
||||
|
||||
static void IRAM_ATTR pcnt_isr(void* arg)
|
||||
{
|
||||
portENTER_CRITICAL(&s_lock);
|
||||
portENTER_CRITICAL_ISR(&s_lock);
|
||||
PCNT.int_clr.val = BIT(REF_CLOCK_PCNT_UNIT);
|
||||
s_milliseconds += REF_CLOCK_PRESCALER_MS;
|
||||
portEXIT_CRITICAL(&s_lock);
|
||||
portEXIT_CRITICAL_ISR(&s_lock);
|
||||
}
|
||||
|
||||
void ref_clock_deinit()
|
||||
|
Loading…
Reference in New Issue
Block a user