XBee Firmware Library  1.6.0
Functions
rtc.c File Reference

Functions

void check_clock_and_update (void)
 
void check_periodic_task (void)
 
void delay_ticks (uint16_t delay)
 Performs a busy loop delay of delay system ticks. The watchdog is continuously refreshed during the delay. More...
 
void rtc_alarm_task (void)
 
void rtc_cancel_periodic_task (void)
 Cancels the execution of the periodic task setting to 0 the periodic task timer. More...
 
int rtc_config (void)
 Configures and initializes the RTC module, with the defualt settings. Its automatically called by sys_hw_init() More...
 
void rtc_config_fast (void)
 
void rtc_config_slow (void)
 
int rtc_get_date (tm_t *now)
 Reads the RTC time/date and saves it in now. More...
 
uint32_t rtc_get_ms_uptime (void)
 Returns the miliseconds counter, number of ms the system has been running without interruption (downtime) More...
 
uint32_t rtc_get_uptime (void)
 Returns the second counter, number of seconds the system has been running without interruption (downtime) More...
 
uint8_t rtc_is_slow (void)
 
void rtc_isr (void)
 RTC interrupt service routine. More...
 
void rtc_periodic_task (void)
 Function called when the periodic timer expires. The periodic timer is rearmed automatically by the firmware. More...
 
int rtc_set_alarm (tm_t newalarm)
 Programs the alarm with newalarm time values. More...
 
int rtc_set_date (tm_t newdate)
 Sets date as RTC date. More...
 
int rtc_set_periodic_task_period (uint32_t period)
 Configures the period (expressed as number of system ticks) of execution of the periodic task. A call to this function resets/restarts the periodic task timer. More...
 
void rtc_set_timeout (uint16_t timeout)
 Programs the timeout variable, decremented each system tick. More...
 
bool_t rtc_timeout_expired (void)
 Returns a 1 if the programmed timeout expired. The timeout is programmed with rtc_set_timeout() More...
 
void update_date (void)
 

Function Documentation

void check_clock_and_update ( void  )
void check_periodic_task ( void  )
void rtc_alarm_task ( void  )
void rtc_config_fast ( void  )
void rtc_config_slow ( void  )
uint8_t rtc_is_slow ( void  )
void update_date ( void  )