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-05 18:35:33 -05:00
committed by Man, Jianting (Meco)
parent 890c1c9264
commit f58d3c5200
308 changed files with 671 additions and 685 deletions

View File

@@ -49,7 +49,7 @@ static rt_err_t rt_rtc_open(rt_device_t dev, rt_uint16_t oflag)
return RT_EOK;
}
static rt_size_t rt_rtc_read(
static rt_ssize_t rt_rtc_read(
rt_device_t dev,
rt_off_t pos,
void* buffer,