未验证 提交 030b3653 编写于 作者: 周传福 提交者: GitHub

Update drv_usart.c

上级 81ff374a
...@@ -635,11 +635,11 @@ void LPUART1_DMA_RX_IRQHandler(void) ...@@ -635,11 +635,11 @@ void LPUART1_DMA_RX_IRQHandler(void)
static void stm32_dma_config(struct rt_serial_device *serial, rt_ubase_t flag) static void stm32_dma_config(struct rt_serial_device *serial, rt_ubase_t flag)
{ {
RT_ASSERT(serial != RT_NULL); RT_ASSERT(serial != RT_NULL);
struct stm32_uart *uart = (struct stm32_uart *)serial->parent.user_data;
RT_ASSERT(uart != RT_NULL);
struct rt_serial_rx_fifo *rx_fifo struct rt_serial_rx_fifo *rx_fifo
DMA_HandleTypeDef *DMA_Handle; DMA_HandleTypeDef *DMA_Handle;
struct dma_config *dma_config; struct dma_config *dma_config;
struct stm32_uart *uart = (struct stm32_uart *)serial->parent.user_data;
RT_ASSERT(uart != RT_NULL);
if (RT_DEVICE_FLAG_DMA_RX == flag) if (RT_DEVICE_FLAG_DMA_RX == flag)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册