diff --git a/CHANGELOG.md b/CHANGELOG.md index baec06ab4..735d4099c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Changed + +- Added support for more CAN bit rates and modes. ([#186](https://github.com/stm32-rs/stm32f3xx-hal/pull/186) + ## [v0.6.1] - 2020-12-10 ### Changed diff --git a/src/can.rs b/src/can.rs index 8a01f5725..31d57080a 100644 --- a/src/can.rs +++ b/src/can.rs @@ -20,7 +20,7 @@ use crate::stm32; use nb::{self, Error}; use core::sync::atomic::{AtomicU8, Ordering}; -use stm32::can::btr::LBKM_A; +pub use stm32::can::btr::LBKM_A; const EXID_MASK: u32 = 0b1_1111_1111_1100_0000_0000_0000_0000; const MAX_EXTENDED_ID: u32 = 0x1FFF_FFFF; @@ -360,7 +360,7 @@ impl Can { _tx: tx, } } - /// Initialize the CAN Peripheral + /// Initialize the CAN Peripheral using default options from `CanOpts::default()` pub fn new( can: stm32::CAN, rx: gpioa::PA11,