aboutsummaryrefslogtreecommitdiffstats
path: root/lib/can2040/can2040.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-07-16 00:16:51 -0400
committerKevin O'Connor <kevin@koconnor.net>2022-07-16 09:57:12 -0400
commit36887ce6fec3b98bc9f66aae675fb3b4fe712c3d (patch)
tree0cbb420f7f2248b734a61aceebb084cc8805326b /lib/can2040/can2040.h
parent24a1b50e512f3038a51060e3cc8ce2a847b9fafa (diff)
downloadkutter-36887ce6fec3b98bc9f66aae675fb3b4fe712c3d.tar.gz
kutter-36887ce6fec3b98bc9f66aae675fb3b4fe712c3d.tar.xz
kutter-36887ce6fec3b98bc9f66aae675fb3b4fe712c3d.zip
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>
Diffstat (limited to 'lib/can2040/can2040.h')
-rw-r--r--lib/can2040/can2040.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/can2040/can2040.h b/lib/can2040/can2040.h
index 884c3caf..0005db9e 100644
--- a/lib/can2040/can2040.h
+++ b/lib/can2040/can2040.h
@@ -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];
};