コード例 #1
0
/*!
 * @brief override the RTC_IRQ handler
 */
void MODULE_IRQ_HANDLER(RTC)(void)
{
    if (RTC_DRV_IsAlarmPending(0))
    {
        RTC_DRV_SetAlarmIntCmd(0, false);
    }
}
コード例 #2
0
/*!
* @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);
    }
}