Update to rust 1.82.

This commit is contained in:
Dario Nieuwenhuis 2024-10-18 00:31:42 +02:00
parent 0225c2a0f2
commit dcdc0638b6
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
[toolchain]
channel = "1.81"
channel = "1.82"
components = [ "rust-src", "rustfmt", "llvm-tools" ]
targets = [
"thumbv7em-none-eabi",

View File

@ -55,7 +55,7 @@ async fn main(_spawner: Spawner) {
let task = unsafe { Task::new_unchecked(NonNull::new_unchecked(&spam_peri.tasks_starttx as *const _ as _)) };
let mut spam_ppi = Ppi::new_one_to_one(p.PPI_CH2, event, task);
spam_ppi.enable();
let p = unsafe { core::ptr::addr_of_mut!(TX_BUF) } as *mut u8;
let p = (&raw mut TX_BUF) as *mut u8;
spam_peri.txd.ptr.write(|w| unsafe { w.ptr().bits(p as u32) });
spam_peri.txd.maxcnt.write(|w| unsafe { w.maxcnt().bits(NSPAM as _) });
spam_peri.tasks_starttx.write(|w| unsafe { w.bits(1) });