serial_v2 rt_device_write/read return data type as rt_ssize_t

This commit is contained in:
jonas 2023-02-23 15:56:15 +08:00 committed by Man, Jianting (Meco)
parent 52cb2f0b7e
commit 6d4764ad69
1 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ static rt_ssize_t rt_serial_update_write_index(struct rt_ringbuffer *rb,
* @param size Receive data buffer length.
* @return Return the final length of data received.
*/
rt_size_t _serial_poll_rx(struct rt_device *dev,
rt_ssize_t _serial_poll_rx(struct rt_device *dev,
rt_off_t pos,
void *buffer,
rt_size_t size)
@ -343,7 +343,7 @@ rt_size_t _serial_poll_rx(struct rt_device *dev,
* @param size Transmit data buffer length.
* @return Return the final length of data received.
*/
rt_size_t _serial_poll_tx(struct rt_device *dev,
rt_ssize_t _serial_poll_tx(struct rt_device *dev,
rt_off_t pos,
const void *buffer,
rt_size_t size)