From 498d5c6125a80190e4732ae36187657df5504a61 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 29 Oct 2013 14:21:53 +0000 Subject: Fixed two errors in the overdrive code path. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6394 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32F4xx/hal_lld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os/hal') diff --git a/os/hal/platforms/STM32F4xx/hal_lld.c b/os/hal/platforms/STM32F4xx/hal_lld.c index 4d372b12f..dc8da25aa 100644 --- a/os/hal/platforms/STM32F4xx/hal_lld.c +++ b/os/hal/platforms/STM32F4xx/hal_lld.c @@ -199,10 +199,10 @@ void stm32_clock_init(void) { /* Overdrive activation performed after activating the PLL in order to save time as recommended in RM in "Entering Over-drive mode" paragraph.*/ PWR->CR |= PWR_CR_ODEN; - while (!(PWR->CSR & PWR_CSR_ODRDY) + while (!(PWR->CSR & PWR_CSR_ODRDY)) ; PWR->CR |= PWR_CR_ODSWEN; - while (!(PWR->CSR & PWR_CSR_ODSWRDY) + while (!(PWR->CSR & PWR_CSR_ODSWRDY)) ; #endif /* STM32_OVERDRIVE_REQUIRED */ #endif /* defined(STM32F4XX) */ -- cgit v1.2.3