mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
rtc_module: port*_CRITICAL vanilla FreeRTOS compliance
Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
This commit is contained in:
parent
da41885e85
commit
7f37824eb7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user