aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-22 18:53:26 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-22 18:53:26 +0000
commit22b48b6876d80efce354c8b4c432b1f4a6bcf795 (patch)
tree033838652732a09517832a044cdf0977bd9796a8 /os/hal/platforms
parentda9678f49a11241924c18902f7169c818a3cf995 (diff)
downloadChibiOS-22b48b6876d80efce354c8b4c432b1f4a6bcf795.tar.gz
ChibiOS-22b48b6876d80efce354c8b4c432b1f4a6bcf795.tar.bz2
ChibiOS-22b48b6876d80efce354c8b4c432b1f4a6bcf795.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3650 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/STM32F4xx/hal_lld.c2
1 files changed, 1 insertions, 1 deletions
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