diff --git a/embassy-stm32/src/can/bxcan.rs b/embassy-stm32/src/can/bxcan.rs index 34182206f..33a729ed5 100644 --- a/embassy-stm32/src/can/bxcan.rs +++ b/embassy-stm32/src/can/bxcan.rs @@ -7,8 +7,7 @@ use embassy_hal_common::unborrow; use crate::gpio::sealed::AFType; use crate::{peripherals, rcc::RccPeripheral}; -#[doc(no_inline)] -pub use bxcan::*; +pub use bxcan; pub struct Can<'d, T: Instance + bxcan::Instance> { phantom: PhantomData<&'d mut T>, diff --git a/examples/stm32f4/src/bin/can.rs b/examples/stm32f4/src/bin/can.rs index 4c575aa87..b36e41805 100644 --- a/examples/stm32f4/src/bin/can.rs +++ b/examples/stm32f4/src/bin/can.rs @@ -6,8 +6,9 @@ mod example_common; use cortex_m_rt::entry; -use embassy_stm32::can::filter::Mask32; -use embassy_stm32::can::{Can, Frame, StandardId}; +use embassy_stm32::can::bxcan::filter::Mask32; +use embassy_stm32::can::bxcan::{Frame, StandardId}; +use embassy_stm32::can::Can; use embassy_stm32::gpio::{Input, Pull}; use example_common::*;