21.6.2.7.5 Function system_clock_source_get_hz()

Retrieve the frequency of a clock source.

uint32_t system_clock_source_get_hz( const enum system_clock_source clk_source)

Determines the current operating frequency of a given clock source.

Table 21-26. Parameters
Data directionParameter nameDescription

[in]

clock_source

Clock source to get the frequency of

Returns

Frequency of the given clock source, in Hz.