lib: Update to latest can2040 code

Simplify tx state tracking.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2022-07-16 21:00:49 -04:00
parent 2f9fe49cb8
commit 75c4b1238e
3 changed files with 153 additions and 139 deletions

View file

@ -68,10 +68,10 @@ struct can2040 {
// Reporting
uint32_t report_state;
uint32_t report_eof_key;
// Transmits
uint32_t tx_state;
uint32_t tx_eof_key;
uint32_t tx_pull_pos, tx_push_pos;
struct can2040_transmit tx_queue[4];
};