Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Aug 16, 2024
1 parent 539fdc8 commit 9fa18ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
5 changes: 1 addition & 4 deletions esp-wifi/src/timer/riscv.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use core::cell::RefCell;

use critical_section::Mutex;
use esp_hal::{
interrupt::InterruptHandler,
timer::{ErasedTimer, PeriodicTimer},
};
use esp_hal::interrupt::InterruptHandler;
#[cfg(any(feature = "esp32c6", feature = "esp32h2"))]
use peripherals::INTPRI as SystemPeripheral;
#[cfg(not(any(feature = "esp32c6", feature = "esp32h2")))]
Expand Down
12 changes: 1 addition & 11 deletions examples/src/bin/embassy_touch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,11 @@ use esp_hal::{
peripherals::Peripherals,
rtc_cntl::Rtc,
system::SystemControl,
timer::{timg::TimerGroup, ErasedTimer, OneShotTimer},
timer::timg::TimerGroup,
touch::{Touch, TouchConfig, TouchPad},
};
use esp_println::println;

// When you are okay with using a nightly compiler it's better to use https://docs.rs/static_cell/2.1.0/static_cell/macro.make_static.html
macro_rules! mk_static {
($t:ty,$val:expr) => {{
static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new();
#[deny(unused_attributes)]
let x = STATIC_CELL.uninit().write(($val));
x
}};
}

#[esp_hal_embassy::main]
async fn main(_spawner: Spawner) {
esp_println::logger::init_logger_from_env();
Expand Down

0 comments on commit 9fa18ab

Please sign in to comment.