Skip to content

Commit dc9cd2e

Browse files
authored
Update system_stm32f0xx.c
1 parent 0f5823a commit dc9cd2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device/system_stm32f0xx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ uint8_t SetSysClock_PLL_HSI(void)
449449
RCC_OscInitStruct.HSI48State = RCC_HSI_ON;
450450
RCC_OscInitStruct.LSIState = RCC_LSI_OFF;
451451
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
452-
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; // HSI div 2
453-
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV2;
452+
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
453+
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV2; // HSI div 2
454454
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL12;
455455
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
456456
return 0; // FAIL

0 commit comments

Comments
 (0)