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
This commit is contained in:
gdisirio 2013-10-29 14:21:53 +00:00
parent 78cdf6419f
commit 498d5c6125
1 changed files with 2 additions and 2 deletions

View File

@ -199,10 +199,10 @@ void stm32_clock_init(void) {
/* Overdrive activation performed after activating the PLL in order to save /* Overdrive activation performed after activating the PLL in order to save
time as recommended in RM in "Entering Over-drive mode" paragraph.*/ time as recommended in RM in "Entering Over-drive mode" paragraph.*/
PWR->CR |= PWR_CR_ODEN; PWR->CR |= PWR_CR_ODEN;
while (!(PWR->CSR & PWR_CSR_ODRDY) while (!(PWR->CSR & PWR_CSR_ODRDY))
; ;
PWR->CR |= PWR_CR_ODSWEN; PWR->CR |= PWR_CR_ODSWEN;
while (!(PWR->CSR & PWR_CSR_ODSWRDY) while (!(PWR->CSR & PWR_CSR_ODSWRDY))
; ;
#endif /* STM32_OVERDRIVE_REQUIRED */ #endif /* STM32_OVERDRIVE_REQUIRED */
#endif /* defined(STM32F4XX) */ #endif /* defined(STM32F4XX) */