mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 18:57:16 +08:00
[bsp] Add another fix similar to checking for I2Cx
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
ba4e48b9db
commit
b4c3086d2e
@@ -37,7 +37,8 @@
|
||||
|
||||
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;
|
||||
} else if ((uint32_t)UARTx == (uint32_t)UART1) {
|
||||
|
||||
Reference in New Issue
Block a user