Skip to content

Commit 9e47b95

Browse files
committed
rt_rtc_dev_register -> rt_hw_rtc_register
1 parent fb31ab9 commit 9e47b95

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bsp/stm32/libraries/HAL_Drivers/drv_rtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static int rt_hw_rtc_init(void)
280280
rt_err_t result;
281281

282282
stm32_rtc_dev.ops = &stm32_rtc_ops;
283-
result = rt_rtc_dev_register(&stm32_rtc_dev, "rtc", RT_DEVICE_FLAG_RDWR, RT_NULL);
283+
result = rt_hw_rtc_register(&stm32_rtc_dev, "rtc", RT_DEVICE_FLAG_RDWR, RT_NULL);
284284
if (result != RT_EOK)
285285
{
286286
LOG_E("rtc register err code: %d", result);

components/drivers/include/drivers/rtc_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ typedef struct rt_rtc_device
3737
const struct rt_rtc_ops *ops;
3838
} rt_rtc_dev_t;
3939

40-
rt_err_t rt_rtc_dev_register(rt_rtc_dev_t *rtc,
40+
rt_err_t rt_hw_rtc_register(rt_rtc_dev_t *rtc,
4141
const char *name,
4242
rt_uint32_t flag,
4343
void *data);

components/drivers/rtc/rtc_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const static struct rt_device_ops rtc_core_ops =
9191
};
9292
#endif
9393

94-
rt_err_t rt_rtc_dev_register(rt_rtc_dev_t *rtc,
94+
rt_err_t rt_hw_rtc_register(rt_rtc_dev_t *rtc,
9595
const char *name,
9696
rt_uint32_t flag,
9797
void *data)

0 commit comments

Comments
 (0)