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:
authorFabián Inostroza <fabianinostroza@udec.cl>2016-10-12 08:00:07 +0300
committerKarl Palsson <karlp@tweak.net.au>2017-06-09 02:01:45 +0300
commitfac1013ccbad8d8fbebd41f227a11aa3a6c2c0d8 (patch)
tree6462434b9b5b3259305de0f7c987b79bd070edf3 /include/libopencm3/stm32/can.h
parent192c2eacb7d2acb73b85d3f6149039c162f26461 (diff)
stm32: can: fix timestamp mask and shift amount.
Diffstat (limited to 'include/libopencm3/stm32/can.h')
-rw-r--r--include/libopencm3/stm32/can.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libopencm3/stm32/can.h b/include/libopencm3/stm32/can.h
index 5d09da67..0a015402 100644
--- a/include/libopencm3/stm32/can.h
+++ b/include/libopencm3/stm32/can.h
@@ -553,8 +553,8 @@ LGPL License Terms @ref lgpl_license
/* --- CAN_RDTxR values ----------------------------------------------------- */
/* TIME[15:0]: Message time stamp */
-#define CAN_RDTxR_TIME_MASK (0xFFFF << 15)
-#define CAN_RDTxR_TIME_SHIFT 15
+#define CAN_RDTxR_TIME_MASK (0xFFFF << 16)
+#define CAN_RDTxR_TIME_SHIFT 16
/* FMI[7:0]: Filter match index */
#define CAN_RDTxR_FMI_MASK (0xFF << 8)