Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of d7a_1x by
Diff: src/d7a_alp.cpp
- Revision:
- 80:30265d5dd20a
- Parent:
- 79:82b01c1a62f6
- Child:
- 82:5d1b101b6d11
--- a/src/d7a_alp.cpp Wed Dec 21 15:08:51 2016 +0000 +++ b/src/d7a_alp.cpp Wed Dec 21 15:47:15 2016 +0000 @@ -12,7 +12,7 @@ #if 0 #define ALP_DPRINT(...) DPRINT(__VA_ARGS__) - #define ALP_DPRINT_DATA(...) DPRINT_DATA(__VA_ARGS__) + #define ALP_DPRINT_DATA(...) ALP_DPRINT_DATA(__VA_ARGS__) #else #define ALP_DPRINT(...); #define ALP_DPRINT_DATA(...); @@ -27,8 +27,6 @@ static UnsolicitedMsgFunction g_alp_uns_msg; static Thread g_alp_thread(osPriorityHigh, 512, NULL); -static const uint32_t g_alp_stack_size = 1 + ALP_CMD_MAX_LENGHT + sizeof(g_alp_pkt_queue) + sizeof(g_alp_pl_queue) + 4 + 256; - void d7a_alp_thread(); d7a_errors_t d7a_alp_open(UnsolicitedMsgFunction uns_msg) @@ -228,7 +226,7 @@ memcpy(rsp->msg->id, res->addressee.id, D7A_UID_LEN); // Get UID ALP_DPRINT("ALP RSP ISTATUS type:%02X lb: %3d ", type, rsp->msg->lb); - DPRINT_DATA("UID:", "%02X", rsp->msg->id, D7A_UID_LEN, "\r\n"); + ALP_DPRINT_DATA("UID:", "%02X", rsp->msg->id, D7A_UID_LEN, "\r\n"); } else { @@ -255,7 +253,7 @@ rsp->msg->data->length = length; p += d7a_alp_add(rsp->msg->data->buf, p, length); ALP_DPRINT("ALP RSP F_DATA f:%d o:%d s:%d\r\n", fid, offset, length); - //DPRINT_DATA("DATA: ", "%02X ", (uint8_t*)rsp->data, rsp->data_len, "\r\n"); + //ALP_DPRINT_DATA("DATA: ", "%02X ", (uint8_t*)rsp->data, rsp->data_len, "\r\n"); break; default: WARNING(false, "ALP Untreated OP %d\r\n", ctrl);