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 | ) |
[setup_callback]
[rtc_module_instance]
[initialize_rtc]
[initiate]
[init_conf]
[init_conf]
[time_struct]
[time_struct]
[set_config]
[set_config]
[init_rtc]
[init_rtc]
[enable]
[enable]
References alarm, rtc_calendar_config::alarm, rtc_calendar_config::clock_24h, rtc_calendar_time::day, rtc_calendar_time::hour, rtc_calendar_alarm_time::mask, rtc_calendar_time::minute, rtc_calendar_time::month, RTC_CALENDAR_ALARM_MASK_YEAR, rtc_calendar_enable(), rtc_calendar_get_config_defaults(), rtc_calendar_init(), rtc_instance, rtc_calendar_time::second, rtc_calendar_alarm_time::time, and rtc_calendar_time::year.
Referenced by disk_initialize(), and main().
void configure_rtc_callbacks | ( | void | ) |
[callback]
Configure the RTC timer 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(), rtimer_arch_init(), and timer_init().
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 | ) |
[alarm_struct]
[callback]
[alarm_mask]
[alarm_mask]
[set_alarm]
[set_alarm]
References alarm, rtc_calendar_alarm_time::mask, port_pin_toggle_output_level(), RTC_CALENDAR_ALARM_0, RTC_CALENDAR_ALARM_MASK_SEC, rtc_calendar_set_alarm(), rtc_instance, rtc_calendar_time::second, and rtc_calendar_alarm_time::time.
Referenced by configure_rtc_callbacks().
struct rtc_calendar_alarm_time alarm |
[rtc_module_instance]
[alarm_struct]
Referenced by configure_rtc_calendar(), and rtc_match_callback().
struct rtc_module rtc_instance |
[rtc_module_instance]