serial_v2 rt_device_write/read return data type as rt_ssize_t
This commit is contained in:
parent
52cb2f0b7e
commit
6d4764ad69
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue