aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDickless <[email protected]>2024-07-05 03:29:25 +0900
committerDickless <[email protected]>2024-07-05 03:29:25 +0900
commit4f649caa8155c5031592d74c2b5e94f400332a88 (patch)
tree690d70aa04130417c262844984f89cc3b55d2bbb /examples
parent49546abfec8dd8a9a610c82ec5ef11adba8b5f04 (diff)
cargo +nightly fmt
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32h7/src/bin/sai.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/stm32h7/src/bin/sai.rs b/examples/stm32h7/src/bin/sai.rs
index 7f57c4949..f6735e235 100644
--- a/examples/stm32h7/src/bin/sai.rs
+++ b/examples/stm32h7/src/bin/sai.rs
@@ -3,14 +3,12 @@
3#![no_std] 3#![no_std]
4#![no_main] 4#![no_main]
5 5
6use defmt_rtt as _;
7use embassy_executor::Spawner; 6use embassy_executor::Spawner;
8use embassy_stm32 as hal;
9use grounded::uninit::GroundedArrayCell; 7use grounded::uninit::GroundedArrayCell;
10use hal::rcc::*; 8use hal::rcc::*;
11use hal::sai::*; 9use hal::sai::*;
12use hal::time::Hertz; 10use hal::time::Hertz;
13use panic_probe as _; 11use {defmt_rtt as _, embassy_stm32 as hal, panic_probe as _};
14 12
15const BLOCK_LENGTH: usize = 32; // 32 samples 13const BLOCK_LENGTH: usize = 32; // 32 samples
16const HALF_DMA_BUFFER_LENGTH: usize = BLOCK_LENGTH * 2; // 2 channels 14const HALF_DMA_BUFFER_LENGTH: usize = BLOCK_LENGTH * 2; // 2 channels