基本功能已完成,还差功耗和架构优化
This commit is contained in:
@@ -40,9 +40,8 @@ typedef enum {
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
* @brief 打开 "rtc" 设备并加载时区
|
||||
* @return UsrRtc_Ret_t
|
||||
* @note app_main 启动时调用一次即可
|
||||
* @brief 打开 rtc 设备并加载时区
|
||||
* @return USR_RTC_OK=成功,USR_RTC_ERR_NOT_INIT=设备打开失败或 RTC 未使能
|
||||
*/
|
||||
UsrRtc_Ret_t usr_rtc_init(void);
|
||||
|
||||
@@ -57,7 +56,7 @@ uint8_t usr_rtc_get_time(struct sys_time *t);
|
||||
* @brief App/网关 DEVICEINFO:UTC 秒 + 时区写入 RTC
|
||||
* @param unix_utc UTC Unix 秒;0 无效
|
||||
* @param tz_s 时区偏移秒(东八区 28800)
|
||||
* @return UsrRtc_Ret_t
|
||||
* @return USR_RTC_OK=成功,USR_RTC_ERR_NOT_INIT=未初始化,USR_RTC_ERR_PARAM=参数非法,USR_RTC_ERR_INVALID=年份非法
|
||||
*/
|
||||
UsrRtc_Ret_t usr_rtc_set_from_unix(uint64_t unix_utc, int32_t tz_s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user