1 #ifndef __XMEGA_RTC_H__
2 #define __XMEGA_RTC_H__
8 void xmega_rtc_rcosc_enable(
void);
9 void xmega_rtc_wait_sync_busy(
void);
10 void xmega_rtc_wait_sync_cnt(
void);
11 void xmega_rtc_set_cnt(uint16_t cnt);
12 void xmega_rtc_set_interrupt_levels(uint8_t irq_ovf, uint8_t irq_comp);
13 void xmega_rtc_enable(
void);
14 void xmega_rtc_set_prescaler(uint8_t prescaler);
16 #ifndef CLK_RTCSRC_RCOSC32_gc
17 #define CLK_RTCSRC_RCOSC32_gc (0x3 << 2)