Skip to content

Commit f29f86e

Browse files
committed
Async example Cargo.toml update
1 parent 8ff0d5f commit f29f86e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hifive1-async-examples/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "hifive1-async-examples"
33
version = "0.1.0"
4-
edition = "2024"
4+
edition = "2021"
55

66
[dependencies]
7-
embassy-executor = { version = "0.7.0", features = ["arch-riscv32", "executor-thread"] } #embassy executor for async tasks
7+
embassy-executor = { version = "0.9.1", features = ["arch-riscv32", "executor-thread"] } #embassy executor for async tasks
88
hifive1 = { path = "../hifive1", version = "0.13.0", features = ["board-hifive1-revb", "async"] } # Change to your boardW
99
riscv = { workspace = true }
1010
riscv-rt = { workspace = true, features = [] }

hifive1-async-examples/examples/button_led.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use embassy_executor::Spawner;
99
use hifive1::{
1010
clock,
11-
hal::{DeviceResources, asynch::prelude::*, gpio::EventType, prelude::*},
11+
hal::{asynch::prelude::*, gpio::EventType, prelude::*, DeviceResources},
1212
sprintln,
1313
};
1414
extern crate panic_halt;

0 commit comments

Comments
 (0)