AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/services/timeout/timeout.c
void timeout_init(void)
{
	rtc_init();
	rtc_set_callback(tick_handler);
	rtc_set_time(0);
	rtc_set_alarm(TIMEOUT_COMP);
}
/**
 * \brief Initialize timeout
 *
 * Initializes timeout counter for desired tick rate and starts it. The device
 * interrupt controller should be initialized prior to calling this function,
 * and global interrupts must be enabled.
 *
 * \note If the service is configured to use the asynchronous RTC32 module,
 *       there are restrictions on the timeout period that can be used - see
 *       to \ref rtc32_min_alarm_time for details.
 */
\brief Initialize timeout
Initializes timeout counter for desired tick rate and starts it. The device
interrupt controller should be initialized prior to calling this function,
and global interrupts must be enabled.

\note If the service is configured to use the asynchronous RTC32 module,
there are restrictions on the timeout period that can be used - see
to \ref rtc32_min_alarm_time for details.
\ brief Initialize timeout Initializes timeout counter for desired tick rate and starts it . The device interrupt controller should be initialized prior to calling this function and global interrupts must be enabled . \ note If the service is configured to use the asynchronous RTC32 module there are restrictions on the timeout period that can be used - see to \ ref rtc32_min_alarm_time for details .
void timeout_init(void)
{
	rtc_init();
	rtc_set_callback(tick_handler);
	rtc_set_time(0);
	rtc_set_alarm(TIMEOUT_COMP);
}
void timeout_init ( void ) { rtc_init ( ) ; rtc_set_callback ( tick_handler ) ; rtc_set_time ( 0 ) ; rtc_set_alarm ( TIMEOUT_COMP ) ; }
\brief Initialize timeout
 Initializes timeout counter for desired tick rate and starts it.
\ brief Initialize timeout Initializes timeout counter for desired tick rate and starts it .