diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-31 12:59:04 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-31 12:59:04 -0500 |
commit | 10a35b0a7c380d77cdd24ac90d6aa0abd4601f3e (patch) | |
tree | 5f768c8425e99006fc2a7cc7866b932600ae2074 /tests/common.c | |
parent | 90209462aa40f17b24ef91864070b522b6df1b14 (diff) |
Draft reworking of API.
Diffstat (limited to 'tests/common.c')
-rw-r--r-- | tests/common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/common.c b/tests/common.c index 833a5ed4..4ad8eff1 100644 --- a/tests/common.c +++ b/tests/common.c @@ -5,7 +5,7 @@ #include <stdarg.h> IsoTpShims SHIMS; -IsoTpHandler ISOTP_HANDLER; +IsoTpHandle HANDLE; uint16_t last_can_frame_sent_arb_id; uint8_t last_can_payload_sent[8]; @@ -83,8 +83,8 @@ 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); - ISOTP_HANDLER = isotp_init(&SHIMS, 0x2a, message_received, message_sent, - can_frame_sent); + // TODO + /* HANDLE = isotp_receive(&SHIMS, 0x2a, message_received); */ last_message_sent_payload = malloc(MAX_ISO_TP_MESSAGE_SIZE); last_message_received_payload = malloc(MAX_ISO_TP_MESSAGE_SIZE); memset(last_can_payload_sent, 0, sizeof(last_can_payload_sent)); |