diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-08-17 20:27:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-17 20:27:42 +0000 |
commit | 1c5b54a4823d596db730eb476c3ab78110557214 (patch) | |
tree | 1d22c32eae26435677df89083d71f50fc298a09f /examples/stm32wl/src/bin/flash.rs | |
parent | d881f3ad9186cf3279aa1ba27093bad94035c186 (diff) | |
parent | 2e85eaf7d5f4dcf6d84f426542b8ec87aa51c429 (diff) | |
download | embassy-1c5b54a4823d596db730eb476c3ab78110557214.zip |
Merge #908
908: Remove HAL initialization from #[embassy_executor::main] macro. r=Dirbaio a=Dirbaio
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
Diffstat (limited to 'examples/stm32wl/src/bin/flash.rs')
-rw-r--r-- | examples/stm32wl/src/bin/flash.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32wl/src/bin/flash.rs b/examples/stm32wl/src/bin/flash.rs index 46183b8a..3c4da1e9 100644 --- a/examples/stm32wl/src/bin/flash.rs +++ b/examples/stm32wl/src/bin/flash.rs @@ -5,12 +5,12 @@ use defmt::{info, unwrap}; use embassy_executor::executor::Spawner; use embassy_stm32::flash::Flash; -use embassy_stm32::Peripherals; use embedded_storage::nor_flash::{NorFlash, ReadNorFlash}; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] -async fn main(_spawner: Spawner, p: Peripherals) { +async fn main(_spawner: Spawner) { + let p = embassy_stm32::init(Default::default()); info!("Hello Flash!"); const ADDR: u32 = 0x36000; |