Skip to content

Commit 4d66e2d

Browse files
author
leibin
committed
The predivider should be 2 here.
1 parent 45dbe35 commit 4d66e2d

File tree

1 file changed

+1
-1
lines changed
  • libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB

1 file changed

+1
-1
lines changed

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/system_stm32f0xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ uint8_t SetSysClock_PLL_HSI(void)
437437
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
438438
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
439439
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; // HSI div 2
440-
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1;
440+
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV2;
441441
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL12;
442442
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
443443
return 0; // FAIL

0 commit comments

Comments
 (0)