diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-10-29 14:21:53 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-10-29 14:21:53 +0000 |
commit | 498d5c6125a80190e4732ae36187657df5504a61 (patch) | |
tree | bb33a734922a16731ebc5c8e2db9cab883b07ddf /os/hal | |
parent | 78cdf6419f8dfbc43beff3c117619b033b648170 (diff) | |
download | ChibiOS-498d5c6125a80190e4732ae36187657df5504a61.tar.gz ChibiOS-498d5c6125a80190e4732ae36187657df5504a61.tar.bz2 ChibiOS-498d5c6125a80190e4732ae36187657df5504a61.zip |
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
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM32F4xx/hal_lld.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) */
|