mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 00:02:28 +00:00
Add H7 dual core to common and run fmt
This commit is contained in:
parent
3cd2081450
commit
e322732fdb
@ -5,10 +5,8 @@ use core::mem::MaybeUninit;
|
||||
|
||||
use defmt::*;
|
||||
use embassy_executor::Spawner;
|
||||
use embassy_stm32::{
|
||||
gpio::{Level, Output, Speed},
|
||||
SharedData,
|
||||
};
|
||||
use embassy_stm32::gpio::{Level, Output, Speed};
|
||||
use embassy_stm32::SharedData;
|
||||
use embassy_time::Timer;
|
||||
use {defmt_rtt as _, panic_probe as _};
|
||||
|
||||
|
@ -5,10 +5,8 @@ use core::mem::MaybeUninit;
|
||||
|
||||
use cortex_m_rt::entry;
|
||||
use defmt::*;
|
||||
use embassy_stm32::{
|
||||
gpio::{Input, Level, Output, Pull, Speed},
|
||||
SharedData,
|
||||
};
|
||||
use embassy_stm32::gpio::{Input, Level, Output, Pull, Speed};
|
||||
use embassy_stm32::SharedData;
|
||||
use {defmt_rtt as _, panic_probe as _};
|
||||
|
||||
#[link_section = ".shared_data"]
|
||||
|
@ -5,8 +5,9 @@ use core::mem::MaybeUninit;
|
||||
|
||||
use defmt::*;
|
||||
use embassy_executor::Spawner;
|
||||
use embassy_stm32::exti::ExtiInput;
|
||||
use embassy_stm32::gpio::Pull;
|
||||
use embassy_stm32::{exti::ExtiInput, SharedData};
|
||||
use embassy_stm32::SharedData;
|
||||
use {defmt_rtt as _, panic_probe as _};
|
||||
|
||||
#[link_section = ".shared_data"]
|
||||
|
@ -5,7 +5,8 @@ use core::mem::MaybeUninit;
|
||||
|
||||
use defmt::{info, unwrap};
|
||||
use embassy_executor::Spawner;
|
||||
use embassy_stm32::{flash::Flash, SharedData};
|
||||
use embassy_stm32::flash::Flash;
|
||||
use embassy_stm32::SharedData;
|
||||
use {defmt_rtt as _, panic_probe as _};
|
||||
|
||||
#[link_section = ".shared_data"]
|
||||
|
@ -707,13 +707,13 @@ pub fn init() -> embassy_stm32::Peripherals {
|
||||
|
||||
#[allow(unused)]
|
||||
pub fn init_with_config(config: Config) -> embassy_stm32::Peripherals {
|
||||
#[cfg(feature = "stm32wl55jc")]
|
||||
#[cfg(any(feature = "stm32wl55jc", feature = "stm32h755zi"))]
|
||||
{
|
||||
// Not in shared memory, but we're not running the second core, so it's fine
|
||||
static SHARED_DATA: core::mem::MaybeUninit<embassy_stm32::SharedData> = core::mem::MaybeUninit::uninit();
|
||||
embassy_stm32::init_primary(config, &SHARED_DATA)
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "stm32wl55jc"))]
|
||||
#[cfg(not(any(feature = "stm32wl55jc", feature = "stm32h755zi")))]
|
||||
embassy_stm32::init(config)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user