Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9d36c79

Browse files
committed
chore(wb0x): (lp)u(s)art support
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent bbb5cb7 commit 9d36c79

File tree

1 file changed

+3
-3
lines changed
  • libraries/SrcWrapper/src/stm32

1 file changed

+3
-3
lines changed

‎libraries/SrcWrapper/src/stm32/uart.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,14 +1478,14 @@ uint32_t uart_compute_prescaler(UART_HandleTypeDef *huart)
14781478
uint32_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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /