1.10.6.3 1.11.7.3 1.12.6.3 1.13.6.3 1.14.7.3 1.15.7.3 1.16.4.3 1.17.4.3 1.18.5.3 1.19.4.3 1.20.4.3 1.21.5.3 1.22.6.3 1.23.6.3 1.24.6.3 CORETIMER_CompareSet Function
C
void CORETIMER_CompareSet(uint32_t compare);
Summary
Sets the compare value of a Core timer.
Description
This function writes the compare value. When timer counter matches compare value counter is reset and interrupt can be generated.
Precondition
CORETIMER_Initialize() function must have been called first.
Parameters
Param | Description |
---|---|
compare | new compare value to set for timer |
Returns
None.
Example
uint32_t compare = 0x100;
CORETIMER_Initialize();
CORETIMER_CompareSet(compare);
Remarks
This API is generated for non-periodic interrupt mode only.