diff options
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 |
