diff options
| author | Dion Dokter <[email protected]> | 2024-08-05 15:13:11 +0200 |
|---|---|---|
| committer | Dion Dokter <[email protected]> | 2024-08-05 15:13:11 +0200 |
| commit | e322732fdba282f4150a186aed606b88714921fe (patch) | |
| tree | 3ca0da1c1ffaf6da9dd158479bf0d5bfa427d357 /tests/stm32 | |
| parent | 3cd20814501d03852a3c30facbd204dffcf048db (diff) | |
Add H7 dual core to common and run fmt
Diffstat (limited to 'tests/stm32')
| -rw-r--r-- | tests/stm32/src/common.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stm32/src/common.rs b/tests/stm32/src/common.rs index 649eac6f6..935a41ed2 100644 --- a/tests/stm32/src/common.rs +++ b/tests/stm32/src/common.rs | |||
| @@ -707,13 +707,13 @@ pub fn init() -> embassy_stm32::Peripherals { | |||
| 707 | 707 | ||
| 708 | #[allow(unused)] | 708 | #[allow(unused)] |
| 709 | pub fn init_with_config(config: Config) -> embassy_stm32::Peripherals { | 709 | pub fn init_with_config(config: Config) -> embassy_stm32::Peripherals { |
| 710 | #[cfg(feature = "stm32wl55jc")] | 710 | #[cfg(any(feature = "stm32wl55jc", feature = "stm32h755zi"))] |
| 711 | { | 711 | { |
| 712 | // Not in shared memory, but we're not running the second core, so it's fine | 712 | // Not in shared memory, but we're not running the second core, so it's fine |
| 713 | static SHARED_DATA: core::mem::MaybeUninit<embassy_stm32::SharedData> = core::mem::MaybeUninit::uninit(); | 713 | static SHARED_DATA: core::mem::MaybeUninit<embassy_stm32::SharedData> = core::mem::MaybeUninit::uninit(); |
| 714 | embassy_stm32::init_primary(config, &SHARED_DATA) | 714 | embassy_stm32::init_primary(config, &SHARED_DATA) |
| 715 | } | 715 | } |
| 716 | 716 | ||
| 717 | #[cfg(not(feature = "stm32wl55jc"))] | 717 | #[cfg(not(any(feature = "stm32wl55jc", feature = "stm32h755zi")))] |
| 718 | embassy_stm32::init(config) | 718 | embassy_stm32::init(config) |
| 719 | } | 719 | } |
