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:
Meco Man
2023-02-07 21:43:57 -05:00
committed by Man, Jianting (Meco)
parent 890c1c9264
commit f58d3c5200
308 changed files with 671 additions and 685 deletions
+1 -1
View File
@@ -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;