1.10.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.