V2.13 使用新的can帧回复数据

解决ew自检模式 8导致小板死机的bug,自检返回值除以400,单位0.1ms
This commit is contained in:
ranchuan
2024-01-08 18:04:05 +08:00
parent b9224f2293
commit bcbd02a72c
16 changed files with 203 additions and 127 deletions

View File

@@ -438,7 +438,7 @@ void EW_Test_VerifyThreedCode(void)
@brief 自检
@param 自检模式
@param1 自检时间ms
@rtv 自检模式0x08的回读数据
@rtv 自检模式0x08的回读数据0.1ms
*/
void EW_Test_CheckSelf()
{
@@ -447,8 +447,10 @@ void EW_Test_CheckSelf()
uint8_t uc_mode = checker_runcfg.params[0];
uc_rtv = EW_ChecSelf(checker_runcfg.netid,uc_mode,(uint8_t*)&ul_temp);
delay_ms(checker_runcfg.params[1]);
// 250ns 除以400 单位0.1ms
ul_temp/=400;
Checker_MaskResult(uc_rtv,checker_runcfg.task_info.runindex);
Checker_SetRtv((uint16_t*)ul_temp,checker_runcfg.rtv_count);
Checker_SetRtv((uint16_t*)&ul_temp,checker_runcfg.rtv_count);
}
/*