Skip to content

Commit e322732

Browse files
committed
Add H7 dual core to common and run fmt
1 parent 3cd2081 commit e322732

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

examples/stm32wl/src/bin/blinky.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ use core::mem::MaybeUninit;
55

66
use defmt::*;
77
use embassy_executor::Spawner;
8-
use embassy_stm32::{
9-
gpio::{Level, Output, Speed},
10-
SharedData,
11-
};
8+
use embassy_stm32::gpio::{Level, Output, Speed};
9+
use embassy_stm32::SharedData;
1210
use embassy_time::Timer;
1311
use {defmt_rtt as _, panic_probe as _};
1412

examples/stm32wl/src/bin/button.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ use core::mem::MaybeUninit;
55

66
use cortex_m_rt::entry;
77
use defmt::*;
8-
use embassy_stm32::{
9-
gpio::{Input, Level, Output, Pull, Speed},
10-
SharedData,
11-
};
8+
use embassy_stm32::gpio::{Input, Level, Output, Pull, Speed};
9+
use embassy_stm32::SharedData;
1210
use {defmt_rtt as _, panic_probe as _};
1311

1412
#[link_section = ".shared_data"]

examples/stm32wl/src/bin/button_exti.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ use core::mem::MaybeUninit;
55

66
use defmt::*;
77
use embassy_executor::Spawner;
8+
use embassy_stm32::exti::ExtiInput;
89
use embassy_stm32::gpio::Pull;
9-
use embassy_stm32::{exti::ExtiInput, SharedData};
10+
use embassy_stm32::SharedData;
1011
use {defmt_rtt as _, panic_probe as _};
1112

1213
#[link_section = ".shared_data"]

examples/stm32wl/src/bin/flash.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ use core::mem::MaybeUninit;
55

66
use defmt::{info, unwrap};
77
use embassy_executor::Spawner;
8-
use embassy_stm32::{flash::Flash, SharedData};
8+
use embassy_stm32::flash::Flash;
9+
use embassy_stm32::SharedData;
910
use {defmt_rtt as _, panic_probe as _};
1011

1112
#[link_section = ".shared_data"]

tests/stm32/src/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,13 +707,13 @@ pub fn init() -> embassy_stm32::Peripherals {
707707

708708
#[allow(unused)]
709709
pub fn init_with_config(config: Config) -> embassy_stm32::Peripherals {
710-
#[cfg(feature = "stm32wl55jc")]
710+
#[cfg(any(feature = "stm32wl55jc", feature = "stm32h755zi"))]
711711
{
712712
// Not in shared memory, but we're not running the second core, so it's fine
713713
static SHARED_DATA: core::mem::MaybeUninit<embassy_stm32::SharedData> = core::mem::MaybeUninit::uninit();
714714
embassy_stm32::init_primary(config, &SHARED_DATA)
715715
}
716716

717-
#[cfg(not(feature = "stm32wl55jc"))]
717+
#[cfg(not(any(feature = "stm32wl55jc", feature = "stm32h755zi")))]
718718
embassy_stm32::init(config)
719719
}

0 commit comments

Comments
 (0)