未验证 提交 0fc2211c 编写于 作者: 马浩然 提交者: GitHub

Update drv_uart.c

fix indentataions
上级 0fc2b13b
......@@ -52,7 +52,8 @@ static rt_err_t ls2k_uart_set_buad(struct rt_serial_device *serial,struct serial
UART_LSB(uart_dev->base)= brtc & 0xff;
UART_MSB(uart_dev->base)= brtc >> 8;
if(((((short)UART_MSB(uart_dev->base))<<8) | UART_LSB(uart_dev->base)) != brtc) ret=RT_ERROR;
if(((((short)UART_MSB(uart_dev->base))<<8) | UART_LSB(uart_dev->base)) != brtc)
ret=RT_ERROR;
UART_LCR(uart_dev->base)= CFCR_8BITS;// Back to normal
UART_MCR(uart_dev->base)= MCR_IENABLE/* | MCR_DTR | MCR_RTS*/;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册