[bsp] Add another fix similar to checking for I2Cx

This commit is contained in:
lxqyyds 2023-04-05 15:09:35 +08:00 committed by Man, Jianting (Meco)
parent ba4e48b9db
commit b4c3086d2e
1 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@
static uint32_t UART_GetClock(UART0_Type* UARTx) {
uint32_t dividor;
assert_param(IS_UART_ALL_PERIPH(UARTx));
if ((uint32_t)UARTx == (uint32_t)UART0) {
dividor = GLOBAL_CTRL->CLK_SEL_0_b.UART0_CLK;