RTEMS
5.0.0
|
#include "chip.h"
#include <assert.h>
Functions | |
void | RTT_SetPrescaler (Rtt *rtt, uint16_t prescaler) |
Changes the prescaler value of the given RTT and restarts it. More... | |
uint32_t | RTT_GetTime (Rtt *rtt) |
Returns the current value of the RTT timer value. More... | |
void | RTT_EnableIT (Rtt *rtt, uint32_t sources) |
Enables the specified RTT interrupt sources. More... | |
uint32_t | RTT_GetStatus (Rtt *rtt) |
Returns the status register value of the given RTT. More... | |
void | RTT_SetAlarm (Rtt *pRtt, uint32_t time) |
Configures the RTT to generate an alarm at the given time. More... | |
Implementation of Real Time Timer (RTT) controller.
void RTT_EnableIT | ( | Rtt * | rtt, |
uint32_t | sources | ||
) |
Enables the specified RTT interrupt sources.
rtt | Pointer to a Rtt instance. |
sources | Bitmask of interrupts to enable. |
uint32_t RTT_GetStatus | ( | Rtt * | rtt | ) |
Returns the status register value of the given RTT.
rtt | Pointer to an Rtt instance. |
uint32_t RTT_GetTime | ( | Rtt * | rtt | ) |
Returns the current value of the RTT timer value.
rtt | Pointer to a Rtt instance. |
void RTT_SetAlarm | ( | Rtt * | pRtt, |
uint32_t | time | ||
) |
Configures the RTT to generate an alarm at the given time.
pRtt | Pointer to an Rtt instance. |
time | Alarm time. |