Browse Source

ref_clock: port*_CRITICAL vanilla FreeRTOS compliance

Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
Sachin Parekh 6 years ago
parent
commit
d803465ec6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/unit-test-app/components/test_utils/ref_clock.c

+ 2 - 2
tools/unit-test-app/components/test_utils/ref_clock.c

@@ -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()