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 | ) |
[rtc_module_instance]
[setup_callback]
[initiate]
[initialize_rtc]
[set_conf]
[set_conf] [get_default]
[get_default]
[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_get_time_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().
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]