aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h723
diff options
context:
space:
mode:
authormelvdl <[email protected]>2025-06-27 02:28:54 +0200
committermelvdl <[email protected]>2025-06-27 02:28:54 +0200
commit686bdae937c26a006ee79b89931a6966141066dd (patch)
treefa72619d18e5cba885d3c83ee7edb6d9105ed265 /examples/stm32h723
parent688cac02716cf9122f82c315baa0a5e68265bb78 (diff)
stm32h723: remove unused mut from static buffers in spdifrx example
Diffstat (limited to 'examples/stm32h723')
-rw-r--r--examples/stm32h723/src/bin/spdifrx.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32h723/src/bin/spdifrx.rs b/examples/stm32h723/src/bin/spdifrx.rs
index 61e77249d..6d29e8a4d 100644
--- a/examples/stm32h723/src/bin/spdifrx.rs
+++ b/examples/stm32h723/src/bin/spdifrx.rs
@@ -25,10 +25,10 @@ const DMA_BUFFER_LENGTH: usize = HALF_DMA_BUFFER_LENGTH * 2; // 2 half-blocks
25 25
26// DMA buffers must be in special regions. Refer https://embassy.dev/book/#_stm32_bdma_only_working_out_of_some_ram_regions 26// DMA buffers must be in special regions. Refer https://embassy.dev/book/#_stm32_bdma_only_working_out_of_some_ram_regions
27#[unsafe(link_section = ".sram1")] 27#[unsafe(link_section = ".sram1")]
28static mut SPDIFRX_BUFFER: GroundedArrayCell<u32, DMA_BUFFER_LENGTH> = GroundedArrayCell::uninit(); 28static SPDIFRX_BUFFER: GroundedArrayCell<u32, DMA_BUFFER_LENGTH> = GroundedArrayCell::uninit();
29 29
30#[unsafe(link_section = ".sram4")] 30#[unsafe(link_section = ".sram4")]
31static mut SAI_BUFFER: GroundedArrayCell<u32, DMA_BUFFER_LENGTH> = GroundedArrayCell::uninit(); 31static SAI_BUFFER: GroundedArrayCell<u32, DMA_BUFFER_LENGTH> = GroundedArrayCell::uninit();
32 32
33#[embassy_executor::main] 33#[embassy_executor::main]
34async fn main(_spawner: Spawner) { 34async fn main(_spawner: Spawner) {