You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

46 lines
812 B

#include "asp_moto.h"
#include "debug_drv.h"
void L2_moto_init(void)
{
;
}
/// L3_moto_debug(D_cmd_filter_moto)
void L3_moto_debug(u8 filter)
{
if(filter == Ts_debug.td->filter)
{///filter num d1 d2 d3 ....dn
//// FD 08 11 22 33 44 55 66 77 88
L1_uartD_uchexArray(Ts_debug.td,Ts_debug.td->R1);
if(0x10 == Ts_debug.td->ocr)///read 读
{
//NUM: 0 1 2 3 4
// Fx R1 R2 R3 ocr
// sla reg1 num
/// f1 32 15 06 10
printf("\r\n ch(%d)=",(int)Ts_debug.td->R1);
/// Ts_debug.au16 = L1_ADC_Read_PT(Ts_debug.td->R1);
printf(" %XH %d ",(int)Ts_debug.au16,(int)Ts_debug.au16);
}
else if(0x11 == Ts_debug.td->ocr)
{
}
else if(0x12 == Ts_debug.td->ocr)
{
}
else
{
}
}
}