mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-27 23:47:05 +08:00
[bsp][ch32] fix the empty function ch32dma_transmit return error code as -RT_EIO
This commit is contained in:
parent
3a08336cb5
commit
4021b82161
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user