aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Daede2012-10-28 02:56:22 -0500
committerThomas Daede2012-10-28 02:56:22 -0500
commit0fd7cc3559eb3c180de97898edbfd77f827a83b1 (patch)
treebbcb819983ac89aa4419caecbb6314b26ff6dc47
parentf385341495edafceca39a087dcae0eeb833fd14d (diff)
Fix CAN standard ID mask to be 11 bits.
-rw-r--r--include/libopencm3/stm32/can.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libopencm3/stm32/can.h b/include/libopencm3/stm32/can.h
index d6636d5..cdb5df1 100644
--- a/include/libopencm3/stm32/can.h
+++ b/include/libopencm3/stm32/can.h
@@ -458,7 +458,7 @@
/* --- CAN_TIxR values ------------------------------------------------------ */
/* STID[10:0]: Standard identifier */
-#define CAN_TIxR_STID_MASK (0x3FF << 21)
+#define CAN_TIxR_STID_MASK (0x7FF << 21)
#define CAN_TIxR_STID_SHIFT 21
/* EXID[15:0]: Extended identifier */