AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/rtc32/rtc32.c
void rtc_set_alarm(uint32_t time)
{
    RTC32.INTCTRL = RTC32_COMPARE_INT_LEVEL;
    RTC32.COMP = time;
    RTC32.INTFLAGS = RTC32_COMPIF_bm;
}
/**
 * \brief Set alarm time
 *
 * Will set absolute time of the alarm that will call the callback function
 * specified by \ref rtc_set_callback on expiration. Alternatively, you may
 * use \ref rtc_alarm_has_triggered to check if the alarm has expired.
 *
 * Any pending alarm will be overwritten with this function.
 *
 * \param time Absolute time value. See also \ref rtc32_min_alarm_time
 * \pre Needs interrupts disabled if used from several contexts
 */
\brief Set alarm time
Will set absolute time of the alarm that will call the callback function
specified by \ref rtc_set_callback on expiration. Alternatively, you may
use \ref rtc_alarm_has_triggered to check if the alarm has expired.

Any pending alarm will be overwritten with this function.

\param time Absolute time value. See also \ref rtc32_min_alarm_time
\pre Needs interrupts disabled if used from several contexts
\ brief Set alarm time Will set absolute time of the alarm that will call the callback function specified by \ ref rtc_set_callback on expiration . Alternatively you may use \ ref rtc_alarm_has_triggered to check if the alarm has expired . Any pending alarm will be overwritten with this function . \ param time Absolute time value . See also \ ref rtc32_min_alarm_time \ pre Needs interrupts disabled if used from several contexts
void rtc_set_alarm(uint32_t time)
{
    RTC32.INTCTRL = RTC32_COMPARE_INT_LEVEL;
    RTC32.COMP = time;
    RTC32.INTFLAGS = RTC32_COMPIF_bm;
}
void rtc_set_alarm ( uint32_t time ) { RTC32 . INTCTRL = RTC32_COMPARE_INT_LEVEL ; RTC32 . COMP = time ; RTC32 . INTFLAGS = RTC32_COMPIF_bm ; }
\brief Set alarm time
 Will set absolute time of the alarm that will call the callback function
 specified by \ref rtc_set_callback on expiration.
\ brief Set alarm time Will set absolute time of the alarm that will call the callback function specified by \ ref rtc_set_callback on expiration .