From 4021b821618e4d584d17b9208fcce96c5675bb7e Mon Sep 17 00:00:00 2001 From: linshire <89723088+linshire@users.noreply.github.com> Date: Wed, 1 Mar 2023 06:41:17 +0800 Subject: [PATCH] [bsp][ch32] fix the empty function ch32dma_transmit return error code as -RT_EIO --- bsp/wch/risc-v/Libraries/ch32_drivers/drv_usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_usart.c b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_usart.c index 4d70381721..f45aaf9381 100644 --- a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_usart.c +++ b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_usart.c @@ -345,7 +345,7 @@ static int ch32_getc(struct rt_serial_device *serial) static rt_ssize_t ch32dma_transmit(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, int direction) { - return RT_EOK; + return -RT_EIO; } static void uart_isr(struct rt_serial_device *serial)