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 1. Parameters
Data direction Parameter name Description

[in]

clock_source

Clock source to get the frequency of

Returns

Frequency of the given clock source, in Hz.