Atmel Software Framework

rtc_example.c File Reference

AVR XMEGA RTC example.

Copyright (C) 2010-2015 Atmel Corporation. All rights reserved.

#include <conf_example.h>
#include <asf.h>


static void alarm (uint32_t time)
 Alarm callback. More...
int main (void)

static void alarm ( uint32_t  time)

Alarm callback.

This outputs the last two digits of current time in BCD on the board LEDS, and then reschedules the alarm in 1 second.

References rtc_set_alarm().

Referenced by ISR(), and main().