How to get/set CPU clock frequency for HiFive1 Rev. B?


#1

Are there instructions like get_CPU_clock() resp. set_CPU_clock?


#2

Have a look in the Freedom-Metal Documentation.
Thesse are probably the one you are looking for: metal_clock_get_rate_hz and metal_clock_set_rate_hz


#3

Yes, I found it. But, a program sample would be helpful.