summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/rtc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/rtc.h b/components/drivers/include/drivers/rtc.h
index 4845937113..6eda9cbf53 100644
--- a/components/drivers/include/drivers/rtc.h
+++ b/components/drivers/include/drivers/rtc.h
@@ -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__ */