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:
authorKarl Palsson <karlp@etactica.com>2017-05-08 13:49:04 +0300
committerKarl Palsson <karlp@etactica.com>2017-05-08 13:49:45 +0300
commit2f4f8ad85b88c3d37e038e32702ffd7197d1efc6 (patch)
tree6ad609fc025ff07e3735465c28436294d5b0bf66 /include/libopencm3/stm32/can.h
parenta0a7f77d4cfc53dda01c6970b813a756826c3fc4 (diff)
stm32: can: BTR baud rate prescaler is a 10 bit field
Reported on the mailing list, verified in RM0090 and RM008
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 62db1f36..5d09da67 100644
--- a/include/libopencm3/stm32/can.h
+++ b/include/libopencm3/stm32/can.h
@@ -480,7 +480,7 @@ LGPL License Terms @ref lgpl_license
/* 15:10 Reserved, forced by hardware to 0 */
/* BRP[9:0]: Baud rate prescaler */
-#define CAN_BTR_BRP_MASK (0x1FFUL << 0)
+#define CAN_BTR_BRP_MASK (0x3FFUL << 0)
/* --- CAN_TIxR values ------------------------------------------------------ */