mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-29 05:10:55 +00:00
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:
parent
a5be31fadc
commit
eb9bfd52b1
@ -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" }
|
||||
|
@ -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);
|
||||
|
@ -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"]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user