aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h7b0
diff options
context:
space:
mode:
authorHaobo Gu <[email protected]>2024-10-26 23:51:38 +0800
committerHaobo Gu <[email protected]>2024-10-26 23:51:38 +0800
commit3b5284d99d7054ac42e5d3e065fc1d27527f823a (patch)
tree0b902aa188c6dd3075f36d24d992082a29a82863 /examples/stm32h7b0
parent04c9130d326990dc92577f2ed4b2dc927efe2c13 (diff)
fix: fmt code
Signed-off-by: Haobo Gu <[email protected]>
Diffstat (limited to 'examples/stm32h7b0')
-rw-r--r--examples/stm32h7b0/src/bin/ospi_memory_mapped.rs17
1 files changed, 8 insertions, 9 deletions
diff --git a/examples/stm32h7b0/src/bin/ospi_memory_mapped.rs b/examples/stm32h7b0/src/bin/ospi_memory_mapped.rs
index e32a22e41..9c397e507 100644
--- a/examples/stm32h7b0/src/bin/ospi_memory_mapped.rs
+++ b/examples/stm32h7b0/src/bin/ospi_memory_mapped.rs
@@ -4,18 +4,17 @@
4// Tested on weact stm32h7b0 board + w25q64 spi flash 4// Tested on weact stm32h7b0 board + w25q64 spi flash
5 5
6use defmt::info; 6use defmt::info;
7use defmt_rtt as _;
8use embassy_executor::Spawner; 7use embassy_executor::Spawner;
9use embassy_stm32::{ 8use embassy_stm32::gpio::{Level, Output, Speed};
10 gpio::{Level, Output, Speed}, 9use embassy_stm32::mode::Blocking;
11 mode::Blocking, 10use embassy_stm32::ospi::{
12 ospi::{AddressSize, DummyCycles, Instance, Ospi, OspiWidth, TransferConfig}, 11 AddressSize, ChipSelectHighTime, DummyCycles, FIFOThresholdLevel, Instance, MemorySize, MemoryType, Ospi,
13 ospi::{ChipSelectHighTime, FIFOThresholdLevel, MemorySize, MemoryType, WrapSize}, 12 OspiWidth, TransferConfig, WrapSize,
14 time::Hertz,
15 Config,
16}; 13};
14use embassy_stm32::time::Hertz;
15use embassy_stm32::Config;
17use embassy_time::Timer; 16use embassy_time::Timer;
18use panic_probe as _; 17use {defmt_rtt as _, panic_probe as _};
19 18
20#[embassy_executor::main] 19#[embassy_executor::main]
21async fn main(_spawner: Spawner) { 20async fn main(_spawner: Spawner) {