Get the current CPU frequency, in Hertz
#include <hw/dvfs_api.h> uint32_t get_cpu_freq( void *handle );
The get_cpu_freq() function calculates the CPU frequency, based on System PLL frequency and the CPU divider.
The CPU frequency (in Hz), or 0 in case of error.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |