Merge pull request #3424 from embassy-rs/update-rust2

Update to rust 1.82.
This commit is contained in:
Dario Nieuwenhuis 2024-10-17 23:11:23 +00:00 committed by GitHub
commit 3d0c557138
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) });