Skip to content

Commit

Permalink
ESP32 does not have SYSTIMER, so don't try to test it :)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham committed Sep 6, 2024
1 parent f42d071 commit ab22e3f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions hil-test/tests/delay_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@
#![no_main]

use embedded_hal_async::delay::DelayNs;
use esp_hal::{
peripherals::Peripherals,
timer::{
systimer::{Alarm, FrozenUnit, SystemTimer},
timg::TimerGroup,
},
};
#[cfg(systimer)]
use esp_hal::timer::systimer::{Alarm, FrozenUnit, SystemTimer};
use esp_hal::{peripherals::Peripherals, timer::timg::TimerGroup};
use hil_test as _;

struct Context {
Expand Down Expand Up @@ -47,6 +43,7 @@ mod tests {
}
}

#[cfg(systimer)]
#[test]
#[timeout(2)]
async fn test_systimer_async_delay_ns(ctx: Context) {
Expand Down

0 comments on commit ab22e3f

Please sign in to comment.