STM32: fix wrong LSE config in serial_baud function

pull/8187/head
bcostm 2018-09-19 16:46:54 +02:00
parent 0233c8df4c
commit 4c31be2db4
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ void serial_baud(serial_t *obj, int baudrate)
if (!__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY)) {
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
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;
HAL_RCC_OscConfig(&RCC_OscInitStruct);
}