MITMotorsports / CANlib

An automatically generated C library for packing and unpacking based on ParseCAN specifications.
Apache License 2.0
5 stars 4 forks source link

Timestamped Frames #10

Open equationcrunchor opened 5 years ago

equationcrunchor commented 5 years ago

Uses HAL_GetTick to put a timestamp on received CAN messages. Includes changes from the interruptsbranch. See sensor-node-timestamped-frames branch in MY19 for example usage in sensor node. If using interrupts, one should pass the correct raw bus to CANlib_HandleFrame in the callback. This will break existing code that uses CANlib.

equationcrunchor commented 5 years ago

Made changes. Example usage in sensor-node-timestamped-frames branch of MY19.

nistath commented 5 years ago

@equationcrunchor please revisit to resolve conflicts and ping me for review?

equationcrunchor commented 5 years ago

@nistath Conflicts resolved.