File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -159,11 +159,11 @@ WEAK void SystemClock_Config(void)
159159 RCC_ClkInitTypeDef RCC_ClkInitStruct;
160160 RCC_PeriphCLKInitTypeDef PeriphClkInit;
161161
162- RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI ;
163- RCC_OscInitStruct.HSIState = RCC_HSI_ON ;
164- RCC_OscInitStruct.HSICalibrationValue = 16 ;
162+ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE ;
163+ RCC_OscInitStruct.HSEState = RCC_HSE_ON ;
164+ RCC_OscInitStruct.HSEPredivValue = RCC_HSE_PREDIV_DIV2 ;
165165 RCC_OscInitStruct.PLL .PLLState = RCC_PLL_ON;
166- RCC_OscInitStruct.PLL .PLLSource = RCC_PLLSOURCE_HSI_DIV2 ;
166+ RCC_OscInitStruct.PLL .PLLSource = RCC_PLLSOURCE_HSE ;
167167 RCC_OscInitStruct.PLL .PLLMUL = RCC_PLL_MUL6;
168168 if (HAL_RCC_OscConfig (&RCC_OscInitStruct) != HAL_OK)
169169 {
You can’t perform that action at this time.
0 commit comments