F_CPU is defined but looks like it is not in use #79
Answered
by
silabs-bozont
Linar Yusupov (lyusupov)
asked this question in
Q&A
|
Does it mean that the CPU frequency is hardcoded in each 'variant' SDK library file and can not be changed to a lower MHZ value ?
|
Answered by
silabs-bozont
Aug 3, 2024
Replies: 1 comment
|
Hello Linar Yusupov (@lyusupov), |
0 replies
Answer selected by
lyusupov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hello Linar Yusupov (@lyusupov),
Your observation is correct - it's not used anywhere in the code. It's only defined for compatibility reasons - we might remove this in the future.
We have a separate API for changing the CPU clock speed:
setCPUClock() - sets the CPU clock speed - it can be one of CPU_39MHZ, CPU_76MHZ, CPU_80MHZNote, that the radio variants are calibrated to work with a 39 MHz clock.