mirror of https://github.com/ARMmbed/mbed-os.git
STM32: fix wrong LSE config in serial_baud function
parent
0233c8df4c
commit
4c31be2db4
|
@ -354,7 +354,7 @@ void serial_baud(serial_t *obj, int baudrate)
|
||||||
if (!__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY)) {
|
if (!__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY)) {
|
||||||
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
||||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE;
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE;
|
||||||
RCC_OscInitStruct.HSIState = RCC_LSE_ON;
|
RCC_OscInitStruct.LSEState = RCC_LSE_ON;
|
||||||
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_OFF;
|
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_OFF;
|
||||||
HAL_RCC_OscConfig(&RCC_OscInitStruct);
|
HAL_RCC_OscConfig(&RCC_OscInitStruct);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue