Skip to content

Commit 25c5adc

Browse files
authored
Merge pull request #88 from fpistm/Issue85
DISCO_F100RB board using HSI should use HSE
2 parents 37ed31b + 70a9345 commit 25c5adc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

variants/DISCO_F100RB/variant.cpp

+4-4
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)