45#define RTC_TASK_START(rtc) MMIO32((rtc) + 0x000)
46#define RTC_TASK_STOP(rtc) MMIO32((rtc) + 0x004)
47#define RTC_TASK_CLEAR(rtc) MMIO32((rtc) + 0x008)
48#define RTC_TASK_TRIGOVRFLW(rtc) MMIO32((rtc) + 0x00C)
51#define RTC_EVENT_TICK(rtc) MMIO32((rtc) + 0x100)
52#define RTC_EVENT_OVRFLW(rtc) MMIO32((rtc) + 0x104)
53#define RTC_EVENT_COMPARE(rtc, i) MMIO32((rtc) + 0x140 + 0x4 * (i))
56#define RTC_INTEN(rtc) _PERIPH_INTEN(rtc)
57#define RTC_INTENSET(rtc) _PERIPH_INTENSET(rtc)
58#define RTC_INTENCLR(rtc) _PERIPH_INTENCLR(rtc)
59#define RTC_EVTEN(rtc) MMIO32((rtc) + 0x340)
60#define RTC_EVTENSET(rtc) MMIO32((rtc) + 0x344)
61#define RTC_EVTENCLR(rtc) MMIO32((rtc) + 0x348)
62#define RTC_COUNTER(rtc) MMIO32((rtc) + 0x504)
63#define RTC_PRESCALER(rtc) MMIO32((rtc) + 0x508)
64#define RTC_CC(rtc, i) MMIO32((rtc) + 0x540 + 0x4 * (i))
67#define RTC_INTEN_TICK (1 << 0)
68#define RTC_INTEN_OVRFLW (1 << 1)
69#define RTC_INTEN_COMPARE(n) (1 << (16 + (n)))
void rtc_clear(uint32_t rtc)
Clear the RTC.
uint32_t rtc_get_counter(uint32_t rtc)
RTC get Counter value.
void rtc_disable_events(uint32_t rtc, uint32_t mask)
Disable events.
void rtc_start(uint32_t rtc)
Start the RTC.
void rtc_set_compare(uint32_t rtc, uint8_t cmp, uint32_t value)
Set compare register.
void rtc_set_prescaler(uint32_t rtc, uint16_t presc)
RTC set Prescaler value.
void rtc_stop(uint32_t rtc)
Stop the RTC.
void rtc_enable_events(uint32_t rtc, uint32_t mask)
Enable events.