Skip to content

Commit 0f5823a

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ uint8_t SetSysClock_PLL_HSI(void)
450450
RCC_OscInitStruct.LSIState = RCC_LSI_OFF;
451451
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
452452
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; // HSI div 2
453-
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1;
453+
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV2;
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)