mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
[rtc]调整rtc驱动框架函数位置,功能无影响,为后续新的RTC框架铺路
This commit is contained in:
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user