From e12fc9c3197de8ece991b0d5644723340485197a Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 3 Sep 2025 09:53:28 +0200 Subject: [PATCH] update some dependencies --- examples/embassy/Cargo.toml | 6 +++--- examples/embassy/src/bin/async-uart-rx.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/embassy/Cargo.toml b/examples/embassy/Cargo.toml index caa12b7..72f9710 100644 --- a/examples/embassy/Cargo.toml +++ b/examples/embassy/Cargo.toml @@ -9,7 +9,7 @@ cortex-m-rt = "0.7" embedded-hal-async = "1" embedded-io = "0.6" embedded-io-async = "0.6" -heapless = "0.8" +heapless = "0.9" static_cell = "2" defmt = "1" @@ -19,8 +19,8 @@ panic-probe = { version = "1", features = ["print-defmt"] } critical-section = "1" embassy-sync = "0.7" -embassy-time = "0.4" -embassy-executor = { version = "0.7", features = [ +embassy-time = "0.5" +embassy-executor = { version = "0.9", features = [ "arch-cortex-m", "executor-thread", "executor-interrupt" diff --git a/examples/embassy/src/bin/async-uart-rx.rs b/examples/embassy/src/bin/async-uart-rx.rs index c6d03d5..5839a20 100644 --- a/examples/embassy/src/bin/async-uart-rx.rs +++ b/examples/embassy/src/bin/async-uart-rx.rs @@ -40,12 +40,12 @@ const SYSCLK_FREQ: Hertz = Hertz::from_raw(50_000_000); static QUEUE_UART_A: static_cell::ConstStaticCell> = static_cell::ConstStaticCell::new(Queue::new()); -static PRODUCER_UART_A: Mutex>>> = Mutex::new(RefCell::new(None)); +static PRODUCER_UART_A: Mutex>>> = Mutex::new(RefCell::new(None)); static QUEUE_UART_B: static_cell::ConstStaticCell> = static_cell::ConstStaticCell::new(Queue::new()); -static PRODUCER_UART_B: Mutex>>> = Mutex::new(RefCell::new(None)); -static CONSUMER_UART_B: Mutex>>> = Mutex::new(RefCell::new(None)); +static PRODUCER_UART_B: Mutex>>> = Mutex::new(RefCell::new(None)); +static CONSUMER_UART_B: Mutex>>> = Mutex::new(RefCell::new(None)); // main is itself an async function. #[embassy_executor::main] @@ -120,7 +120,7 @@ async fn main(spawner: Spawner) { } #[embassy_executor::task] -async fn uart_b_task(mut async_rx: RxAsyncOverwriting<256>, mut tx: Tx) { +async fn uart_b_task(mut async_rx: RxAsyncOverwriting, mut tx: Tx) { let mut buf = [0u8; 256]; loop { defmt::info!("Current time UART B: {}", Instant::now().as_secs()); -- 2.43.0