diff options
| author | armink <[email protected]> | 2018-02-16 13:06:15 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2018-02-16 13:14:48 +0800 |
| commit | cd23728070e959e13d42fae90c5a1c273c32fd64 (patch) | |
| tree | 3a69f77301ea56b6e31da4c57cbaefdd51e48d36 /components/drivers/include | |
| parent | 59be76af25b5d30c690027297594658a37d2553c (diff) | |
[DeviceDriver][RTC] Add soft RTC and NTP auto sync time config to Kconfig.
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/rtc.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/components/drivers/include/drivers/rtc.h b/components/drivers/include/drivers/rtc.h index 18108091c8..7e89bd3704 100644 --- a/components/drivers/include/drivers/rtc.h +++ b/components/drivers/include/drivers/rtc.h @@ -22,15 +22,13 @@ * 2012-10-10 aozima first version. */ -#ifndef RTC_H_INCLUDED -#define RTC_H_INCLUDED +#ifndef __RTC_H__ +#define __RTC_H__ -extern rt_err_t set_date(rt_uint32_t year, - rt_uint32_t month, - rt_uint32_t day); +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); -extern rt_err_t set_time(rt_uint32_t hour, - rt_uint32_t minute, - rt_uint32_t second); +int rt_soft_rtc_init(void); +int rt_rtc_ntp_sync_init(void); -#endif // RTC_H_INCLUDED +#endif /* __RTC_H__ */ |
