diff options
| author | 孙冬梅 <[email protected]> | 2018-03-10 18:33:45 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-03-10 18:33:45 +0800 |
| commit | 6e987b2350badd1777454b7324fc88d3275407d6 (patch) | |
| tree | 1bbd5fc2cdaff0719d76122c91e0e736bf3f8116 /components/drivers/include | |
| parent | 351f15be4bdf575789be2e1d74934e830bd60554 (diff) | |
| parent | 5534bab89ee767757a451b2efeb5341c1fb74872 (diff) | |
Merge pull request #2 from RT-Thread/master
update form origin
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/mmcsd_core.h | 2 | ||||
| -rw-r--r-- | components/drivers/include/drivers/rtc.h | 16 |
2 files changed, 8 insertions, 10 deletions
diff --git a/components/drivers/include/drivers/mmcsd_core.h b/components/drivers/include/drivers/mmcsd_core.h index 36d71efeb2..424f9a0c85 100644 --- a/components/drivers/include/drivers/mmcsd_core.h +++ b/components/drivers/include/drivers/mmcsd_core.h @@ -185,7 +185,7 @@ struct rt_mmcsd_req { * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. */ -rt_inline rt_uint32_t fls(rt_uint32_t val) +rt_inline rt_uint32_t __rt_fls(rt_uint32_t val) { rt_uint32_t bit = 32; 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__ */ |
