Closed CodingInGreen closed 3 weeks ago
Issue - does not live long enough:
descriptors rx_descriptors spi
Possible solutions for further research:
static mut -- will be deprecated in Rust 2024 Edition (not good) StaticCell Arc<Mutex>> embassy_sync::Mutex Global Allocator (ALLOC) Atomics (supported by portable-atomics for targets without atomic architecture)
This ended up being an interesting issue that caused some minor problems, resolved now though:
https://github.com/rust-lang/rust/issues/96572
Issue - does not live long enough:
descriptors rx_descriptors spi
Possible solutions for further research:
static mut -- will be deprecated in Rust 2024 Edition (not good) StaticCell Arc<Mutex