diff options
| author | xoviat <[email protected]> | 2023-06-19 16:11:01 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-06-19 16:11:01 -0500 |
| commit | 5a075acc6a91f9eb05d065ee31551a4695cc4cdf (patch) | |
| tree | c4c32ed4a1c98393b85479811e263946fddbf4b8 /tests | |
| parent | 09982214788def209316ef70cae08eead964e206 (diff) | |
stm32/tests: fix can
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/stm32/src/bin/can.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/stm32/src/bin/can.rs b/tests/stm32/src/bin/can.rs index f39f83e82..33d63d546 100644 --- a/tests/stm32/src/bin/can.rs +++ b/tests/stm32/src/bin/can.rs | |||
| @@ -4,8 +4,9 @@ | |||
| 4 | 4 | ||
| 5 | // required-features: can | 5 | // required-features: can |
| 6 | 6 | ||
| 7 | #[path = "../example_common.rs"] | 7 | #[path = "../common.rs"] |
| 8 | mod example_common; | 8 | mod common; |
| 9 | use common::*; | ||
| 9 | use embassy_executor::Spawner; | 10 | use embassy_executor::Spawner; |
| 10 | use embassy_stm32::bind_interrupts; | 11 | use embassy_stm32::bind_interrupts; |
| 11 | use embassy_stm32::can::bxcan::filter::Mask32; | 12 | use embassy_stm32::can::bxcan::filter::Mask32; |
| @@ -13,7 +14,6 @@ use embassy_stm32::can::bxcan::{Fifo, Frame, StandardId}; | |||
| 13 | use embassy_stm32::can::{Can, Rx0InterruptHandler, Rx1InterruptHandler, SceInterruptHandler, TxInterruptHandler}; | 14 | use embassy_stm32::can::{Can, Rx0InterruptHandler, Rx1InterruptHandler, SceInterruptHandler, TxInterruptHandler}; |
| 14 | use embassy_stm32::gpio::{Input, Pull}; | 15 | use embassy_stm32::gpio::{Input, Pull}; |
| 15 | use embassy_stm32::peripherals::CAN1; | 16 | use embassy_stm32::peripherals::CAN1; |
| 16 | use example_common::*; | ||
| 17 | use {defmt_rtt as _, panic_probe as _}; | 17 | use {defmt_rtt as _, panic_probe as _}; |
| 18 | 18 | ||
| 19 | bind_interrupts!(struct Irqs { | 19 | bind_interrupts!(struct Irqs { |
