|
8 | 8 | #![no_main] |
9 | 9 |
|
10 | 10 | use embassy_time::{Duration, Ticker, Timer}; |
11 | | -use esp_hal::{ |
12 | | - interrupt::software::SoftwareInterruptControl, |
13 | | - peripherals::Peripherals, |
14 | | - prelude::*, |
15 | | - timer::{timg::TimerGroup, ErasedTimer, OneShotTimer, PeriodicTimer}, |
16 | | -}; |
17 | 11 | #[cfg(not(feature = "esp32"))] |
18 | 12 | use esp_hal::{ |
| 13 | + interrupt::software::SoftwareInterruptControl, |
19 | 14 | interrupt::Priority, |
20 | 15 | timer::systimer::{Alarm, FrozenUnit, Periodic, SystemTimer, Target}, |
| 16 | + timer::ErasedTimer, |
| 17 | +}; |
| 18 | +use esp_hal::{ |
| 19 | + peripherals::Peripherals, |
| 20 | + prelude::*, |
| 21 | + timer::{timg::TimerGroup, OneShotTimer, PeriodicTimer}, |
21 | 22 | }; |
22 | 23 | #[cfg(not(feature = "esp32"))] |
23 | 24 | use esp_hal_embassy::InterruptExecutor; |
24 | 25 | use hil_test as _; |
25 | 26 |
|
| 27 | +#[cfg(not(feature = "esp32"))] |
26 | 28 | macro_rules! mk_static { |
27 | 29 | ($t:ty,$val:expr) => {{ |
28 | 30 | static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new(); |
@@ -123,7 +125,9 @@ fn set_up_embassy_with_systimer(peripherals: Peripherals) { |
123 | 125 | #[embedded_test::tests(executor = esp_hal_embassy::Executor::new())] |
124 | 126 | mod test { |
125 | 127 | use super::*; |
126 | | - use crate::{test_cases::*, test_helpers::*}; |
| 128 | + use crate::test_cases::*; |
| 129 | + #[cfg(not(feature = "esp32"))] |
| 130 | + use crate::test_helpers::*; |
127 | 131 |
|
128 | 132 | #[init] |
129 | 133 | fn init() -> Peripherals { |
|
0 commit comments