Skip to content

Commit 54afd1c

Browse files
authored
Merge pull request #8187 from bcostm/fix_serial_lse
STM32: fix wrong LSE config in serial_baud function
2 parents 082ba15 + 4c31be2 commit 54afd1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/serial_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ void serial_baud(serial_t *obj, int baudrate)
354354
if (!__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY)) {
355355
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
356356
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE;
357-
RCC_OscInitStruct.HSIState = RCC_LSE_ON;
357+
RCC_OscInitStruct.LSEState = RCC_LSE_ON;
358358
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_OFF;
359359
HAL_RCC_OscConfig(&RCC_OscInitStruct);
360360
}

0 commit comments

Comments
 (0)