[bsp][ch32] fix the empty function ch32dma_transmit return error code as -RT_EIO

This commit is contained in:
linshire 2023-03-01 06:41:17 +08:00 committed by GitHub
parent 3a08336cb5
commit 4021b82161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) 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) static void uart_isr(struct rt_serial_device *serial)