git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3650 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2011-12-22 18:53:26 +00:00
parent da9678f49a
commit 22b48b6876
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ void stm32_clock_init(void) {
/* PWR initialization.*/
PWR->CR = STM32_VOS;
while (PWR->CSR & PWR_CSR_VOSRDY)
while ((PWR->CSR & PWR_CSR_VOSRDY) == 0)
; /* Waits until power regulator is stable. */
/* Initial clocks setup and wait for HSI stabilization, the MSI clock is