@@ -1478,14 +1478,14 @@ uint32_t uart_compute_prescaler(UART_HandleTypeDef *huart)
14781478uint32_t  uart_get_clock_source_freq (UART_HandleTypeDef  * huart )
14791479{
14801480 uint32_t  freq  =  0 ;
1481- #if  defined(STM32WB0 )
1481+ #if  defined(STM32WB0x )  ||  defined( STM32WL3x )
14821482 freq  =  UART_PERIPHCLK ;
14831483 if  (UART_INSTANCE_LOWPOWER (huart )) {
14841484#if  defined(RCC_CFGR_LPUCLKSEL )
14851485 freq  =  HAL_RCCEx_GetPeriphCLKFreq (RCC_PERIPHCLK_LPUART1 );
14861486#endif  /* RCC_CFGR_LPUCLKSEL */ 
14871487 }
1488- #else  /* !STM32WB0  */ 
1488+ #else  /* STM32WB0x || STM32WL3x  */ 
14891489 uint32_t  clocksource ;
14901490 UART_GETCLOCKSOURCE (huart , clocksource );
14911491#if  defined(STM32H5 ) ||  defined(STM32MP1 ) ||  defined(STM32U0 ) || \
@@ -1560,7 +1560,7 @@ uint32_t uart_get_clock_source_freq(UART_HandleTypeDef *huart)
15601560 break ;
15611561 }
15621562#endif  /* STM32H5 */ 
1563- #endif  /* STM32WB0  */ 
1563+ #endif  /* STM32WB0x || STM32WL3x  */ 
15641564 return  freq ;
15651565}
15661566#endif  /* UART_PRESCALER_DIV1 */ 
0 commit comments