RCC->GCCR |= ((uint32_t)RCC_GCCR_HSIEN);
/* Wait till HSE is ready and if Time out is reached exit */
do
{
HIEStatus = RCC->GCCR & RCC_GCCR_HSISTB;
StartUpCounter++;
} while((HIEStatus == 0) && (StartUpCounter != HSE_STARTUP_TIMEOUT));
if ((RCC->GCCR & RCC_GCCR_HSISTB) != RESET)
{
HIEStatus = (uint32_t)0x01;
}
else
{
HIEStatus = (uint32_t)0x00;
}
|
———————————————— 版权声明:本文为CSDN博主「疯狂的小志」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/m0_47238232/article/details/119283327