浏览代码

[time] 补充注释

Meco Man 4 年之前
父节点
当前提交
6fa385b987
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      components/libc/compilers/common/time.c

+ 2 - 2
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;