Hey geeky folks, I am facing the issue in writing the values on RCC clock configuration register. Which would be more efficient? direct binary writings, using pointers, bit fields. I don't understand how to write on RCC register because just now I am getting started with arm and Keil. so kindly help me out, folks.
Typically, RCC is likely to be something that you'd set once at startup, and not change (much) during operation - so not much point spending time agonising about "efficiency" here.
ST - as other manufacturers - provides definitions to easily access their registers. Just use them.
Only if you have very specific requirements that really can't be met via the standard definitions provided should you start trying to micro-manage stuff like this.
As the old saying goes,
"Premature optimisation is a root of all kinds of evil"
wiki.c2.com/