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 embassy_stm32::Config;
use {defmt_rtt as _, panic_probe as _};
@@ -13,8 +13,7 @@ async fn main(_spawner: Spawner) {
let config = Config::default();
let p = embassy_stm32::init(config);
let button = Input::new(p.PB2, Pull::Up);
let mut button = ExtiInput::new(button, p.EXTI2);
let mut button = ExtiInput::new(p.PB2, p.EXTI2, Pull::Up);
info!("Press the USER button...");