Hello,Inside CMU_ClockEnable(cmuClock_GPIO, true); we have cmuClock_GPIO parameter which is defined inside
em_cmu.h file and its definition is shown in code bellow.
What is the logical meaning of such expression?
how do i know a what register we write the value?
i know that | is "or" << is shift
I have tried to read and we shift at no prescale register some PRESC REG POS.what is the logical thing they are doing?
Thanks.
Sorry for duplicating Klaus. The idea is to build a selection of bits but using the bit names rather than a number. The value of cmuClock is the state of bits selected by the named amount shifted the named '_POS' places.
Hello Brian, Regarding the prescaler setting, i am using the register called High Frequency Clock Prescaler Register shown bellow.
i and trying to understand the logic of this register.
we have bits 8:12 which define the prescaler for HFCLK
They say presc is clock divition factor of PRESC+1
I cant understand this line if i want to prescal my frequence by 4 what values should i write for 8:12 bits in CMU_HFPRESC?
Thanks.
page 301