yefj
Advanced Member level 5
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.
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.
Code:
#if defined(CMU_HFBUSCLKEN0_GPIO)
/** General-purpose input/output clock */
cmuClock_GPIO = (CMU_NOPRESC_REG << CMU_PRESC_REG_POS)
| (CMU_NOSEL_REG << CMU_SEL_REG_POS)
| (CMU_HFBUSCLKEN0_EN_REG << CMU_EN_REG_POS)
| (_CMU_HFBUSCLKEN0_GPIO_SHIFT << CMU_EN_BIT_POS)
| (CMU_HFBUS_CLK_BRANCH << CMU_CLK_BRANCH_POS),
#endif