mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 10:28:54 +00:00
V1.0.5
This commit is contained in:
@@ -40,7 +40,10 @@ CONSOLE_CMD(reboot, do_reset_boot, "Reboot device.");
|
||||
static int cmd_aicupg(int argc, char **argv)
|
||||
{
|
||||
#ifdef AIC_WRI_DRV
|
||||
aic_set_reboot_reason(REBOOT_REASON_UPGRADE);
|
||||
if ((argc == 2) && !strcmp(argv[1], "gotobl"))
|
||||
aic_set_reboot_reason(REBOOT_REASON_BL_UPGRADE);
|
||||
else
|
||||
aic_set_reboot_reason(REBOOT_REASON_UPGRADE);
|
||||
#endif
|
||||
do_reset_boot(0, NULL);
|
||||
return 0;
|
||||
|
||||
@@ -133,8 +133,10 @@ int main(void)
|
||||
|
||||
#ifdef AIC_SDMC_DRV
|
||||
mmc_init(1);
|
||||
#ifdef AIC_SD_USING_HOTPLUG
|
||||
sdcard_hotplug_init();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(LPKG_USING_DFS_ELMFAT) && defined(AIC_SDMC_DRV)
|
||||
if (dfs_mount("sd1", "/sdcard", "elm", 0, DEVICE_TYPE_SDMC_DISK) < 0)
|
||||
@@ -213,6 +215,12 @@ int main(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef AIC_SD_USING_HOTPLUG
|
||||
while (1) {
|
||||
sdcard_hotplug_act();
|
||||
}
|
||||
#endif
|
||||
|
||||
/* FreeRTOS Task exit */
|
||||
aicos_thread_delete(NULL);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user