mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-28 16:14:20 +08:00
rt_device_write/read return data type as rt_ssize_t
rt_ssize_t can give negative error code, which follows the unix style correctly
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
890c1c9264
commit
f58d3c5200
@@ -142,7 +142,7 @@ static int tm4c123_getc(struct rt_serial_device *serial)
|
||||
return ch;
|
||||
}
|
||||
|
||||
static rt_size_t tm4c123_dma_transmit(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, int direction)
|
||||
static rt_ssize_t tm4c123_dma_transmit(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, int direction)
|
||||
{
|
||||
/* this is an interface for uart dma, reserved for uptate. */
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user