stm32 系统时钟初始化
/* Reset the RCC clock configuration to the default reset state ------------*/
/* Set HSION bit */
RCC->CR |= (uint32_t)0x00000001;
设置值为1
0000 0000 0000 0000 0000 0000 0000 00001
/* Reset CFGR register */
RCC->CFGR = 0x00000000;
/* Reset HSEON, CSSON and PLLON bits */
RCC->CR &= (uint32_t)0xFEF6FFFF;
上面这行没看明白 CR值还不是等于1吗? 为啥要搞0xFEF6FFFF
00000001∧FEF6FFFF = 1
--
FROM 45.51.104.*