stm32固件库中 SystemInit()函数,先对HSI初始化…………
stm32固件库中SystemInit()函数,刚进入这个函数就先对HSI置位初始化,/*SetHSIONbit*/RCC->CR|=(uint32_t)0x000000...
stm32固件库中 SystemInit()函数,
刚进入这个函数就先对HSI置位初始化,
/* Set HSION bit */
RCC->CR |= (uint32_t)0x00000001;
这样做的作用是什么呢?请高手指点下!!!
void SystemInit (void)
{
/* Reset the RCC clock configuration to the default reset state(for debug purpose) */
/* Set HSION bit */
RCC->CR |= (uint32_t)0x00000001;
/* Reset SW, HPRE, PPRE1, PPRE2, ADCPRE and MCO bits */
#ifndef STM32F10X_CL
RCC->CFGR &= (uint32_t)0xF8FF0000;
#else
RCC->CFGR &= (uint32_t)0xF0FF0000;
#endif /* STM32F10X_CL */
…………………………………… 展开
刚进入这个函数就先对HSI置位初始化,
/* Set HSION bit */
RCC->CR |= (uint32_t)0x00000001;
这样做的作用是什么呢?请高手指点下!!!
void SystemInit (void)
{
/* Reset the RCC clock configuration to the default reset state(for debug purpose) */
/* Set HSION bit */
RCC->CR |= (uint32_t)0x00000001;
/* Reset SW, HPRE, PPRE1, PPRE2, ADCPRE and MCO bits */
#ifndef STM32F10X_CL
RCC->CFGR &= (uint32_t)0xF8FF0000;
#else
RCC->CFGR &= (uint32_t)0xF0FF0000;
#endif /* STM32F10X_CL */
…………………………………… 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询