summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-04-19 00:20:54 -0400
committerMan, Jianting (Meco) <[email protected]>2023-04-19 07:49:46 -0400
commit4a7ef40dc760bc79504c6007e9032dd63a6a4171 (patch)
tree785eb5ad3d2b6a819ff38d36600203a8f7eda33c /components/drivers/include
parenta61bbdd6d08c4037559a1099b4924a670f256177 (diff)
[serial-v2]fix the data type error
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/serial_v2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/include/drivers/serial_v2.h b/components/drivers/include/drivers/serial_v2.h
index 4b3e2cba06..76c44333bd 100644
--- a/components/drivers/include/drivers/serial_v2.h
+++ b/components/drivers/include/drivers/serial_v2.h
@@ -178,7 +178,7 @@ struct rt_uart_ops
int (*putc)(struct rt_serial_device *serial, char c);
int (*getc)(struct rt_serial_device *serial);
- rt_size_t (*transmit)(struct rt_serial_device *serial,
+ rt_ssize_t (*transmit)(struct rt_serial_device *serial,
rt_uint8_t *buf,
rt_size_t size,
rt_uint32_t tx_flag);