diff options
| author | Dickless <[email protected]> | 2024-07-05 03:29:25 +0900 |
|---|---|---|
| committer | Dickless <[email protected]> | 2024-07-05 03:29:25 +0900 |
| commit | 4f649caa8155c5031592d74c2b5e94f400332a88 (patch) | |
| tree | 690d70aa04130417c262844984f89cc3b55d2bbb /examples | |
| parent | 49546abfec8dd8a9a610c82ec5ef11adba8b5f04 (diff) | |
cargo +nightly fmt
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32h7/src/bin/sai.rs | 4 |
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 | ||
| 6 | use defmt_rtt as _; | ||
| 7 | use embassy_executor::Spawner; | 6 | use embassy_executor::Spawner; |
| 8 | use embassy_stm32 as hal; | ||
| 9 | use grounded::uninit::GroundedArrayCell; | 7 | use grounded::uninit::GroundedArrayCell; |
| 10 | use hal::rcc::*; | 8 | use hal::rcc::*; |
| 11 | use hal::sai::*; | 9 | use hal::sai::*; |
| 12 | use hal::time::Hertz; | 10 | use hal::time::Hertz; |
| 13 | use panic_probe as _; | 11 | use {defmt_rtt as _, embassy_stm32 as hal, panic_probe as _}; |
| 14 | 12 | ||
| 15 | const BLOCK_LENGTH: usize = 32; // 32 samples | 13 | const BLOCK_LENGTH: usize = 32; // 32 samples |
| 16 | const HALF_DMA_BUFFER_LENGTH: usize = BLOCK_LENGTH * 2; // 2 channels | 14 | const HALF_DMA_BUFFER_LENGTH: usize = BLOCK_LENGTH * 2; // 2 channels |
