检测模式3有方案时会获取方案中的模块芯片信息
This commit is contained in:
@@ -51,7 +51,6 @@ static int cmd_jwt_boot_erase(list_def *argv)
|
||||
ret=EW_bootErease();
|
||||
return ret;
|
||||
}
|
||||
//commend_export(jwt_boot_erase,cmd_jwt_boot_erase,"jwt srase in boot")
|
||||
|
||||
|
||||
// 跳转
|
||||
@@ -71,7 +70,6 @@ static int cmd_jwt_boot_jump(list_def *argv)
|
||||
ret=EW_bootJump();
|
||||
return ret;
|
||||
}
|
||||
//commend_export(jwt_boot_jump,cmd_jwt_boot_jump,"jwt jump in boot")
|
||||
|
||||
|
||||
// 充电
|
||||
@@ -92,7 +90,6 @@ static int cmd_jwt_boot_charg(list_def *argv)
|
||||
ret=EW_bootCharg();
|
||||
return ret;
|
||||
}
|
||||
//commend_export(jwt_boot_charg,cmd_jwt_boot_charg,"jwt charg in boot")
|
||||
|
||||
|
||||
|
||||
@@ -113,7 +110,6 @@ static int cmd_jwt_boot_discharg(list_def *argv)
|
||||
ret=EW_bootDisCharg();
|
||||
return ret;
|
||||
}
|
||||
//commend_export(jwt_boot_discharg,cmd_jwt_boot_discharg,"jwt discharg in boot")
|
||||
|
||||
|
||||
|
||||
@@ -173,7 +169,6 @@ static int cmd_jwt_boot_checkcrc(list_def *argv)
|
||||
cmd_print("local crc32=0x%04x.",crc);
|
||||
return ret;
|
||||
}
|
||||
//commend_export(jwt_boot_checkcrc,cmd_jwt_boot_checkcrc,"jwt checkcrc in boot")
|
||||
|
||||
|
||||
|
||||
@@ -236,7 +231,6 @@ static int cmd_jwt_app_read(list_def *argv)
|
||||
ret=EW_appRead();
|
||||
return ret;
|
||||
}
|
||||
//commend_export(jwt_app_read,cmd_jwt_app_read,"jwt read in app")
|
||||
|
||||
|
||||
// app:通信测试
|
||||
@@ -256,7 +250,6 @@ static int cmd_jwt_app_commtest(list_def *argv)
|
||||
ret=EW_appCommTest();
|
||||
return ret;
|
||||
}
|
||||
//commend_export(jwt_app_commtest,cmd_jwt_app_commtest,"jwt commtest in app")
|
||||
|
||||
|
||||
|
||||
@@ -276,8 +269,17 @@ static int cmd_jwt_app_runboot(list_def *argv)
|
||||
EW_appRunBoot();
|
||||
return ret;
|
||||
}
|
||||
//commend_export(jwt_app_runboot,cmd_jwt_app_runboot,"jwt turn to bootloader")
|
||||
|
||||
#ifdef DEBUG
|
||||
commend_export(jwt_boot_erase,cmd_jwt_boot_erase,"jwt srase in boot")
|
||||
commend_export(jwt_boot_jump,cmd_jwt_boot_jump,"jwt jump in boot")
|
||||
commend_export(jwt_boot_charg,cmd_jwt_boot_charg,"jwt charg in boot")
|
||||
commend_export(jwt_boot_discharg,cmd_jwt_boot_discharg,"jwt discharg in boot")
|
||||
commend_export(jwt_boot_checkcrc,cmd_jwt_boot_checkcrc,"jwt checkcrc in boot")
|
||||
commend_export(jwt_app_read,cmd_jwt_app_read,"jwt read in app")
|
||||
commend_export(jwt_app_commtest,cmd_jwt_app_commtest,"jwt commtest in app")
|
||||
commend_export(jwt_app_runboot,cmd_jwt_app_runboot,"jwt turn to bootloader")
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -378,6 +380,18 @@ int EW_TurnToBoot(ew_updata_def *e)
|
||||
}
|
||||
|
||||
|
||||
void EW_PowerSet(int power)
|
||||
{
|
||||
if(power){
|
||||
PowerCalibration_set(200,120);
|
||||
}
|
||||
else{
|
||||
PowerCalibration_set(POWER_DEF_V,45);
|
||||
POWER_OFF;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void EW_ParamPrint(ew_updata_def *e)
|
||||
{
|
||||
@@ -420,7 +434,7 @@ void EW_Updata(void)
|
||||
}
|
||||
|
||||
EW_ParamPrint(&ew_updata);
|
||||
PowerCalibration_set(200,120);
|
||||
EW_PowerSet(1);
|
||||
ret=EW_CheckState(&ew_updata);
|
||||
if(ret==2){
|
||||
// 在app中
|
||||
@@ -479,9 +493,9 @@ void EW_Updata(void)
|
||||
}
|
||||
DBG_LOG("EW_ReadMTP check success.");
|
||||
delay_ms(5);
|
||||
XTBUS_OFF;
|
||||
EW_PowerSet(0);
|
||||
delay_os_ms(ew_updata.time_poweroff);
|
||||
XTBUS_ON;
|
||||
EW_PowerSet(1);
|
||||
delay_os_ms(ew_updata.time_loadapp);
|
||||
ret=EW_appCommTest();
|
||||
if(ret) {ret=11;goto err;}
|
||||
|
Reference in New Issue
Block a user