STM32F0: Turn on PLL clock source when asked to

The STM32F05xxx/06xxx manual describes on p.98 (Sec 7.4.1) the RCC_CR
register, on which it says that bit 24 is the PLLON bit which has to be
enabled before using the PLL. This causes the PLL to be enabled with
rcc_osc_on(PLL).
This commit is contained in:
Onno Kortmann 2013-12-04 22:36:11 -08:00 committed by Karl Palsson
parent 0dce37a4d2
commit 868d65d872
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ void rcc_osc_on(enum rcc_osc osc)
RCC_CSR |= RCC_CSR_LSION;
break;
case PLL:
/* don't do anything */
RCC_CR|=RCC_CR_PLLON;
break;
}
}