stm32/gpio: remove generics.

This commit is contained in:
Dario Nieuwenhuis
2024-01-22 20:12:36 +01:00
parent 9f76dbb93b
commit 3387ee7238
29 changed files with 144 additions and 215 deletions

View File

@@ -4,7 +4,7 @@
use defmt::*;
use embassy_executor::Spawner;
use embassy_stm32::exti::ExtiInput;
use embassy_stm32::gpio::{Input, Pull};
use embassy_stm32::gpio::Pull;
use {defmt_rtt as _, panic_probe as _};
#[embassy_executor::main]
@@ -12,8 +12,7 @@ async fn main(_spawner: Spawner) {
let p = embassy_stm32::init(Default::default());
info!("Hello World!");
let button = Input::new(p.PA0, Pull::Up);
let mut button = ExtiInput::new(button, p.EXTI0);
let mut button = ExtiInput::new(p.PA0, p.EXTI0, Pull::Up);
info!("Press the USER button...");