From: Sachin Parekh Date: Mon, 25 Mar 2019 10:37:04 +0000 (+0530) Subject: rtc_module: port*_CRITICAL vanilla FreeRTOS compliance X-Git-Tag: v4.0-beta1~336^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f37824eb740ff7dd9c541bc5864cdeda3ae083f;p=esp-idf rtc_module: port*_CRITICAL vanilla FreeRTOS compliance Signed-off-by: Sachin Parekh --- diff --git a/components/driver/rtc_module.c b/components/driver/rtc_module.c index 9c35d040a4..12afe08ae6 100644 --- a/components/driver/rtc_module.c +++ b/components/driver/rtc_module.c @@ -1962,15 +1962,15 @@ static void rtc_isr(void* arg) { uint32_t status = REG_READ(RTC_CNTL_INT_ST_REG); rtc_isr_handler_t* it; - portENTER_CRITICAL(&s_rtc_isr_handler_list_lock); + portENTER_CRITICAL_ISR(&s_rtc_isr_handler_list_lock); SLIST_FOREACH(it, &s_rtc_isr_handler_list, next) { if (it->mask & status) { - portEXIT_CRITICAL(&s_rtc_isr_handler_list_lock); + portEXIT_CRITICAL_ISR(&s_rtc_isr_handler_list_lock); (*it->handler)(it->handler_arg); - portENTER_CRITICAL(&s_rtc_isr_handler_list_lock); + portENTER_CRITICAL_ISR(&s_rtc_isr_handler_list_lock); } } - portEXIT_CRITICAL(&s_rtc_isr_handler_list_lock); + portEXIT_CRITICAL_ISR(&s_rtc_isr_handler_list_lock); REG_WRITE(RTC_CNTL_INT_CLR_REG, status); }