diff options
| author | Bernard Xiong <[email protected]> | 2018-02-16 22:52:47 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-02-16 22:52:47 +0800 |
| commit | 9255b88ca2aae976344c141291d48685c450501e (patch) | |
| tree | 0001df57ed4f4ff38c11b522d81593dae809defd /components/drivers/include | |
| parent | a692cc1549cabe75d86ad308be8ad5d90e4b34a4 (diff) | |
| parent | ae867e1b65672d519618136c1b068d8a8ed095b2 (diff) | |
Merge pull request #1223 from armink/add_soft_rtc
Add soft rtc
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__ */ |
