diff options
| author | Meco Man <[email protected]> | 2021-05-06 23:47:33 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-05-06 23:47:33 +0800 |
| commit | 43e9aec85e560e50b1bbefa300c50b34d1268ab5 (patch) | |
| tree | 5a54b9804fff300dba5a9a916a9ac05b392bc5f1 /components/drivers | |
| parent | f982d813892971a7e9ba75ace7061805cd8f2458 (diff) | |
将rt_soft_rtc_init设为私有函数
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/rtc/README.md | 2 | ||||
| -rw-r--r-- | components/drivers/rtc/soft_rtc.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/components/drivers/rtc/README.md b/components/drivers/rtc/README.md index 23010cf4b7..f2a40f5056 100644 --- a/components/drivers/rtc/README.md +++ b/components/drivers/rtc/README.md @@ -76,5 +76,3 @@ msh /> 在 menuconfig 中启用 `RT_USING_SOFT_RTC` 配置。 -> 注意:如果没有使用组件自动初始化功能,则需手动调用 `int rt_soft_rtc_init(void)` ,完成该功能初始化。 - diff --git a/components/drivers/rtc/soft_rtc.c b/components/drivers/rtc/soft_rtc.c index 9e1b7c35fd..255579f35e 100644 --- a/components/drivers/rtc/soft_rtc.c +++ b/components/drivers/rtc/soft_rtc.c @@ -104,7 +104,7 @@ const static struct rt_device_ops soft_rtc_ops = }; #endif -int rt_soft_rtc_init(void) +static int rt_soft_rtc_init(void) { static rt_bool_t init_ok = RT_FALSE; struct tm time_new = SOFT_RTC_TIME_DEFAULT; |
