提交 b4c3086d 编写于 作者: L lxqyyds 提交者: mysterywolf

[bsp] Add another fix similar to checking for I2Cx

上级 ba4e48b9
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册