2012-06-27 05:51 AM
Whats the difference about
NVIC_SetPriority(TIMER0_IRQn, ((0x01<<3)|0x01)); and NVIC_SetPriority(TIMER0_IRQn, 9); Is There a special motive to use the first form?????? THANKS #notation2012-06-27 06:10 AM
Is There a special motive to use the first form??????
Possibly obfuscation. It would make sense to use constants/defines with speaking names, to express one's intentions. And with an optimization level set to >0, a good compiler will emit the same code for both notations.
2012-06-27 06:24 AM
THANKS fm