Microchip® Advanced Software Framework

qs_rtc_calendar_basic.c File Reference

SAM RTC Basic Usage Example.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>

Functions

void configure_rtc_calendar (void)
 [rtc_module_instance] More...
 
int main (void)
 [initiate] More...
 

Variables

struct rtc_module rtc_instance
 [rtc_module_instance] More...
 

void configure_rtc_calendar ( void  )
int main ( void  )

[initiate]

[add_main]

[add_main]

[main_imp] [main_loop]

[main_loop] [check_alarm_match]

[check_alarm_match] [alarm_match_action]

[alarm_match_action]

[clear_alarm_match]

[clear_alarm_match]

[main_imp]

References configure_rtc_calendar(), rtc_calendar_time::day, rtc_calendar_time::hour, rtc_calendar_time::minute, rtc_calendar_time::month, port_pin_toggle_output_level(), RTC_CALENDAR_ALARM_0, rtc_calendar_clear_alarm_match(), rtc_calendar_is_alarm_match(), rtc_calendar_set_time(), rtc_calendar_swap_time_mode(), rtc_instance, rtc_calendar_time::second, system_init(), and rtc_calendar_time::year.

struct rtc_module rtc_instance

[rtc_module_instance]