1.10.6.8 CORETIMER_PeriodSet Function

C

void CORETIMER_PeriodSet(uint32_t period);

Summary

Sets the period value of a Core timer.

Description

This function writes the period value. When timer counter matches period value counter is reset and interrupt can be generated.

Precondition

CORETIMER_Initialize() function must have been called first.

Parameters

Param Description
period new period value to set for timer

Returns

None.

Example

uint32_t period = 0x100;
CORETIMER_Initialize();
CORETIMER_PeriodSet(period);

Remarks

Should be generated for periodic interrupt mode only.