Real-time Timer (RTT) driver for SAM.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
#include "rtt.h"
Functions | |
void | rtt_disable (Rtt *p_rtt) |
Disable RTT. More... | |
void | rtt_disable_interrupt (Rtt *p_rtt, uint32_t ul_sources) |
Disable RTT interrupts. More... | |
void | rtt_enable (Rtt *p_rtt) |
Enable RTT. More... | |
void | rtt_enable_interrupt (Rtt *p_rtt, uint32_t ul_sources) |
Enable RTT interrupts. More... | |
uint32_t | rtt_get_status (Rtt *p_rtt) |
Get the status register value of the given RTT. More... | |
uint32_t | rtt_init (Rtt *p_rtt, uint16_t us_prescaler) |
Initialize the given RTT. More... | |
uint32_t | rtt_read_timer_value (Rtt *p_rtt) |
Read the current value of the RTT timer value. More... | |
void | rtt_sel_source (Rtt *p_rtt, bool is_rtc_sel) |
Select RTT counter source. More... | |
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. More... | |
Variables | |
static uint32_t | g_wobits_in_rtt_mr = 0 |