diff options
author | Karl Palsson <karlp@etactica.com> | 2017-05-08 13:49:04 +0300 |
---|---|---|
committer | Karl Palsson <karlp@etactica.com> | 2017-05-08 13:49:45 +0300 |
commit | 2f4f8ad85b88c3d37e038e32702ffd7197d1efc6 (patch) | |
tree | 6ad609fc025ff07e3735465c28436294d5b0bf66 /include/libopencm3/stm32/can.h | |
parent | a0a7f77d4cfc53dda01c6970b813a756826c3fc4 (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.h | 2 |
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 ------------------------------------------------------ */ |