![]() |
Dataflow Runtime API
3.0.3.0
|
#include <Imt.Base.Core.Platform/Platform.h>
Enumerations | |
enum | DMTimer1msClockSource { DMTimer1msClockSource_SystemClock = 0 , DMTimer1msClockSource_PeripheralPLL32KHz = 1 , DMTimer1msClockSource_ExternalInput = 2 , DMTimer1msClockSource_OnChip32KHz = 3 , DMTimer1msClockSource_External32KHz = 4 } |
DMTimer 1ms peripheral module. More... | |
Functions | |
bool | DMTimer1ms_Configure (const DMTimer1msClockSource clockSource) |
Configure the 1ms timer in auto reload mode (generates an interrupt each millisecond). More... | |
void | DMTimer1ms_Reload (void) |
Reload the timer value (just required once) More... | |
void | DMTimer1ms_AcknowledgeInterrupt (void) |
Acknowledge and clear the interrupt flag. More... | |
uint32_t | DMTimer1ms_GetTimerOverflowCount (void) |
Get the content of the TOCR register. More... | |
void | DMTimer1ms_ClearTimerOverflowCount (void) |
Clear the content of the TOC register (=0) More... | |
DMTimer 1ms peripheral module.
DMTIMER1 is specialized for accurate 1mS OS Ticks. The DMTimer1 1ms timer functional clock can be selected from one of five sources:
Enumerator | |
---|---|
DMTimer1msClockSource_SystemClock | |
DMTimer1msClockSource_PeripheralPLL32KHz | |
DMTimer1msClockSource_ExternalInput | |
DMTimer1msClockSource_OnChip32KHz | |
DMTimer1msClockSource_External32KHz |
void DMTimer1ms_AcknowledgeInterrupt | ( | void | ) |
Acknowledge and clear the interrupt flag.
void DMTimer1ms_ClearTimerOverflowCount | ( | void | ) |
Clear the content of the TOC register (=0)
bool DMTimer1ms_Configure | ( | const DMTimer1msClockSource | clockSource | ) |
Configure the 1ms timer in auto reload mode (generates an interrupt each millisecond).
clockSource | configure DMTimer for given clock source |
uint32_t DMTimer1ms_GetTimerOverflowCount | ( | void | ) |
Get the content of the TOCR register.
void DMTimer1ms_Reload | ( | void | ) |
Reload the timer value (just required once)