Connectivity
Dependencies: fsl_phy_mcr20a fsl_smac mbed-rtos mbed
Fork of mcr20_connectivity_test_FRDMk64f by
Diff: Source/Connectivity_TestApp.cpp
- Revision:
- 6:85e288fb2556
- Parent:
- 5:ad78d222bbcd
- Child:
- 8:c37e57032093
--- a/Source/Connectivity_TestApp.cpp Fri Jul 31 12:53:19 2015 +0000 +++ b/Source/Connectivity_TestApp.cpp Fri Jul 31 13:49:46 2015 +0000 @@ -359,7 +359,7 @@ if(evSignals & gMlme_CcaCnf_EVENT_c) { gCCaGotResult = TRUE; - uart.printf("Channel %d is", (uint32_t)testChannel); + uart.printf("Channel %d is ", (uint32_t)testChannel); if(gIsChannelIdle) uart.printf("Idle\r\n"); else @@ -826,9 +826,9 @@ { if (gAppRxPacket->rxStatus == rxSuccessStatus_c) { - uart.printf("New Packet: "); + uart.printf("New Packet: 0x"); for(u8Index = 0; u8Index < (gAppRxPacket->u8DataLength); u8Index++){ - uart.printf( "0x%02X",(gAppRxPacket->smacPdu.smacPdu[u8Index])); + uart.printf( "%02X",(gAppRxPacket->smacPdu.smacPdu[u8Index])); } uart.printf(" \r\n"); } @@ -1724,7 +1724,7 @@ for(rasRegAddress = rasRegStartAddress; rasRegAddress <= rasRegStopAddress; rasRegAddress+=(gRegisterSize_c)) { uart.printf( "\r\n| Address : 0x"); - uart.printf("%x", (uint8_t*)&rasRegAddress); + uart.printf("%x", (uint8_t*)rasRegAddress); aspTestRequestMsg.msgType = aspMsgTypeXcvrReadReq_c; aspTestRequestMsg.msgData.aspXcvrData.addr = (uint16_t)rasRegAddress; aspTestRequestMsg.msgData.aspXcvrData.len = gRegisterSize_c; @@ -1733,7 +1733,7 @@ APP_ASP_SapHandler(&aspTestRequestMsg, 0); rsRegValue = *((registerSize_t*)aspTestRequestMsg.msgData.aspXcvrData.data); uart.printf( " Data value : 0x"); - uart.printf("%x", (uint8_t*)&rsRegValue); + uart.printf("%x", (uint8_t*)rsRegValue); uart.printf( " |"); } uart.printf( "\r\n --------------------------------------- \r\n"); @@ -1808,7 +1808,7 @@ rsRegValue = *((registerSize_t*)aspTestRequestMsg.msgData.aspXcvrData.data); uart.printf( "\r\n -Register value : 0x"); - uart.printf("%x", (uint8_t*)&rsRegValue); + uart.printf("%x", (uint8_t*)rsRegValue); uart.printf( "\r\n"); rRState = gRRStateStart_c;