Skip to content

Commit

Permalink
Merge pull request #4390 from mickeyln/patch-1
Browse files Browse the repository at this point in the history
Nucleo-F070RB It doesn't work when use internal clock
  • Loading branch information
theotherjimmy committed Jun 26, 2017
2 parents f3dc8a6 + dc9cd2e commit 0d2fb2d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ uint8_t SetSysClock_PLL_HSI(void)
RCC_OscInitStruct.HSI48State = RCC_HSI_ON;
RCC_OscInitStruct.LSIState = RCC_LSI_OFF;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; // HSI div 2
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV2; // HSI div 2
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL12;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
return 0; // FAIL
Expand Down

0 comments on commit 0d2fb2d

Please sign in to comment.