Refs #363. Minor code cleanup in STM32-P405/GCC demo.
git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@303 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
parent
3e2185577c
commit
d488352cf4
|
@ -405,7 +405,7 @@ static void SetSysClock(void)
|
|||
RCC->CFGR |= RCC_CFGR_SW_PLL;
|
||||
|
||||
/* Wait till the main PLL is used as system clock source */
|
||||
while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL);
|
||||
while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
@ -413,7 +413,7 @@ static void SetSysClock(void)
|
|||
RCC->CFGR |= RCC_CFGR_SW_PLL;
|
||||
|
||||
/* Wait till the main PLL is used as system clock source */
|
||||
while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL);
|
||||
while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue