FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/cfile/l1_trace.c @ 159:3d39075c56bc
l1_trace.c: l1_trace_message() reconstructed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 06 Jun 2016 20:54:47 +0000 |
parents | 90c4afec6608 |
children | fb47e34859c0 |
comparison
equal
deleted
inserted
replaced
158:90c4afec6608 | 159:3d39075c56bc |
---|---|
1404 sprintf (str,"> ERROR: Fast Decoding IT received but not expected! %ld\n\r", | 1404 sprintf (str,"> ERROR: Fast Decoding IT received but not expected! %ld\n\r", |
1405 ((T_TRACE_INFO *)(msg->SigP))->tab[0]); | 1405 ((T_TRACE_INFO *)(msg->SigP))->tab[0]); |
1406 } | 1406 } |
1407 #endif /* end FF_L1_FAST_DECODING */ | 1407 #endif /* end FF_L1_FAST_DECODING */ |
1408 else | 1408 else |
1409 #endif | |
1410 { | 1409 { |
1411 sprintf (str,"> ERROR: Unknown IT_DSP_ERROR! %ld\n\r", | 1410 sprintf (str,"> ERROR: Unknown IT_DSP_ERROR! %ld\n\r", |
1412 ((T_TRACE_INFO *)(msg->SigP))->tab[0]); | 1411 ((T_TRACE_INFO *)(msg->SigP))->tab[0]); |
1413 } | 1412 } |
1413 #else | |
1414 sprintf (str,"> MCU CPU overload %ld\n\r", | |
1415 ((T_TRACE_INFO *)(msg->SigP))->tab[0]); | |
1416 #endif | |
1414 L1_send_trace_cpy(str); | 1417 L1_send_trace_cpy(str); |
1415 } /* end case IT_DSP_ERROR */ | 1418 } /* end case IT_DSP_ERROR */ |
1416 break; | 1419 break; |
1417 | 1420 |
1418 case PM_EQUAL_0: | 1421 case PM_EQUAL_0: |
1419 { | 1422 { |
1423 #if 1 /* TCS211 bogus format string */ | |
1424 sprintf (str,"> PM %ld %ld %ld %ld %ld %ld %ld %d %ld %d\n\r", | |
1425 #else /* LoCosto correction */ | |
1420 sprintf (str,"> PM %ld %ld %ld %ld %ld %ld %ld %d %ld\n\r", | 1426 sprintf (str,"> PM %ld %ld %ld %ld %ld %ld %ld %d %ld\n\r", |
1427 #endif | |
1421 ((T_TRACE_INFO *)(msg->SigP))->tab[0], | 1428 ((T_TRACE_INFO *)(msg->SigP))->tab[0], |
1422 ((T_TRACE_INFO *)(msg->SigP))->tab[1], | 1429 ((T_TRACE_INFO *)(msg->SigP))->tab[1], |
1423 ((T_TRACE_INFO *)(msg->SigP))->tab[2], | 1430 ((T_TRACE_INFO *)(msg->SigP))->tab[2], |
1424 ((T_TRACE_INFO *)(msg->SigP))->tab[3], | 1431 ((T_TRACE_INFO *)(msg->SigP))->tab[3], |
1425 ((T_TRACE_INFO *)(msg->SigP))->tab[4], | 1432 ((T_TRACE_INFO *)(msg->SigP))->tab[4], |
1608 ((T_TRACE_INFO *)(msg->SigP))->tab[3], | 1615 ((T_TRACE_INFO *)(msg->SigP))->tab[3], |
1609 int_id, | 1616 int_id, |
1610 array_string[((T_TRACE_INFO *)(msg->SigP))->tab[4]], | 1617 array_string[((T_TRACE_INFO *)(msg->SigP))->tab[4]], |
1611 array_special_cases[index]); | 1618 array_special_cases[index]); |
1612 } | 1619 } |
1620 int_id = 0; | |
1613 L1_send_trace_cpy(str); | 1621 L1_send_trace_cpy(str); |
1614 } | 1622 } |
1615 break; | 1623 break; |
1616 | 1624 |
1617 case TRACE_GAUGING: | 1625 case TRACE_GAUGING: |
1950 // Message to set the right radio band // | 1958 // Message to set the right radio band // |
1951 ///////////////////////////////////////// | 1959 ///////////////////////////////////////// |
1952 case MPHC_INIT_L1_REQ: | 1960 case MPHC_INIT_L1_REQ: |
1953 { | 1961 { |
1954 #if (L1_FF_MULTIBAND == 0) | 1962 #if (L1_FF_MULTIBAND == 0) |
1955 sprintf (str, "BAND_R %d",((T_MPHC_INIT_L1_REQ *)(msg->SigP))-> radio_band_config); | 1963 sprintf (str, "BAND_R %d\n\r",((T_MPHC_INIT_L1_REQ *)(msg->SigP))-> radio_band_config); |
1956 #else | 1964 #else |
1957 sprintf(str,"BAND_R"); | 1965 sprintf(str,"BAND_R"); |
1958 #endif /*#if (L1_FF_MULTIBAND == 1)*/ | 1966 #endif /*#if (L1_FF_MULTIBAND == 1)*/ |
1959 | 1967 |
1960 L1_send_trace_cpy(str); | 1968 L1_send_trace_cpy(str); |
1962 break; | 1970 break; |
1963 | 1971 |
1964 case MPHC_INIT_L1_CON: | 1972 case MPHC_INIT_L1_CON: |
1965 { | 1973 { |
1966 #if (L1_FF_MULTIBAND == 0) | 1974 #if (L1_FF_MULTIBAND == 0) |
1967 sprintf (str, "BAND_C"); | 1975 sprintf (str, "BAND_C \n\r"); |
1968 #else | 1976 #else |
1969 UWORD16 n = 0; | 1977 UWORD16 n = 0; |
1970 UWORD8 i = 0; | 1978 UWORD8 i = 0; |
1971 n = sprintf(str, "BAND_C %ld", (l1s.actual_time.fn)); | 1979 n = sprintf(str, "BAND_C %ld", (l1s.actual_time.fn)); |
1972 for(i = 0; i < NB_MAX_SUPPORTED_BANDS; i ++) | 1980 for(i = 0; i < NB_MAX_SUPPORTED_BANDS; i ++) |
2243 break; | 2251 break; |
2244 | 2252 |
2245 case MPHC_NCELL_SYNC_IND: | 2253 case MPHC_NCELL_SYNC_IND: |
2246 { | 2254 { |
2247 | 2255 |
2248 #if (L1_EOTD) | 2256 /* |
2257 * Bug in TCS211, fixed in LoCosto, has to be restored for | |
2258 * binary-matching source reconstruction: TCS211 version always | |
2259 * printed all fields even without L1_EOTD. | |
2260 */ | |
2261 #if 1 //(L1_EOTD) | |
2249 sprintf(str,"NSY_I %ld %d %d %ld %ld %d %d %ld %ld %ld %ld %ld %ld %ld %ld\n\r", | 2262 sprintf(str,"NSY_I %ld %d %d %ld %ld %d %d %ld %ld %ld %ld %ld %ld %ld %ld\n\r", |
2250 #else | 2263 #else |
2251 sprintf(str,"NSY_I %ld %d %d %ld %ld %d %d\n\r", | 2264 sprintf(str,"NSY_I %ld %d %d %ld %ld %d %d\n\r", |
2252 #endif | 2265 #endif |
2253 l1s.actual_time.fn_mod42432, | 2266 l1s.actual_time.fn_mod42432, |
3131 | 3144 |
3132 sprintf(str,"RXL_I %ld %d %d\n\r", | 3145 sprintf(str,"RXL_I %ld %d %d\n\r", |
3133 l1s.actual_time.fn_mod42432, | 3146 l1s.actual_time.fn_mod42432, |
3134 l1a_l1s_com.full_list_ptr->power_array_size, | 3147 l1a_l1s_com.full_list_ptr->power_array_size, |
3135 trace_info.rxlev_req_count); | 3148 trace_info.rxlev_req_count); |
3136 L1_send_trace_cpy(str); | |
3137 | 3149 |
3138 // If it's the 5th MPHC_RXLEV_REQ message received from L3, trace accum_power_result | 3150 // If it's the 5th MPHC_RXLEV_REQ message received from L3, trace accum_power_result |
3139 if (trace_info.rxlev_req_count == 5) | 3151 if (trace_info.rxlev_req_count == 5) |
3140 { | 3152 { |
3141 UWORD16 i; | 3153 UWORD16 i; |
3953 list_ptr = &(l1pa_l1ps_com.cres_freq_list.list[1]); | 3965 list_ptr = &(l1pa_l1ps_com.cres_freq_list.list[1]); |
3954 else | 3966 else |
3955 list_ptr = &(l1pa_l1ps_com.cres_freq_list.list[0]); | 3967 list_ptr = &(l1pa_l1ps_com.cres_freq_list.list[0]); |
3956 //Reset the variable new_tcr_list so that next time onwards the new list of | 3968 //Reset the variable new_tcr_list so that next time onwards the new list of |
3957 //frequencies will get printed. | 3969 //frequencies will get printed. |
3958 trace_info.new_tcr_list = 0; | 3970 #if 0 /* FreeCalypso TCS211 reconstruction */ |
3971 trace_info.new_tcr_list = 0; | |
3972 #endif | |
3959 } | 3973 } |
3960 | 3974 |
3961 sprintf(str,"TCR_I %ld %d %d %ld\n\r", | 3975 sprintf(str,"TCR_I %ld %d %d %ld\n\r", |
3962 l1s.actual_time.fn_mod42432, | 3976 l1s.actual_time.fn_mod42432, |
3963 ((T_L1P_TCR_MEAS_DONE *)(msg->SigP))->list_id, | 3977 ((T_L1P_TCR_MEAS_DONE *)(msg->SigP))->list_id, |
4522 | 4536 |
4523 #if (OP_RIV_AUDIO == 1) | 4537 #if (OP_RIV_AUDIO == 1) |
4524 #if (L1_AUDIO_DRIVER == 1) | 4538 #if (L1_AUDIO_DRIVER == 1) |
4525 case L1_AUDIO_DRIVER_IND: | 4539 case L1_AUDIO_DRIVER_IND: |
4526 { | 4540 { |
4527 #if 0 | |
4528 sprintf(str,"AUD_I %ld %02ld %08lx\n\r", | 4541 sprintf(str,"AUD_I %ld %02ld %08lx\n\r", |
4529 (WORD32) l1s.actual_time.fn_mod42432, | 4542 (WORD32) l1s.actual_time.fn_mod42432, |
4530 (WORD32) ((T_L1_AUDIO_DRIVER_IND *)(msg->SigP))->channel_id, | 4543 (WORD32) ((T_L1_AUDIO_DRIVER_IND *)(msg->SigP))->channel_id, |
4531 (WORD32)((T_L1_AUDIO_DRIVER_IND *)(msg->SigP))->p_buffer); | 4544 (WORD32)((T_L1_AUDIO_DRIVER_IND *)(msg->SigP))->p_buffer); |
4532 L1_send_trace_cpy(str); | 4545 L1_send_trace_cpy(str); |
4533 #endif //endof aud_i | |
4534 } | 4546 } |
4535 break; | 4547 break; |
4536 #endif //(L1_AUDIO_DRIVER == 1) | 4548 #endif //(L1_AUDIO_DRIVER == 1) |
4537 #endif //(OP_RIV_AUDIO == 1) | 4549 #endif //(OP_RIV_AUDIO == 1) |
4538 | 4550 |