Update drv_usart.c

This commit is contained in:
周传福 2019-05-20 09:47:36 +08:00 committed by GitHub
parent 81ff374aed
commit 030b365333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -635,11 +635,11 @@ void LPUART1_DMA_RX_IRQHandler(void)
static void stm32_dma_config(struct rt_serial_device *serial, rt_ubase_t flag)
{
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
DMA_HandleTypeDef *DMA_Handle;
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)
{