AVR Software Framework: Real Time Counter (RTC) Driver
Copyright © 2010 Atmel Corporation
Introduction
This driver supports all AVR XMEGA devices with a real time counter module.
Real Time Counter Driver
This driver abstracts the user from directly accessing the register.Real Time Counter Driver Example
There is one example included in this framework and it support both GCC and IAR: