aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h7
diff options
context:
space:
mode:
authorPegasis <[email protected]>2024-05-03 08:17:29 -0400
committerPegasis <[email protected]>2024-05-03 08:17:29 -0400
commit1c10339f4791b5ec6e2d41da79315fcb853b5529 (patch)
tree7e9a05a7d8dd838bff5b3774c7f8719644e25ed6 /examples/stm32h7
parent3e87dae578969874d354c538d8c59e7be491933d (diff)
format
Diffstat (limited to 'examples/stm32h7')
-rw-r--r--examples/stm32h7/build.rs2
-rw-r--r--examples/stm32h7/src/bin/spi_bdma.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32h7/build.rs b/examples/stm32h7/build.rs
index b9bb661f0..30691aa97 100644
--- a/examples/stm32h7/build.rs
+++ b/examples/stm32h7/build.rs
@@ -28,7 +28,7 @@ fn main() {
28 // here, we ensure the build script is only re-run when 28 // here, we ensure the build script is only re-run when
29 // `memory.x` is changed. 29 // `memory.x` is changed.
30 println!("cargo:rerun-if-changed=memory.x"); 30 println!("cargo:rerun-if-changed=memory.x");
31 31
32 println!("cargo:rustc-link-arg-bins=--nmagic"); 32 println!("cargo:rustc-link-arg-bins=--nmagic");
33 println!("cargo:rustc-link-arg-bins=-Tlink.x"); 33 println!("cargo:rustc-link-arg-bins=-Tlink.x");
34 println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); 34 println!("cargo:rustc-link-arg-bins=-Tdefmt.x");
diff --git a/examples/stm32h7/src/bin/spi_bdma.rs b/examples/stm32h7/src/bin/spi_bdma.rs
index 2fc37fc22..f968df4a7 100644
--- a/examples/stm32h7/src/bin/spi_bdma.rs
+++ b/examples/stm32h7/src/bin/spi_bdma.rs
@@ -22,7 +22,7 @@ static mut RAM_D3: [u8; 64 * 1024] = [0u8; 64 * 1024];
22async fn main_task(mut spi: spi::Spi<'static, peripherals::SPI6, Async>) { 22async fn main_task(mut spi: spi::Spi<'static, peripherals::SPI6, Async>) {
23 let read_buffer = unsafe { &mut RAM_D3[0..128] }; 23 let read_buffer = unsafe { &mut RAM_D3[0..128] };
24 let write_buffer = unsafe { &mut RAM_D3[128..256] }; 24 let write_buffer = unsafe { &mut RAM_D3[128..256] };
25 25
26 for n in 0u32.. { 26 for n in 0u32.. {
27 let mut write: String<128> = String::new(); 27 let mut write: String<128> = String::new();
28 core::write!(&mut write, "Hello DMA World {}!\r\n", n).unwrap(); 28 core::write!(&mut write, "Hello DMA World {}!\r\n", n).unwrap();