261 __I uint32_t RTT_SR
(Rtt Offset: 0x0C) Status Register
uint32_t rtt_init(Rtt *p_rtt, uint16_t us_prescaler)
Initialize the given RTT.
void rtt_enable_interrupt(Rtt *p_rtt, uint32_t ul_sources)
Enable RTT interrupts.
Real-time Timer (RTT) driver for SAM.
#define RTT_MR_RTTRST
(RTT_MR) Real-time Timer Restart
#define RTT_MR_ALMIEN
(RTT_MR) Alarm Interrupt Enable
__IO uint32_t RTT_AR
(Rtt Offset: 0x04) Alarm Register
uint32_t rtt_read_timer_value(Rtt *p_rtt)
Read the current value of the RTT timer value.
#define RTT
(RTT ) Base Address
#define RTT_MR_RTC1HZ
(RTT_MR) Real-Time Clock 1Hz Clock Selection
uint32_t rtt_write_alarm_time(Rtt *p_rtt, uint32_t ul_alarm_time)
Configure the RTT to generate an alarm at the given time. alarm happens when CRTV value equals ALMV+1...
__I uint32_t RTT_VR
(Rtt Offset: 0x08) Value Register
uint32_t rtt_get_status(Rtt *p_rtt)
Get the status register value of the given RTT.
#define RTT_MR_RTTDIS
(RTT_MR) Real-time Timer Disable
void rtt_disable_interrupt(Rtt *p_rtt, uint32_t ul_sources)
Disable RTT interrupts.
__IO uint32_t RTT_MR
(Rtt Offset: 0x00) Mode Register