diff options
| author | Timo Kröger <[email protected]> | 2022-02-28 22:42:45 +0100 |
|---|---|---|
| committer | Timo Kröger <[email protected]> | 2022-03-05 09:46:06 +0100 |
| commit | 4c305439385c7be79dc9997ae8b698a3487aa819 (patch) | |
| tree | b08aa00a31c553c00ae94cf642288a440aa42375 | |
| parent | 9ebf7eee6d4ec707699118b6bdc893ce9070ae5e (diff) | |
[can] Do not use wildcard reexport for bxcan
| -rw-r--r-- | embassy-stm32/src/can/bxcan.rs | 3 | ||||
| -rw-r--r-- | examples/stm32f4/src/bin/can.rs | 5 |
2 files changed, 4 insertions, 4 deletions
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; | |||
| 7 | use crate::gpio::sealed::AFType; | 7 | use crate::gpio::sealed::AFType; |
| 8 | use crate::{peripherals, rcc::RccPeripheral}; | 8 | use crate::{peripherals, rcc::RccPeripheral}; |
| 9 | 9 | ||
| 10 | #[doc(no_inline)] | 10 | pub use bxcan; |
| 11 | pub use bxcan::*; | ||
| 12 | 11 | ||
| 13 | pub struct Can<'d, T: Instance + bxcan::Instance> { | 12 | pub struct Can<'d, T: Instance + bxcan::Instance> { |
| 14 | phantom: PhantomData<&'d mut T>, | 13 | 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 @@ | |||
| 6 | mod example_common; | 6 | mod example_common; |
| 7 | 7 | ||
| 8 | use cortex_m_rt::entry; | 8 | use cortex_m_rt::entry; |
| 9 | use embassy_stm32::can::filter::Mask32; | 9 | use embassy_stm32::can::bxcan::filter::Mask32; |
| 10 | use embassy_stm32::can::{Can, Frame, StandardId}; | 10 | use embassy_stm32::can::bxcan::{Frame, StandardId}; |
| 11 | use embassy_stm32::can::Can; | ||
| 11 | use embassy_stm32::gpio::{Input, Pull}; | 12 | use embassy_stm32::gpio::{Input, Pull}; |
| 12 | use example_common::*; | 13 | use example_common::*; |
| 13 | 14 | ||
