移植Test命令,验证成功

EJ EX 写工厂信息验证成功
This commit is contained in:
ranchuan
2023-10-12 18:43:17 +08:00
parent f0f36cf79a
commit 17b4ebf188
25 changed files with 2363 additions and 87 deletions

View File

@@ -1,6 +1,7 @@
#include "board.h"
#include "bytearray.h"
#include "mystdlib.h"
#include "mystring.h"
#include "debug.h"
#include "stdlib.h"
#include "dev_flash.h"
@@ -185,10 +186,30 @@ array_def *elec_write_resistor_cbv(int cbv)
board_st.resistor_diff=cbv;
array_def *r=arr_creat();
arr_append(r,0);
return 0;
return arr_temp(r);
}
// 写缓存
array_def *elec_write_fat_buff(array_def *d)
{
int ret=0;
int num=arr_length(d);
if(num<CHECKER_FAC_BUF_LEN){
memcpy(Checker_FacBuf,arr_data(d),num);
DBG_LOG("facbuf:%s.",str_temp(arr_string(d)));
ret=0;
}else{
ret=1;
}
array_def *r=arr_creat();
arr_append(r,ret);
return arr_temp(r);
}
// 测量桥丝阻值
array_def *elec_check_resistor(void)
{
@@ -303,7 +324,7 @@ array_def *elec_check_with_scheme(array_def *uid_psw)
checker_runcfg.excue_rtv = 0;
checker_runcfg.task_info.retry_time = 0;
if(taskid>=CHECKER_MAXID_COUNT){
DBG_WARN("tiskid out of bound.");
DBG_WARN("taskid=%d out of bound.",taskid);
break;
}
task_par= s->task_info_array[task_index];
@@ -333,6 +354,7 @@ array_def *elec_check_with_scheme(array_def *uid_psw)
break;
checker_runcfg.rtv_index-=checker_runcfg.rtv_count;
}
DBG_LOG("task_index:%d,taskid:%d,ret=%d.",task_index,taskid,checker_runcfg.excue_rtv);
// 找寻下一个任务
if((checker_runcfg.excue_rtv != 0)