You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* tr_info("WIRELESS COPROCESSOR FW VERSION ID = %d.%d.%d", p_wireless_info->VersionMajor, p_wireless_info->VersionMinor, p_wireless_info->VersionSub);
291
-
* tr_info("WIRELESS COPROCESSOR FW STACK TYPE = %d", p_wireless_info->StackType);
292
-
*/
293
-
294
-
304
+
#if defined(DEBUG)
305
+
printf("WIRELESS COPROCESSOR FW VERSION ID = %d.%d.%d\r\n", p_wireless_info->VersionMajor, p_wireless_info->VersionMinor, p_wireless_info->VersionSub);
306
+
printf("WIRELESS COPROCESSOR FW STACK TYPE = %d\r\n", p_wireless_info->StackType);
307
+
#endif
295
308
/* Now start BLE service on firmware side, using Vendor specific
296
309
* command on the System Channel
297
310
*/
@@ -653,10 +666,11 @@ static int bt_ipm_set_power(void)
653
666
/* if event is a command complete event */
654
667
if (*pMsg == HCI_CMD_CMPL_EVT) {
655
668
/* "Command Complete Event Command" */
656
-
#if (PRINT_HCI_DATA)
669
+
#if defined(PRINT_HCI_DATA)
657
670
for (uint8_t i = 0; i < 20; i++) {
658
-
tr_debug(" %02X", *((uint8_t *)pMsg + i));
671
+
printf(" %02X", *((uint8_t *)pMsg + i));
659
672
}
673
+
printf("\r\n");
660
674
#endif
661
675
/* parse parameters */
662
676
pMsg += HCI_EVT_HDR_LEN;
@@ -831,7 +845,7 @@ static int bt_ipm_set_power(void)
831
845
832
846
default:
833
847
#if defined(DEBUG)
834
-
printf("Complete Event in reset seq with unknown opcode =0x%4X", opcode);
848
+
printf("Complete Event in reset seq with unknown opcode =0x%4X\r\n", opcode);
835
849
#endif /* DEBUG */
836
850
break;
837
851
}
@@ -845,7 +859,7 @@ static int bt_ipm_set_power(void)
845
859
pMsg++; /* skip num packets */
846
860
BSTREAM_TO_UINT16(opcode, pMsg);
847
861
#if defined(DEBUG)
848
-
printf("Command Status event, status:%d, opcode=0x%4X", status, opcode);
862
+
printf("Command Status event, status:%d, opcode=0x%4X\r\n", status, opcode);
849
863
#endif /* DEBUG */
850
864
} else {
851
865
/**
@@ -856,11 +870,11 @@ static int bt_ipm_set_power(void)
856
870
pMsg += HCI_EVT_HDR_LEN;
857
871
BSTREAM_TO_UINT16(opcode, pMsg);
858
872
#if defined(DEBUG)
859
-
printf("Vendor specific event, opcode=0x%4X", opcode);
873
+
printf("Vendor specific event, opcode=0x%4X\r\n", opcode);
860
874
#endif /* DEBUG */
861
875
} else {
862
876
#if defined(DEBUG)
863
-
printf("Unknown event %d!", pMsg[0]);
877
+
printf("Unknown event %d!\r\n", pMsg[0]);
864
878
#endif /* DEBUG */
865
879
}
866
880
}
@@ -878,9 +892,7 @@ static int bt_ipm_set_power(void)
878
892
// type 02 ACL DATA
879
893
// type 03 SCO Voice (not supported)
880
894
// type 04 event - uplink (not suported)
881
-
#if defined(DEBUG)
882
-
printf("mbox_write type:%d, len:%d", type, len);
883
-
#endif/* DEBUG */
895
+
884
896
/* TO DO : MANAGE ACL DATA CASE in separate buffer */
885
897
switch (type) {
886
898
case1://BLE command
@@ -890,23 +902,25 @@ static int bt_ipm_set_power(void)
890
902
/* We're tracing here the command, after copy in shared mem but before
891
903
* * M0 trigger. */
892
904
#if defined(DEBUG)
893
-
printf("TX>> BLE CMD");
894
-
#endif/* DEBUG */
895
-
#if (PRINT_HCI_DATA)
905
+
#if defined(PRINT_HCI_DATA)
896
906
/* Trace the buffer including Type (+1 on lngth) */
0 commit comments