aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/stm32l1/src/bin/a.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-01-22 20:12:36 +0100
committerDario Nieuwenhuis <[email protected]>2024-01-22 21:31:06 +0100
commit3387ee7238f1c9c4eeccb732ba543cbe38ab7ccd (patch)
tree0b2353dcc0c44c6415a1d765427b59318c6e3a63 /examples/boot/application/stm32l1/src/bin/a.rs
parent9f76dbb93b4ab5efc8a0d51b4507ab7eb144fcd9 (diff)
stm32/gpio: remove generics.
Diffstat (limited to 'examples/boot/application/stm32l1/src/bin/a.rs')
-rw-r--r--examples/boot/application/stm32l1/src/bin/a.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/boot/application/stm32l1/src/bin/a.rs b/examples/boot/application/stm32l1/src/bin/a.rs
index 02f74bdef..dbec49d44 100644
--- a/examples/boot/application/stm32l1/src/bin/a.rs
+++ b/examples/boot/application/stm32l1/src/bin/a.rs
@@ -8,7 +8,7 @@ use embassy_embedded_hal::adapter::BlockingAsync;
8use embassy_executor::Spawner; 8use embassy_executor::Spawner;
9use embassy_stm32::exti::ExtiInput; 9use embassy_stm32::exti::ExtiInput;
10use embassy_stm32::flash::{Flash, WRITE_SIZE}; 10use embassy_stm32::flash::{Flash, WRITE_SIZE};
11use embassy_stm32::gpio::{Input, Level, Output, Pull, Speed}; 11use embassy_stm32::gpio::{Level, Output, Pull, Speed};
12use embassy_sync::mutex::Mutex; 12use embassy_sync::mutex::Mutex;
13use embassy_time::Timer; 13use embassy_time::Timer;
14use panic_reset as _; 14use panic_reset as _;
@@ -24,8 +24,7 @@ async fn main(_spawner: Spawner) {
24 let flash = Flash::new_blocking(p.FLASH); 24 let flash = Flash::new_blocking(p.FLASH);
25 let flash = Mutex::new(BlockingAsync::new(flash)); 25 let flash = Mutex::new(BlockingAsync::new(flash));
26 26
27 let button = Input::new(p.PB2, Pull::Up); 27 let mut button = ExtiInput::new(p.PB2, p.EXTI2, Pull::Up);
28 let mut button = ExtiInput::new(button, p.EXTI2);
29 28
30 let mut led = Output::new(p.PB5, Level::Low, Speed::Low); 29 let mut led = Output::new(p.PB5, Level::Low, Speed::Low);
31 30