Few fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14421 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
d6757a81eb
commit
eb07eec9a0
|
@ -611,11 +611,8 @@ void stm32_clock_init(void) {
|
|||
STM32_LPUART1SEL;
|
||||
|
||||
/* Set flash WS's for SYSCLK source.*/
|
||||
FLASH->ACR = FLASH_ACR_DBG_SWEN | FLASH_ACR_ICEN | FLASH_ACR_PRFTEN |
|
||||
STM32_FLASHBITS;
|
||||
while ((FLASH->ACR & FLASH_ACR_LATENCY_Msk) !=
|
||||
(STM32_FLASHBITS & FLASH_ACR_LATENCY_Msk)) {
|
||||
}
|
||||
flash_set_acr(FLASH_ACR_DBG_SWEN | FLASH_ACR_ICEN | FLASH_ACR_PRFTEN |
|
||||
STM32_FLASHBITS);
|
||||
|
||||
/* Switching to the configured SYSCLK source if it is different from HSI16.*/
|
||||
#if STM32_SW != STM32_SW_HSISYS
|
||||
|
|
Loading…
Reference in New Issue