From: Sachin Parekh Date: Mon, 25 Mar 2019 10:44:09 +0000 (+0530) Subject: ref_clock: port*_CRITICAL vanilla FreeRTOS compliance X-Git-Tag: v4.0-beta1~336^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d803465ec6a9a709658a96d5edcf7733eda299aa;p=esp-idf ref_clock: port*_CRITICAL vanilla FreeRTOS compliance Signed-off-by: Sachin Parekh --- diff --git a/tools/unit-test-app/components/test_utils/ref_clock.c b/tools/unit-test-app/components/test_utils/ref_clock.c index 668a79e3da..3a25a6227c 100644 --- a/tools/unit-test-app/components/test_utils/ref_clock.c +++ b/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()