37 #ifndef RTT_H_INCLUDED 38 #define RTT_H_INCLUDED 50 uint32_t
rtt_init(
Rtt *p_rtt, uint16_t us_prescaler);
51 #if (SAM4N || SAM4S || SAM4E || SAM4C || SAMG || SAM4CP || SAM4CM || SAMV71 || SAMV70 || SAME70 || SAMS70) 52 void rtt_sel_source(
Rtt *p_rtt,
bool is_rtc_sel);
53 void rtt_enable(
Rtt *p_rtt);
54 void rtt_disable(
Rtt *p_rtt);
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.
Commonly used includes, types and macros.
uint32_t rtt_read_timer_value(Rtt *p_rtt)
Read the current value of the RTT timer value.
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...
uint32_t rtt_get_status(Rtt *p_rtt)
Get the status register value of the given RTT.
void rtt_disable_interrupt(Rtt *p_rtt, uint32_t ul_sources)
Disable RTT interrupts.