1.10.6.8 1.11.7.8 1.12.6.8 1.13.6.8 1.14.7.8 1.15.7.8 1.16.4.8 1.17.4.8 1.18.5.8 1.19.4.8 1.20.4.8 1.21.5.8 1.22.6.8 1.23.6.8 1.24.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.