rt_rtc_dev_register -> rt_hw_rtc_register
This commit is contained in:
parent
fb31ab9c72
commit
9e47b95e61
|
@ -280,7 +280,7 @@ static int rt_hw_rtc_init(void)
|
||||||
rt_err_t result;
|
rt_err_t result;
|
||||||
|
|
||||||
stm32_rtc_dev.ops = &stm32_rtc_ops;
|
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)
|
if (result != RT_EOK)
|
||||||
{
|
{
|
||||||
LOG_E("rtc register err code: %d", result);
|
LOG_E("rtc register err code: %d", result);
|
||||||
|
|
|
@ -37,7 +37,7 @@ typedef struct rt_rtc_device
|
||||||
const struct rt_rtc_ops *ops;
|
const struct rt_rtc_ops *ops;
|
||||||
} rt_rtc_dev_t;
|
} 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,
|
const char *name,
|
||||||
rt_uint32_t flag,
|
rt_uint32_t flag,
|
||||||
void *data);
|
void *data);
|
||||||
|
|
|
@ -91,7 +91,7 @@ const static struct rt_device_ops rtc_core_ops =
|
||||||
};
|
};
|
||||||
#endif
|
#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,
|
const char *name,
|
||||||
rt_uint32_t flag,
|
rt_uint32_t flag,
|
||||||
void *data)
|
void *data)
|
||||||
|
|
Loading…
Reference in New Issue