File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ uint8_t SetSysClock_PLL_HSI(void)
442
442
!defined (STM32L011xx ) && !defined (STM32L021xx )
443
443
RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ; /* For USB and RNG clock */
444
444
#endif
445
- // PLLCLK = (16 MHz * 4)/2 = 32 MHz
445
+ // PLLCLK = (16 MHz * 4)/2 = 32 MHz
446
446
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
447
447
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
448
448
RCC_OscInitStruct .PLL .PLLMUL = RCC_PLLMUL_4 ;
@@ -489,7 +489,7 @@ uint8_t SetSysClock_MSI(void)
489
489
return 0 ;
490
490
}
491
491
492
- /* Select MSI as system clock source and configure the HCLK, PCLK1 and PCLK2
492
+ /* Select MSI as system clock source and configure the HCLK, PCLK1 and PCLK2
493
493
clocks dividers */
494
494
RCC_ClkInitStruct .ClockType = (RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2 );
495
495
RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_MSI ; // 4 MHz
@@ -499,7 +499,7 @@ uint8_t SetSysClock_MSI(void)
499
499
if (HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_0 )!= HAL_OK )
500
500
{
501
501
/* Initialization Error */
502
- return 0 ;
502
+ return 0 ;
503
503
}
504
504
505
505
/* Enable Power Control clock */
You can’t perform that action at this time.
0 commit comments