comparison L1/cfile/l1_trace.c @ 10:9ffe74065152

l1_trace.c: identify ourselves in the TST_C line
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 06:30:12 +0000
parents b80f0c5016ee
children
comparison
equal deleted inserted replaced
9:b80f0c5016ee 10:9ffe74065152
6097 UWORD16 tcs_program_release; 6097 UWORD16 tcs_program_release;
6098 6098
6099 tcs_program_release = ((T_TST_TEST_HW_CON*)(msg->SigP))->mcu_tcs_program_release; 6099 tcs_program_release = ((T_TST_TEST_HW_CON*)(msg->SigP))->mcu_tcs_program_release;
6100 6100
6101 if (((tcs_program_release & 0xFFF0) == 0x2110) || ((tcs_program_release & 0xFFF0) == 0x2120)) 6101 if (((tcs_program_release & 0xFFF0) == 0x2110) || ((tcs_program_release & 0xFFF0) == 0x2120))
6102 sprintf(str, "TST_C %ld TCS_%d.%d.%d.%d_L1_%x_%x DSP:%xh DYN:%xh CHECKSUM:%xh\n\r", 6102 sprintf(str, "TST_C %ld TCS_%d.%d.%d.%d_L1_%x_%x FreeCalypso DSP:%xh DYN:%xh CHECKSUM:%xh\n\r",
6103 l1s.actual_time.fn_mod42432, 6103 l1s.actual_time.fn_mod42432,
6104 (tcs_program_release & 0xF000) >> 12, 6104 (tcs_program_release & 0xF000) >> 12,
6105 (tcs_program_release & 0x0F00) >> 8 , 6105 (tcs_program_release & 0x0F00) >> 8 ,
6106 (tcs_program_release & 0x00F0) >> 4 , 6106 (tcs_program_release & 0x00F0) >> 4 ,
6107 tcs_program_release & 0x000F, 6107 tcs_program_release & 0x000F,
6109 ((T_TST_TEST_HW_CON*)(msg->SigP))->mcu_tcs_internal, 6109 ((T_TST_TEST_HW_CON*)(msg->SigP))->mcu_tcs_internal,
6110 ((T_TST_TEST_HW_CON*)(msg->SigP))->dsp_code_version, 6110 ((T_TST_TEST_HW_CON*)(msg->SigP))->dsp_code_version,
6111 ((T_TST_TEST_HW_CON*)(msg->SigP))->dsp_patch_version, 6111 ((T_TST_TEST_HW_CON*)(msg->SigP))->dsp_patch_version,
6112 ((T_TST_TEST_HW_CON*)(msg->SigP))->dsp_checksum); 6112 ((T_TST_TEST_HW_CON*)(msg->SigP))->dsp_checksum);
6113 else 6113 else
6114 sprintf(str, "TST_C %ld TCS_%x.%x.%x_L1_%x_%x DSP:%xh DYN:%xh CHECKSUM:%xh\n\r", 6114 sprintf(str, "TST_C %ld TCS_%x.%x.%x_L1_%x_%x FreeCalypso DSP:%xh DYN:%xh CHECKSUM:%xh\n\r",
6115 l1s.actual_time.fn_mod42432, 6115 l1s.actual_time.fn_mod42432,
6116 (tcs_program_release & 0xF000) >> 12, 6116 (tcs_program_release & 0xF000) >> 12,
6117 (tcs_program_release & 0x0F00) >> 8 , 6117 (tcs_program_release & 0x0F00) >> 8 ,
6118 tcs_program_release & 0x00FF, 6118 tcs_program_release & 0x00FF,
6119 ((T_TST_TEST_HW_CON*)(msg->SigP))->mcu_tcs_official, 6119 ((T_TST_TEST_HW_CON*)(msg->SigP))->mcu_tcs_official,