解决不能擦除flash的问题
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
#include "elec_det.h"
|
||||
#include "commend.h"
|
||||
#include "mystring.h"
|
||||
#include "mystdlib.h"
|
||||
#include "hardware/jw3425iic.h"
|
||||
#include "interface/BaseChecker.h"
|
||||
#include "base/define.h"
|
||||
#include "base/utility.h"
|
||||
#include "interface/EWChecker.h"
|
||||
|
||||
// 电子模块相关调试命令
|
||||
|
||||
@@ -15,8 +17,9 @@ static int cmd_check(list_def *argv)
|
||||
{
|
||||
array_def *data=arr_creat();
|
||||
cmd_print("start check.");
|
||||
elec_check_with_scheme(data);
|
||||
array_def *r=elec_check_with_scheme(data);
|
||||
arr_delete(data);
|
||||
cmd_print("check end,ret=%s.",str_temp(arr_string(r)));
|
||||
return 0;
|
||||
}
|
||||
commend_export(check,cmd_check,"start check")
|
||||
@@ -94,3 +97,21 @@ commend_export(iic_read,cmd_iic_read,"read mtp via iic,param:mtp_addr,data_lengt
|
||||
|
||||
|
||||
|
||||
// 设置总线电压
|
||||
static int cmd_set_bus_power(list_def *argv)
|
||||
{
|
||||
if(list_length(argv)<2){
|
||||
cmd_print("param num too less.");
|
||||
return -1;
|
||||
}
|
||||
int bus_v=str_atoi(list_get_str(argv,1));
|
||||
int ret=0;
|
||||
checker_runcfg.params[0]=(uint16_t)bus_v;
|
||||
checker_runcfg.param_count=1;
|
||||
EW_Test_SetBusV();
|
||||
ret=checker_runcfg.excue_rtv;
|
||||
cmd_print("cmd end,ret=%d.",ret);
|
||||
}
|
||||
commend_export(bus_power,cmd_set_bus_power,"set bus power,param:bus_power")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user