From 92f1d7ae399bd87be4e7a55dac91b014c2b57778 Mon Sep 17 00:00:00 2001 From: Sachin Parekh Date: Mon, 25 Mar 2019 16:14:09 +0530 Subject: [PATCH] ref_clock: port*_CRITICAL vanilla FreeRTOS compliance Signed-off-by: Sachin Parekh --- tools/unit-test-app/components/test_utils/ref_clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 52d4f1ca3e..602ab66224 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()