stm32: Support passing through RTR and EFF canbus frames

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2022-06-11 19:00:54 -04:00
parent 913c6a913d
commit 3f7d05dd18
3 changed files with 39 additions and 28 deletions

View File

@@ -16,6 +16,9 @@ struct canbus_msg {
};
};
#define CANMSG_ID_RTR (1<<30)
#define CANMSG_ID_EFF (1<<31)
#define CANMSG_DATA_LEN(msg) ((msg)->dlc > 8 ? 8 : (msg)->dlc)
// callbacks provided by board specific code