summaryrefslogtreecommitdiffstats
path: root/tests/common.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-03 13:40:02 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-03 13:40:02 -0500
commit330358c978ea3d324740a8dba884c4493fa339b8 (patch)
tree405c6f572531e5624bb15da16bc73da99035503e /tests/common.c
parent99dd20fc3d6c14d9e8af65264ad712ca6718dcdd (diff)
Split up functions to rx CAN messages for rx and tx of ISO-TP.
Diffstat (limited to 'tests/common.c')
-rw-r--r--tests/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/common.c b/tests/common.c
index 554293c9..f9898b32 100644
--- a/tests/common.c
+++ b/tests/common.c
@@ -5,7 +5,7 @@
#include <stdarg.h>
IsoTpShims SHIMS;
-IsoTpHandle HANDLE;
+IsoTpReceiveHandle RECEIVE_HANDLE;
uint16_t last_can_frame_sent_arb_id;
uint8_t last_can_payload_sent[8];
@@ -81,7 +81,7 @@ void can_frame_sent(const uint16_t arbitration_id, const uint8_t* payload,
void setup() {
SHIMS = isotp_init_shims(debug, mock_send_can, mock_set_timer);
- HANDLE = isotp_receive(&SHIMS, 0x2a, message_received);
+ RECEIVE_HANDLE = isotp_receive(&SHIMS, 0x2a, message_received);
memset(last_message_sent_payload, 0, OUR_MAX_ISO_TP_MESSAGE_SIZE);
memset(last_message_received_payload, 0, OUR_MAX_ISO_TP_MESSAGE_SIZE);
memset(last_can_payload_sent, 0, sizeof(last_can_payload_sent));