Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Daede <bztdlinux@gmail.com>2012-10-28 11:56:22 +0400
committerThomas Daede <bztdlinux@gmail.com>2012-10-28 11:56:22 +0400
commit0fd7cc3559eb3c180de97898edbfd77f827a83b1 (patch)
treebbcb819983ac89aa4419caecbb6314b26ff6dc47 /include/libopencm3/stm32/can.h
parentf385341495edafceca39a087dcae0eeb833fd14d (diff)
Fix CAN standard ID mask to be 11 bits.
Diffstat (limited to 'include/libopencm3/stm32/can.h')
-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 d6636d5f..cdb5df19 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 */