diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-03-05 17:00:59 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-05 17:00:59 +0000 |
| commit | 24b6478a7ced1e98165e4776894c439e86507763 (patch) | |
| tree | 96f694cb499b7ce5a566be452141d930797ca4b4 /examples | |
| parent | 9ebf7eee6d4ec707699118b6bdc893ce9070ae5e (diff) | |
| parent | 372b71890d658176bd78de752d92289538bbbbe3 (diff) | |
Merge #650
650: `bxcan` improvements r=Dirbaio a=timokroeger
* Do not use wildcard reexport for `bxcan`
* `cfgs` to fix `bxcan` implementation for devices with "CAN1" but no "CAN2" peripheral
Co-authored-by: Timo Kröger <[email protected]>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32f4/src/bin/can.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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 | ||
