]> granicus.if.org Git - esp-idf/commitdiff
ref_clock: port*_CRITICAL vanilla FreeRTOS compliance
authorSachin Parekh <sachin.parekh@espressif.com>
Mon, 25 Mar 2019 10:44:09 +0000 (16:14 +0530)
committerSachin Parekh <sachin.parekh@espressif.com>
Mon, 13 May 2019 11:09:19 +0000 (16:39 +0530)
Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
tools/unit-test-app/components/test_utils/ref_clock.c

index 668a79e3da1eced26bac896b6603dff62be6b0ef..3a25a6227c1ce1320e6350c8c4ae955b9feff9a2 100644 (file)
@@ -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()