Skip to content

Commit df70a91

Browse files
committed
Remove bxcan re-export
1 parent d7d56fa commit df70a91

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3636
To disable that behavior, set `default-features = false`. ([#283])
3737
- The MSRV was bumped to 1.52 ([#283])
3838
- Update `stm32f3` pac to v0.14.0 ([#282])
39+
- Remove the `bxcan` re-export. ([#303])
3940

4041
## [v0.8.1] - 2021-10-27
4142

examples/can.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use hal::pac;
1313
use hal::prelude::*;
1414
use hal::watchdog::IndependentWatchDog;
1515

16-
use hal::can::bxcan::filter::Mask32;
17-
use hal::can::bxcan::{Frame, StandardId};
16+
use bxcan::filter::Mask32;
17+
use bxcan::{Frame, StandardId};
1818
use hal::can::Can;
1919
use nb::block;
2020

src/can.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use crate::pac;
1717

1818
use crate::rcc::{Enable, Reset, APB1};
1919

20-
pub use bxcan;
2120
use bxcan::RegisterBlock;
2221

2322
use cfg_if::cfg_if;
@@ -55,12 +54,7 @@ where
5554
Tx: TxPin,
5655
Rx: RxPin,
5756
{
58-
/// Create a new CAN instance, using the specified TX and RX pins.
59-
///
60-
/// Note: this does not actually initialize the CAN bus.
61-
/// You will need to first call [`bxcan::Can::new`] and set the bus configuration and filters
62-
/// before the peripheral can be enabled.
63-
/// See the CAN example, for a more thorough example of the full setup process.
57+
/// Create a new `bxcan::CAN` instance.
6458
pub fn new(can: pac::CAN, tx: Tx, rx: Rx, apb1: &mut APB1) -> bxcan::Can<Self> {
6559
pac::CAN::enable(apb1);
6660
pac::CAN::reset(apb1);

0 commit comments

Comments
 (0)