Microchip® Advanced Software Framework

qs_rtc_calendar_callback.c File Reference

SAM RTC Calendar Callback Quick Start.

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

#include <asf.h>

Functions

void configure_rtc_calendar (void)
 [setup_callback] More...
 
void configure_rtc_callbacks (void)
 [callback] More...
 
int main (void)
 [initialize_rtc] More...
 
void rtc_match_callback (void)
 [alarm_struct] More...
 

Variables

struct rtc_calendar_alarm_time alarm
 [rtc_module_instance] More...
 
struct rtc_module rtc_instance
 [rtc_module_instance] More...
 

void configure_rtc_calendar ( void  )
void configure_rtc_callbacks ( void  )

[callback]

[initialize_rtc]

[setup_callback]

[reg_callback]

[reg_callback] [en_callback]

[en_callback]

References RTC_CALENDAR_CALLBACK_ALARM_0, rtc_calendar_enable_callback(), rtc_calendar_register_callback(), rtc_instance, and rtc_match_callback().

Referenced by main().

int main ( void  )

[initialize_rtc]

[run_initialize_rtc] [system_init]

[system_init]

[time]

[time]

[run_conf]

[run_conf]

[run_callback]

[run_callback]

[set_time]

[set_time] [run_initialize_rtc]

[while] [main_loop]

[main_loop]

[while]

References configure_rtc_calendar(), configure_rtc_callbacks(), rtc_calendar_time::day, rtc_calendar_time::hour, rtc_calendar_time::minute, rtc_calendar_time::month, rtc_calendar_get_time_defaults(), rtc_calendar_set_time(), rtc_instance, rtc_calendar_time::second, system_init(), and rtc_calendar_time::year.

void rtc_match_callback ( void  )

[rtc_module_instance]

[alarm_struct]

Referenced by configure_rtc_calendar(), and rtc_match_callback().

struct rtc_module rtc_instance

[rtc_module_instance]