Merge pull request 'update some dependencies' (#78) from update-some-dependencies into main

Reviewed-on: #78
This commit was merged in pull request #78.
This commit is contained in:
2025-09-03 09:54:50 +02:00
2 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ cortex-m-rt = "0.7"
embedded-hal-async = "1" embedded-hal-async = "1"
embedded-io = "0.6" embedded-io = "0.6"
embedded-io-async = "0.6" embedded-io-async = "0.6"
heapless = "0.8" heapless = "0.9"
static_cell = "2" static_cell = "2"
defmt = "1" defmt = "1"
@@ -19,8 +19,8 @@ panic-probe = { version = "1", features = ["print-defmt"] }
critical-section = "1" critical-section = "1"
embassy-sync = "0.7" embassy-sync = "0.7"
embassy-time = "0.4" embassy-time = "0.5"
embassy-executor = { version = "0.7", features = [ embassy-executor = { version = "0.9", features = [
"arch-cortex-m", "arch-cortex-m",
"executor-thread", "executor-thread",
"executor-interrupt" "executor-interrupt"

View File

@@ -40,12 +40,12 @@ const SYSCLK_FREQ: Hertz = Hertz::from_raw(50_000_000);
static QUEUE_UART_A: static_cell::ConstStaticCell<Queue<u8, 256>> = static QUEUE_UART_A: static_cell::ConstStaticCell<Queue<u8, 256>> =
static_cell::ConstStaticCell::new(Queue::new()); static_cell::ConstStaticCell::new(Queue::new());
static PRODUCER_UART_A: Mutex<RefCell<Option<Producer<u8, 256>>>> = Mutex::new(RefCell::new(None)); static PRODUCER_UART_A: Mutex<RefCell<Option<Producer<u8>>>> = Mutex::new(RefCell::new(None));
static QUEUE_UART_B: static_cell::ConstStaticCell<Queue<u8, 256>> = static QUEUE_UART_B: static_cell::ConstStaticCell<Queue<u8, 256>> =
static_cell::ConstStaticCell::new(Queue::new()); static_cell::ConstStaticCell::new(Queue::new());
static PRODUCER_UART_B: Mutex<RefCell<Option<Producer<u8, 256>>>> = Mutex::new(RefCell::new(None)); static PRODUCER_UART_B: Mutex<RefCell<Option<Producer<u8>>>> = Mutex::new(RefCell::new(None));
static CONSUMER_UART_B: Mutex<RefCell<Option<Consumer<u8, 256>>>> = Mutex::new(RefCell::new(None)); static CONSUMER_UART_B: Mutex<RefCell<Option<Consumer<u8>>>> = Mutex::new(RefCell::new(None));
// main is itself an async function. // main is itself an async function.
#[embassy_executor::main] #[embassy_executor::main]
@@ -120,7 +120,7 @@ async fn main(spawner: Spawner) {
} }
#[embassy_executor::task] #[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]; let mut buf = [0u8; 256];
loop { loop {
defmt::info!("Current time UART B: {}", Instant::now().as_secs()); defmt::info!("Current time UART B: {}", Instant::now().as_secs());