|
@@ -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);
|