1.2.19.14 1.3.22.14 1.4.20.14 1.5.21.14 1.6.21.14 1.7.22.14 1.29.21.14 1.30.15.8 1.31.15.8 1.32.24.14 1.33.15.8 1.37.15.8 1.38.20.14 1.39.17.14 1.40.19.14 RTC_Timer32FrequencyGet Function

C

uint32_t RTC_Timer32FrequencyGet ( void )

Summary

Returns the frequency at which the 32-bit timer counter is operating.

Description

This function returns the frequency at which the 32-bit timer counter is operating. The return value can be used to compute the period that needs to be set in order to operate the timer counter at a desired frequency.

Precondition

None.

Parameters

None.

Returns

Returns the frequency at which the 32-bit timer counter is operating.

Example

// Compute the period required to operate the timer at 1KHz.

uint32_t desiredFrequency = 1000;
uint32_t period = RTC_Timer32FrequencyGet()/desiredFrequency;
RTC_Initialize();
RTC_Timer32CompareSet(period);

Remarks

None.