F_CPU is defined but looks like it is not in use #79
-
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 ? |
Beta Was this translation helpful? Give feedback.
Answered by
silabs-bozont
Aug 3, 2024
Replies: 1 comment
-
Hello @lyusupov, |
Beta Was this translation helpful? Give feedback.
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 @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_80MHZ
Note, that the radio variants are calibrated to work with a 39 MHz clock.