FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/cfile/l1_trace.c @ 158:90c4afec6608
l1_trace.c: use of int_id global var reconstructed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 05 Jun 2016 19:36:56 +0000 |
parents | a7f7b52692e2 |
children | 3d39075c56bc |
comparison
equal
deleted
inserted
replaced
157:a7f7b52692e2 | 158:90c4afec6608 |
---|---|
394 #endif //NOT SIMULATION | 394 #endif //NOT SIMULATION |
395 | 395 |
396 | 396 |
397 #if (TRACE_TYPE==1) || (TRACE_TYPE==4) || (TRACE_TYPE==5) | 397 #if (TRACE_TYPE==1) || (TRACE_TYPE==4) || (TRACE_TYPE==5) |
398 | 398 |
399 UWORD16 int_id = 0; | |
399 UWORD32 pgoset = 0; | 400 UWORD32 pgoset = 0; |
400 | 401 |
401 | 402 |
402 /*************************************************************************/ | 403 /*************************************************************************/ |
403 /* Initialization */ | 404 /* Initialization */ |
1592 { | 1593 { |
1593 sprintf (str," deep_sleep: %ld %ld %d %d %s\n\r", | 1594 sprintf (str," deep_sleep: %ld %ld %d %d %s\n\r", |
1594 ((T_TRACE_INFO *)(msg->SigP))->tab[0], | 1595 ((T_TRACE_INFO *)(msg->SigP))->tab[0], |
1595 ((T_TRACE_INFO *)(msg->SigP))->tab[1], | 1596 ((T_TRACE_INFO *)(msg->SigP))->tab[1], |
1596 ((T_TRACE_INFO *)(msg->SigP))->tab[3], | 1597 ((T_TRACE_INFO *)(msg->SigP))->tab[3], |
1597 ((T_TRACE_INFO *)(msg->SigP))->tab[5], | 1598 int_id, |
1598 array_special_cases[index]); | 1599 array_special_cases[index]); |
1599 } | 1600 } |
1600 else | 1601 else |
1601 // big sleep | 1602 // big sleep |
1602 { | 1603 { |
1603 char *array_string[]={"undefined","ligth on","uart","sim","gauging","sleep mode","DSP","BT","??"}; | 1604 char *array_string[]={"undefined","ligth on","uart","sim","gauging","sleep mode","DSP","BT","??"}; |
1604 sprintf (str," big sleep: %ld %ld %d %d (cause:%s) %s\n\r", | 1605 sprintf (str," big sleep: %ld %ld %d %d (cause:%s) %s\n\r", |
1605 ((T_TRACE_INFO *)(msg->SigP))->tab[0], | 1606 ((T_TRACE_INFO *)(msg->SigP))->tab[0], |
1606 ((T_TRACE_INFO *)(msg->SigP))->tab[1], | 1607 ((T_TRACE_INFO *)(msg->SigP))->tab[1], |
1607 ((T_TRACE_INFO *)(msg->SigP))->tab[3], | 1608 ((T_TRACE_INFO *)(msg->SigP))->tab[3], |
1608 ((T_TRACE_INFO *)(msg->SigP))->tab[5], | 1609 int_id, |
1609 array_string[((T_TRACE_INFO *)(msg->SigP))->tab[4]], | 1610 array_string[((T_TRACE_INFO *)(msg->SigP))->tab[4]], |
1610 array_special_cases[index]); | 1611 array_special_cases[index]); |
1611 } | 1612 } |
1612 L1_send_trace_cpy(str); | 1613 L1_send_trace_cpy(str); |
1613 } | 1614 } |
8280 | 8281 |
8281 /* l1_trace_sleep() */ | 8282 /* l1_trace_sleep() */ |
8282 /* Parameters : */ | 8283 /* Parameters : */ |
8283 /* Return : */ | 8284 /* Return : */ |
8284 | 8285 |
8285 UWORD16 int_id; | |
8286 | |
8287 void l1_trace_sleep(UWORD32 start_fn, UWORD32 end_fn, UWORD8 type_sleep,UWORD8 wakeup_type,UWORD8 big_sleep_type) | 8286 void l1_trace_sleep(UWORD32 start_fn, UWORD32 end_fn, UWORD8 type_sleep,UWORD8 wakeup_type,UWORD8 big_sleep_type) |
8288 { | 8287 { |
8289 #if (CODE_VERSION == SIMULATION) | 8288 #if (CODE_VERSION == SIMULATION) |
8290 | 8289 |
8291 #if (TRACE_TYPE==5) | 8290 #if (TRACE_TYPE==5) |
8325 ((T_TR_SLEEP *)(msg->SigP))->start_fn = start_fn; | 8324 ((T_TR_SLEEP *)(msg->SigP))->start_fn = start_fn; |
8326 ((T_TR_SLEEP *)(msg->SigP))->end_fn = end_fn; | 8325 ((T_TR_SLEEP *)(msg->SigP))->end_fn = end_fn; |
8327 ((T_TR_SLEEP *)(msg->SigP))->type_sleep = type_sleep; | 8326 ((T_TR_SLEEP *)(msg->SigP))->type_sleep = type_sleep; |
8328 ((T_TR_SLEEP *)(msg->SigP))->wakeup_type = wakeup_type; | 8327 ((T_TR_SLEEP *)(msg->SigP))->wakeup_type = wakeup_type; |
8329 ((T_TR_SLEEP *)(msg->SigP))->big_sleep_type = big_sleep_type; | 8328 ((T_TR_SLEEP *)(msg->SigP))->big_sleep_type = big_sleep_type; |
8330 ((T_TR_SLEEP *)(msg->SigP))->int_id = int_id; | |
8331 | 8329 |
8332 // send message... | 8330 // send message... |
8333 os_send_sig(msg, L1C1_QUEUE); | 8331 os_send_sig(msg, L1C1_QUEUE); |
8334 DEBUGMSG(status,NU_SEND_QUEUE_ERR) | 8332 DEBUGMSG(status,NU_SEND_QUEUE_ERR) |
8335 } | 8333 } |
8350 ((T_TRACE_INFO *)(msg->SigP))->tab[0] = start_fn; | 8348 ((T_TRACE_INFO *)(msg->SigP))->tab[0] = start_fn; |
8351 ((T_TRACE_INFO *)(msg->SigP))->tab[1] = end_fn; | 8349 ((T_TRACE_INFO *)(msg->SigP))->tab[1] = end_fn; |
8352 ((T_TRACE_INFO *)(msg->SigP))->tab[2] = type_sleep; | 8350 ((T_TRACE_INFO *)(msg->SigP))->tab[2] = type_sleep; |
8353 ((T_TRACE_INFO *)(msg->SigP))->tab[3] = wakeup_type; | 8351 ((T_TRACE_INFO *)(msg->SigP))->tab[3] = wakeup_type; |
8354 ((T_TRACE_INFO *)(msg->SigP))->tab[4] = big_sleep_type; | 8352 ((T_TRACE_INFO *)(msg->SigP))->tab[4] = big_sleep_type; |
8355 ((T_TRACE_INFO *)(msg->SigP))->tab[5] = int_id; | |
8356 | 8353 |
8357 // send message... | 8354 // send message... |
8358 os_send_sig(msg, L1C1_QUEUE); | 8355 os_send_sig(msg, L1C1_QUEUE); |
8359 DEBUGMSG(status,NU_SEND_QUEUE_ERR) | 8356 DEBUGMSG(status,NU_SEND_QUEUE_ERR) |
8360 } | 8357 } |