summaryrefslogtreecommitdiff
path: root/components/libc/compilers
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-05-01 14:23:50 +0800
committerMeco Man <[email protected]>2021-05-01 14:23:50 +0800
commit6fa385b98743c78b61a72fa5d4ff8ea7be4a31fd (patch)
tree2ba23012388695033fda3dfc07b978310b1beb96 /components/libc/compilers
parentf4015029d2f4682783fb26e9aa31588de4377783 (diff)
[time] 补充注释
Diffstat (limited to 'components/libc/compilers')
-rw-r--r--components/libc/compilers/common/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c
index 6a2b5620ad..388dc52ac3 100644
--- a/components/libc/compilers/common/time.c
+++ b/components/libc/compilers/common/time.c
@@ -124,11 +124,11 @@ static rt_err_t get_timeval(struct timeval *tv)
}
/**
- * Set time to RTC device (without timezone)
+ * Set time to RTC device (without timezone, UTC+0)
* @param tv: struct timeval
* @return the operation status, RT_EOK on successful
*/
-static int set_timeval(struct timeval *tv)
+static rt_err_t set_timeval(struct timeval *tv)
{
#ifdef RT_USING_RTC
static rt_device_t device = RT_NULL;