AVR XMEGA RTC32 example.
Copyright (c) 2010-2018 Microchip Technology Inc. and its subsidiaries.
#include <conf_example.h>
#include <asf.h>
Functions | |
static void | alarm (uint32_t time) |
Alarm callback. More... | |
int | main (void) |
main function More... | |
|
static |
Alarm callback.
This outputs the last two digits of current time in BCD on the board LEDS, and then reschedules the alarm in 3 seconds.
References rtc_set_alarm_relative().
Referenced by main().
int main | ( | void | ) |
main function
References alarm(), board_init(), cpu_irq_enable, pmic_init(), rtc_init(), rtc_set_alarm_relative(), rtc_set_callback(), sleepmgr_enter_sleep(), sleepmgr_init(), and sysclk_init().