提交 9e47b95e 编写于 作者: mysterywolf's avatar mysterywolf

rt_rtc_dev_register -> rt_hw_rtc_register

上级 fb31ab9c
......@@ -280,7 +280,7 @@ static int rt_hw_rtc_init(void)
rt_err_t result;
stm32_rtc_dev.ops = &stm32_rtc_ops;
result = rt_rtc_dev_register(&stm32_rtc_dev, "rtc", RT_DEVICE_FLAG_RDWR, RT_NULL);
result = rt_hw_rtc_register(&stm32_rtc_dev, "rtc", RT_DEVICE_FLAG_RDWR, RT_NULL);
if (result != RT_EOK)
{
LOG_E("rtc register err code: %d", result);
......
......@@ -37,7 +37,7 @@ typedef struct rt_rtc_device
const struct rt_rtc_ops *ops;
} rt_rtc_dev_t;
rt_err_t rt_rtc_dev_register(rt_rtc_dev_t *rtc,
rt_err_t rt_hw_rtc_register(rt_rtc_dev_t *rtc,
const char *name,
rt_uint32_t flag,
void *data);
......
......@@ -91,7 +91,7 @@ const static struct rt_device_ops rtc_core_ops =
};
#endif
rt_err_t rt_rtc_dev_register(rt_rtc_dev_t *rtc,
rt_err_t rt_hw_rtc_register(rt_rtc_dev_t *rtc,
const char *name,
rt_uint32_t flag,
void *data)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册