@@ -843,7 +843,7 @@ int elm_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
INIT_COMPONENT_EXPORT(elm_init);
|
||||
// INIT_COMPONENT_EXPORT(elm_init);
|
||||
|
||||
/*
|
||||
* RT-Thread Device Interface for ELM FatFs
|
||||
|
@@ -365,3 +365,8 @@ MSH_CMD_EXPORT(date, get date and time or set (local timezone) [year month day h
|
||||
#endif /* RT_USING_FINSH */
|
||||
|
||||
#endif /* RT_USING_RTC */
|
||||
|
||||
int rt_hw_rtc_sys_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -104,7 +104,7 @@ const static struct rt_device_ops soft_rtc_ops =
|
||||
};
|
||||
#endif
|
||||
|
||||
static int rt_soft_rtc_init(void)
|
||||
int rt_soft_rtc_init(void)
|
||||
{
|
||||
static rt_bool_t init_ok = RT_FALSE;
|
||||
struct tm time_new = SOFT_RTC_TIME_DEFAULT;
|
||||
@@ -115,6 +115,9 @@ static int rt_soft_rtc_init(void)
|
||||
}
|
||||
/* make sure only one 'rtc' device */
|
||||
RT_ASSERT(!rt_device_find("rtc"));
|
||||
|
||||
extern int rt_hw_rtc_sys_init(void);
|
||||
rt_hw_rtc_sys_init();
|
||||
|
||||
#ifdef RT_USING_ALARM
|
||||
rt_timer_init(&alarm_time,
|
||||
@@ -151,6 +154,6 @@ static int rt_soft_rtc_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
INIT_DEVICE_EXPORT(rt_soft_rtc_init);
|
||||
// INIT_DEVICE_EXPORT(rt_soft_rtc_init);
|
||||
|
||||
#endif /* RT_USING_SOFT_RTC */
|
||||
|
@@ -162,7 +162,7 @@ const static char* _ustring[] =
|
||||
{
|
||||
"Language",
|
||||
"RT-Thread Team.",
|
||||
"RTT Mass Storage",
|
||||
"XYFC DR Storage",
|
||||
"320219198301",
|
||||
"Configuration",
|
||||
"Interface",
|
||||
@@ -1156,6 +1156,6 @@ int rt_usbd_msc_class_register(void)
|
||||
rt_usbd_class_register(&msc_class);
|
||||
return 0;
|
||||
}
|
||||
INIT_PREV_EXPORT(rt_usbd_msc_class_register);
|
||||
// INIT_PREV_EXPORT(rt_usbd_msc_class_register);
|
||||
|
||||
#endif
|
||||
|
@@ -79,7 +79,7 @@ int rt_usbd_class_list_init(void)
|
||||
rt_list_init(&class_list);
|
||||
return 0;
|
||||
}
|
||||
INIT_BOARD_EXPORT(rt_usbd_class_list_init);
|
||||
// INIT_BOARD_EXPORT(rt_usbd_class_list_init);
|
||||
|
||||
rt_err_t rt_usbd_class_register(udclass_t udclass)
|
||||
{
|
||||
|
Reference in New Issue
Block a user