I tried to fork and run cargo build --features stm32l476 but got like 5 similar errors
error: assigning to `&T` is undefined behavior, consider using an `UnsafeCell`
--> src/spi.rs:271:34
|
271 | unsafe { ptr::write_volatile(&self.spi.dr as *const _ as *mut u8, byte) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I'm new to embedded rust so maybe I'm missing some steps before building. Any help appreciated thank you!!