Real-time Timer (RTT) driver for SAM. More...
#include "rtt.h"
Go to the source code of this file.
Functions | |
void | rtt_disable_interrupt (Rtt *p_rtt, uint32_t ul_sources) |
Disable RTT interrupts. 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... | |
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, so RTT_AR should be alarmtime - 1. if you want to get alarm when rtt hit 0 , ALMV should be set to 0xFFFFFFFF. More... | |
Real-time Timer (RTT) driver for SAM.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Definition in file rtt.c.