1.10.6.7 1.11.7.7 1.12.6.7 1.13.6.7 1.14.7.7 1.15.7.7 1.16.4.7 1.17.4.7 1.18.5.7 1.19.4.7 1.20.4.7 1.21.5.7 1.22.6.7 1.23.6.7 1.24.6.7 CORETIMER_FrequencyGet Function

C

uint32_t CORETIMER_FrequencyGet(void);

Summary

Provides the given Core timer's counter-increment frequency.

Description

This function provides the frequency at which the given counter increments. It can be used to convert differences between counter values to real time or real-time intervals to timer period values.

Precondition

CORETIMER_Initialize() function must have been called first.

Parameters

None.

Returns

frequency - The frequency (in Hz) at which the timer counter increments.

Example

uint32_t frequency;

CORETIMER_Initialize();
frequency = CORETIMER_FrequencyGet();

Remarks

Should be generated for interrupt mode only.