lib: Update to the latest can2040 code

Rename to "match" state machine instead of "ack".
Minor simplification to tx_note_crc_start().
Call pio_match_clear() from report functions.
Add pio_match_calc_key() helper function.
Raise irq after 6 passive eof bits for faster rx message notification.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2022-07-16 00:16:51 -04:00
parent 24a1b50e51
commit 36887ce6fe
3 changed files with 96 additions and 81 deletions

View File

@@ -71,6 +71,7 @@ struct can2040 {
// Transmits
uint32_t tx_state;
uint32_t tx_eof_key;
uint32_t tx_pull_pos, tx_push_pos;
struct can2040_transmit tx_queue[4];
};