Skip to content

Commit

Permalink
Fixed two errors in the overdrive code path.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6394 35acf78f-673a-0410-8e92-d51de3d6d3f4
  • Loading branch information
gdisirio committed Oct 29, 2013
1 parent 949a3fa commit cf77eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions os/hal/platforms/STM32F4xx/hal_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down

0 comments on commit cf77eae

Please sign in to comment.