[rtc]调整rtc驱动框架函数位置,功能无影响,为后续新的RTC框架铺路

This commit is contained in:
Meco Man
2021-05-04 13:06:24 +08:00
parent 6d57515316
commit 787e46c6a3
2 changed files with 59 additions and 65 deletions
+4
View File
@@ -11,10 +11,14 @@
#ifndef __RTC_H__
#define __RTC_H__
#include <rtconfig.h>
rt_err_t set_date(rt_uint32_t year, rt_uint32_t month, rt_uint32_t day);
rt_err_t set_time(rt_uint32_t hour, rt_uint32_t minute, rt_uint32_t second);
#ifdef RTC_SYNC_USING_NTP
int rt_soft_rtc_init(void);
int rt_rtc_ntp_sync_init(void);
#endif /* RTC_SYNC_USING_NTP */
#endif /* __RTC_H__ */