More change for clock setting.

This commit is contained in:
NIIBE Yutaka
2017-11-17 15:32:51 +09:00
parent 14cb38e56f
commit 3071929c62
4 changed files with 45 additions and 14 deletions

View File

@@ -118,9 +118,6 @@ clock_init (void)
/* Flash setup */
FLASH->ACR = STM32_FLASHBITS;
/* CRC */
RCC->AHBENR |= RCC_AHBENR_CRCEN;
/* Switching on the configured clock source. */
RCC->CFGR |= STM32_SW;
while ((RCC->CFGR & RCC_CFGR_SWS) != (STM32_SW << 2))