recovery_display_sample();
#ifdef CFG_DRIVERS_NANDFLASH
//为了加速启动,把最耗时的mount_user_res_partition分区放到显示log之后
- mount_user_res_partition();
+ // mount_user_res_partition();
#endif
if (upg_need_upgrade()) {
printf("need upgrade\r\n");
(CreateQueueFunction_t)power_display_task_init, USE_DTCM_MEM },
#endif
// user分区mount位置修改,save_file必须放到user分区mount之后
- // { { "save_file", 0, NULL, 0, NULL, SAVE_FILE_STACK_SIZE, TASK_PRIORITY_SAVE_FILE, 0, 0 },
- // (osThreadFunc_t)save_file_main, NULL, NULL, USE_EXTEND_MEM },
+ { { "save_file", 0, NULL, 0, NULL, SAVE_FILE_STACK_SIZE, TASK_PRIORITY_SAVE_FILE, 0, 0 },
+ (osThreadFunc_t)save_file_main, NULL, NULL, USE_EXTEND_MEM },
#ifdef SUPPORT_AUTO_OTA
{ { "auto_ota", 0, NULL, 0, NULL, AUTO_OTA_STACK_SIZE, TASK_PRIORITY_AUTO_OTA, 0, 0 },
(osThreadFunc_t)auto_ota_task_main, NULL, NULL, USE_EXTEND_MEM },
mount_partition_by_index(0);
mount_partition_by_index(1);
mount_partition_by_index(2);
+ mount_partition_by_index(3);
PRINT("yaffs filesystem init end!\n");
has_nandflash_init = 1;
return ret;
}
-int mount_user_res_partition(void)
-{
- return mount_partition_by_index(3);
-}
+// int mount_user_res_partition(void)
+// {
+// return mount_partition_by_index(3);
+// }
void nandflash_qspi_resume(void)
{
nand_driver_init(SPEED_MID);