mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
format
This commit is contained in:
parent
3e87dae578
commit
1c10339f47
@ -28,7 +28,7 @@ fn main() {
|
||||
// here, we ensure the build script is only re-run when
|
||||
// `memory.x` is changed.
|
||||
println!("cargo:rerun-if-changed=memory.x");
|
||||
|
||||
|
||||
println!("cargo:rustc-link-arg-bins=--nmagic");
|
||||
println!("cargo:rustc-link-arg-bins=-Tlink.x");
|
||||
println!("cargo:rustc-link-arg-bins=-Tdefmt.x");
|
||||
|
@ -22,7 +22,7 @@ static mut RAM_D3: [u8; 64 * 1024] = [0u8; 64 * 1024];
|
||||
async fn main_task(mut spi: spi::Spi<'static, peripherals::SPI6, Async>) {
|
||||
let read_buffer = unsafe { &mut RAM_D3[0..128] };
|
||||
let write_buffer = unsafe { &mut RAM_D3[128..256] };
|
||||
|
||||
|
||||
for n in 0u32.. {
|
||||
let mut write: String<128> = String::new();
|
||||
core::write!(&mut write, "Hello DMA World {}!\r\n", n).unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user