mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 14:44:42 +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]
|
[dependencies]
|
||||||
defmt = { version = "0.3.8", optional = true }
|
defmt = { version = "0.3.8", optional = true }
|
||||||
esp-println = { version = "0.9.1", optional = true, default-features = false, path = "../esp-println" }
|
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]
|
[build-dependencies]
|
||||||
esp-build = { version = "0.1.0", path = "../esp-build" }
|
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
|
// make sure the scheduling won't start before everything is setup
|
||||||
riscv::interrupt::disable();
|
riscv::interrupt::disable();
|
||||||
|
|
||||||
alarm0.set_interrupt_handler(InterruptHandler::new(
|
let cb: extern "C" fn() = unsafe { core::mem::transmute(handler as *const ()) };
|
||||||
unsafe { core::mem::transmute(handler as *const ()) },
|
alarm0.set_interrupt_handler(InterruptHandler::new(cb, interrupt::Priority::Priority1));
|
||||||
interrupt::Priority::Priority1,
|
|
||||||
));
|
|
||||||
alarm0.start(TIMESLICE_FREQUENCY.into_duration())?;
|
alarm0.start(TIMESLICE_FREQUENCY.into_duration())?;
|
||||||
critical_section::with(|cs| {
|
critical_section::with(|cs| {
|
||||||
alarm0.enable_interrupt(true);
|
alarm0.enable_interrupt(true);
|
||||||
|
@ -119,9 +119,6 @@ nb = "1.1.0"
|
|||||||
p192 = { version = "0.13.0", default-features = false, features = ["arithmetic"] }
|
p192 = { version = "0.13.0", default-features = false, features = ["arithmetic"] }
|
||||||
p256 = { version = "0.13.2", 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]
|
[features]
|
||||||
default = ["async", "embassy"]
|
default = ["async", "embassy"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user