Skip to content

Commit 70a9345

Browse files
RickKimballfpistm
authored andcommittedAug 20, 2017
DISCO_F100RB board using HSI should use HSE
Switch SYSCLK from HSI to HSE. Signed-off-by: Rick Kimball <[email protected]>
1 parent 37ed31b commit 70a9345

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)
Please sign in to comment.