Contiki-Inga 3.x
xmega_rtc.h
1 #ifndef __XMEGA_RTC_H__
2 #define __XMEGA_RTC_H__
3 
4 #include <avr/io.h>
5 #include <stdint.h>
6 #include <avrdef.h>
7 
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);
15 
16 #ifndef CLK_RTCSRC_RCOSC32_gc
17  #define CLK_RTCSRC_RCOSC32_gc (0x3 << 2)
18 #endif
19 
20 #endif /* __XMEGA_RTC_H__ */