This commit is contained in:
刘可亮
2024-06-04 19:00:30 +08:00
parent 990c72f5be
commit 0a13af6a1d
1668 changed files with 342810 additions and 37726 deletions

View File

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

View File

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