Skip to content

Commit a63c4e6

Browse files
bump to the latest Embassy version
1 parent 0d8daa3 commit a63c4e6

File tree

4 files changed

+139
-183
lines changed

4 files changed

+139
-183
lines changed

Cargo.lock

Lines changed: 29 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ default-target = "x86_64-unknown-linux-gnu"
1818
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
1919
cortex-m-rt = "0.7.5"
2020
critical-section = { version = "1.1.3", optional = true }
21-
embassy-time-driver = { version = "0.1.0", optional = true }
22-
embassy-sync = { version = "0.6.0", optional = true }
21+
embassy-time-driver = { version = "0.2.1", optional = true }
22+
embassy-time-queue-utils = "0.3.0"
23+
embassy-sync = { version = "0.7.2", optional = true }
2324
embedded-dma = "0.2.0"
2425
embedded-hal = "1.0.0"
2526
embedded-hal-02 = { package = "embedded-hal", version = "0.2.7", features = [
@@ -35,12 +36,11 @@ void = { version = "1.0.2", default-features = false, optional = true }
3536
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
3637
cortex-m-rtic = "1.1.4"
3738
cortex-m-semihosting = "0.5.0"
38-
embassy-executor = { version = "0.6", features = [
39+
embassy-executor = { version = "0.9.1", features = [
3940
"arch-cortex-m",
4041
"executor-thread",
41-
"integrated-timers",
4242
] }
43-
embassy-time = { version = "0.3.2" }
43+
embassy-time = { version = "0.5.0" }
4444
panic-halt = "1.0.0"
4545
panic-itm = "0.4.2"
4646
panic-semihosting = "0.6.0"

examples/embassy.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@ use panic_halt as _;
77
use embassy_executor::{self, Spawner};
88
use embassy_time::Timer;
99
use embedded_hal::digital::OutputPin;
10-
use gd32f1x0_hal::{embassy, pac, prelude::*, time::MilliSeconds, watchdog::FreeWatchdog};
10+
use gd32f1x0_hal::{
11+
embassy,
12+
gpio::{Output, Pin, PushPull},
13+
pac,
14+
prelude::*,
15+
time::MilliSeconds,
16+
watchdog::FreeWatchdog,
17+
};
1118

1219
#[embassy_executor::task]
13-
async fn blink_task(mut led: impl OutputPin + 'static) {
20+
async fn blink_task(mut led: Pin<Output<PushPull>>) {
1421
loop {
1522
Timer::after_millis(1_000).await;
1623
led.set_high().unwrap();

0 commit comments

Comments
 (0)