/*! * @brief override the RTC_IRQ handler */ void MODULE_IRQ_HANDLER(RTC)(void) { if (RTC_DRV_IsAlarmPending(0)) { RTC_DRV_SetAlarmIntCmd(0, false); } }
/*! * @brief ISR for Alarm interrupt * * This function change state of busyWait. */ void RTC_IRQHandler(void) { if (RTC_DRV_IsAlarmPending(RTC_INSTANCE)) { busyWait = false; // Disable second interrupt RTC_DRV_SetAlarmIntCmd(RTC_INSTANCE, false); } }
/* LLW_IRQHandler that would cover the same name's APIs in startup code */ void LLWU_IRQHandler(void) { // The LLWU wakeup interrup is LPTMR source if (LLWU_HAL_GetInternalModuleWakeupFlag(LLWU_BASE_PTR, PM_RTOS_DEMO_LPTMR_LLWU_WAKEUP_MODULE)) { LPTMR_HAL_ClearIntFlag(g_lptmrBase[PM_RTOS_DEMO_LPTMR_FUNC_INSTANCE]); } // The LLWU wakeup interrup is RTC source if (LLWU_HAL_GetInternalModuleWakeupFlag(LLWU_BASE_PTR, PM_RTOS_DEMO_RTC_LLWU_WAKEUP_MODULE)) { RTC_DRV_SetAlarmIntCmd(PM_RTOS_DEMO_RTC_FUNC_INSTANCE, false); } }
/* LLW_IRQHandler that would cover the same name's APIs in startup code */ void LLWU_IRQHandler(void) { // The LLWU wakeup interrup is LPTMR source if (LLWU_HAL_GetInternalModuleWakeupFlag(LLWU_BASE_PTR, PM_RTOS_DEMO_LPTMR_LLWU_WAKEUP_MODULE)) { LPTMR_HAL_ClearIntFlag(g_lptmrBase[PM_RTOS_DEMO_LPTMR_FUNC_INSTANCE]); } // The LLWU wakeup interrup is RTC source if (LLWU_HAL_GetInternalModuleWakeupFlag(LLWU_BASE_PTR, PM_RTOS_DEMO_RTC_LLWU_WAKEUP_MODULE)) { RTC_DRV_SetAlarmIntCmd(PM_RTOS_DEMO_RTC_FUNC_INSTANCE, false); } // The LLWU wakeup interrup is Switch/Button source if (LLWU_HAL_GetExternalPinWakeupFlag(LLWU_BASE_PTR,(llwu_wakeup_pin_t)BOARD_SW_LLWU_EXT_PIN)) { LLWU_HAL_ClearExternalPinWakeupFlag(LLWU_BASE_PTR, (llwu_wakeup_pin_t)BOARD_SW_LLWU_EXT_PIN); } }