diff options
| author | WillaWillNot <[email protected]> | 2025-11-21 20:35:54 -0500 |
|---|---|---|
| committer | WillaWillNot <[email protected]> | 2025-11-21 20:44:07 -0500 |
| commit | 54d57bc72f0e2b3eef0fa92d0b730ed6efd7bcaa (patch) | |
| tree | 9e70765685114955ce4043a65acb0c09c022aec9 /examples/boot/application/stm32l1/src/bin | |
| parent | a5f7764eb4f01a0668cbd3b534cde486b97f5ba4 (diff) | |
Fixed broken examples/formatting reported by CI
Diffstat (limited to 'examples/boot/application/stm32l1/src/bin')
| -rw-r--r-- | examples/boot/application/stm32l1/src/bin/a.rs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/examples/boot/application/stm32l1/src/bin/a.rs b/examples/boot/application/stm32l1/src/bin/a.rs index 16f280776..b5432eb91 100644 --- a/examples/boot/application/stm32l1/src/bin/a.rs +++ b/examples/boot/application/stm32l1/src/bin/a.rs | |||
| @@ -6,11 +6,10 @@ use defmt_rtt::*; | |||
| 6 | use embassy_boot_stm32::{AlignedBuffer, FirmwareUpdater, FirmwareUpdaterConfig}; | 6 | use embassy_boot_stm32::{AlignedBuffer, FirmwareUpdater, FirmwareUpdaterConfig}; |
| 7 | use embassy_embedded_hal::adapter::BlockingAsync; | 7 | use embassy_embedded_hal::adapter::BlockingAsync; |
| 8 | use embassy_executor::Spawner; | 8 | use embassy_executor::Spawner; |
| 9 | use embassy_stm32::bind_interrupts; | ||
| 10 | use embassy_stm32::exti::{self, ExtiInput}; | 9 | use embassy_stm32::exti::{self, ExtiInput}; |
| 11 | use embassy_stm32::flash::{Flash, WRITE_SIZE}; | 10 | use embassy_stm32::flash::{Flash, WRITE_SIZE}; |
| 12 | use embassy_stm32::gpio::{Level, Output, Pull, Speed}; | 11 | use embassy_stm32::gpio::{Level, Output, Pull, Speed}; |
| 13 | use embassy_stm32::interrupt; | 12 | use embassy_stm32::{bind_interrupts, interrupt}; |
| 14 | use embassy_sync::mutex::Mutex; | 13 | use embassy_sync::mutex::Mutex; |
| 15 | use embassy_time::Timer; | 14 | use embassy_time::Timer; |
| 16 | use panic_reset as _; | 15 | use panic_reset as _; |
| @@ -31,15 +30,15 @@ async fn main(_spawner: Spawner) { | |||
| 31 | let flash = Flash::new_blocking(p.FLASH); | 30 | let flash = Flash::new_blocking(p.FLASH); |
| 32 | let flash = Mutex::new(BlockingAsync::new(flash)); | 31 | let flash = Mutex::new(BlockingAsync::new(flash)); |
| 33 | 32 | ||
| 34 | let mut button = ExtiInput::new(p.PB2, p.EXTI2, Pull::Up); | 33 | let mut button = ExtiInput::new( |
| 35 | 34 | p.PB2, | |
| 36 | let mut led = Output::new( | 35 | p.EXTI2, |
| 37 | p.PB5, | 36 | Pull::Up, |
| 38 | Level::Low, | ||
| 39 | Speed::Low, | ||
| 40 | Irqs::as_any::<interrupt::typelevel::EXTI2, exti::InterruptHandler<interrupt::typelevel::EXTI2>>(), | 37 | Irqs::as_any::<interrupt::typelevel::EXTI2, exti::InterruptHandler<interrupt::typelevel::EXTI2>>(), |
| 41 | ); | 38 | ); |
| 42 | 39 | ||
| 40 | let mut led = Output::new(p.PB5, Level::Low, Speed::Low); | ||
| 41 | |||
| 43 | led.set_high(); | 42 | led.set_high(); |
| 44 | 43 | ||
| 45 | let config = FirmwareUpdaterConfig::from_linkerfile(&flash, &flash); | 44 | let config = FirmwareUpdaterConfig::from_linkerfile(&flash, &flash); |
