内部的HSI时钟

2019-07-20 14:32发布

                /*        Enables the Internal High Speed oscillator (HSI).*/
                RCC_HSICmd(ENABLE);
@brief  Enables or disables the Internal High Speed oscillator (HSI).
void RCC_HSICmd(FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  *(__IO uint32_t *) CR_HSION_BB = (uint32_t)NewState;
}
                /* Enable HSI */
                RCC->CR |= ((uint32_t)RCC_CR_HSION);
这两种有什么不同吗?

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
8条回答
zhoujianwen
1楼-- · 2019-07-21 07:01
 精彩回答 2  元偷偷看……
zhoujianwen
2楼-- · 2019-07-21 10:03
iysheng 发表于 2017-5-15 11:10
直接给寄存器赋值,CR_HSION_BB的值是这个寄存器的地址。

可以,这都被你找出来了,我去看看

一周热门 更多>