Fix clippy warning in esp-wifi, remove Cargo patch and update semihosting dependency (#1778)

* Update `semihosting` dependency and remove Cargo patch

* Fix clippy error in `esp-wifi`
This commit is contained in:
Jesse Braham 2024-07-09 16:50:09 +00:00 committed by GitHub
parent a5be31fadc
commit eb9bfd52b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 8 deletions

View File

@ -14,7 +14,7 @@ features = ["esp32c3", "panic-handler", "exception-handler", "println", "e
[dependencies]
defmt = { version = "0.3.8", optional = true }
esp-println = { version = "0.9.1", optional = true, default-features = false, path = "../esp-println" }
semihosting = { version = "0.1.10", optional = true }
semihosting = { version = "0.1.12", optional = true }
[build-dependencies]
esp-build = { version = "0.1.0", path = "../esp-build" }

View File

@ -32,10 +32,8 @@ pub fn setup_timer(mut alarm0: TimeBase) -> Result<(), esp_hal::timer::Error> {
// make sure the scheduling won't start before everything is setup
riscv::interrupt::disable();
alarm0.set_interrupt_handler(InterruptHandler::new(
unsafe { core::mem::transmute(handler as *const ()) },
interrupt::Priority::Priority1,
));
let cb: extern "C" fn() = unsafe { core::mem::transmute(handler as *const ()) };
alarm0.set_interrupt_handler(InterruptHandler::new(cb, interrupt::Priority::Priority1));
alarm0.start(TIMESLICE_FREQUENCY.into_duration())?;
critical_section::with(|cs| {
alarm0.enable_interrupt(true);

View File

@ -119,9 +119,6 @@ nb = "1.1.0"
p192 = { version = "0.13.0", default-features = false, features = ["arithmetic"] }
p256 = { version = "0.13.2", default-features = false, features = ["arithmetic"] }
[patch.crates-io]
semihosting = { git = "https://github.com/taiki-e/semihosting", tag = "v0.1.10" }
[features]
default = ["async", "embassy"]