From 22b48b6876d80efce354c8b4c432b1f4a6bcf795 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 22 Dec 2011 18:53:26 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3650 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32F4xx/hal_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/hal/platforms/STM32F4xx/hal_lld.c b/os/hal/platforms/STM32F4xx/hal_lld.c index 6d78c32df..38d46177e 100644 --- a/os/hal/platforms/STM32F4xx/hal_lld.c +++ b/os/hal/platforms/STM32F4xx/hal_lld.c @@ -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 -- cgit v1.2.3