diff --git a/embassy-stm32-examples/src/bin/blinky.rs b/embassy-stm32-examples/src/bin/blinky.rs index 5b46be14b..7590764d8 100644 --- a/embassy-stm32-examples/src/bin/blinky.rs +++ b/embassy-stm32-examples/src/bin/blinky.rs @@ -38,7 +38,7 @@ fn main() -> ! { w }); - let (p, _) = embassy_stm32::init(Default::default()); + let p = embassy_stm32::init(Default::default()); let mut led = Output::new(p.PB7, Level::High); diff --git a/embassy-stm32-examples/src/bin/button.rs b/embassy-stm32-examples/src/bin/button.rs index db67b13c3..1ee99f527 100644 --- a/embassy-stm32-examples/src/bin/button.rs +++ b/embassy-stm32-examples/src/bin/button.rs @@ -38,7 +38,7 @@ fn main() -> ! { w }); - let (p, _) = embassy_stm32::init(Default::default()); + let p = embassy_stm32::init(Default::default()); let button = Input::new(p.PC13, Pull::Down); let mut led1 = Output::new(p.PB0, Level::High); diff --git a/embassy-stm32-examples/src/bin/button_exti.rs b/embassy-stm32-examples/src/bin/button_exti.rs index 8276f1c4f..8fc889dad 100644 --- a/embassy-stm32-examples/src/bin/button_exti.rs +++ b/embassy-stm32-examples/src/bin/button_exti.rs @@ -21,7 +21,7 @@ use stm32f4::stm32f429 as pac; #[embassy::task] async fn main_task() { - let (p, _) = embassy_stm32::init(Default::default()); + let p = embassy_stm32::init(Default::default()); let button = Input::new(p.PC13, Pull::Down); let mut button = ExtiInput::new(button, p.EXTI13); diff --git a/embassy-stm32-examples/src/bin/spi.rs b/embassy-stm32-examples/src/bin/spi.rs index 5fd37beaf..af0d57412 100644 --- a/embassy-stm32-examples/src/bin/spi.rs +++ b/embassy-stm32-examples/src/bin/spi.rs @@ -47,7 +47,7 @@ fn main() -> ! { w }); - let (p, _) = embassy_stm32::init(Default::default()); + let p = embassy_stm32::init(Default::default()); let mut spi = Spi::new( Hertz(16_000_000), diff --git a/embassy-stm32-examples/src/bin/usart.rs b/embassy-stm32-examples/src/bin/usart.rs index 8b135d2aa..f7b66f86b 100644 --- a/embassy-stm32-examples/src/bin/usart.rs +++ b/embassy-stm32-examples/src/bin/usart.rs @@ -20,7 +20,7 @@ use stm32f4::stm32f429 as pac; #[embassy::task] async fn main_task() { - let (p, _) = embassy_stm32::init(Default::default()); + let p = embassy_stm32::init(Default::default()); let config = Config::default(); let mut usart = Uart::new(p.USART3, p.PD9, p.PD8, config, 16_000_000); diff --git a/embassy-stm32-examples/src/bin/usart_dma.rs b/embassy-stm32-examples/src/bin/usart_dma.rs index 0127e9a00..dc065e044 100644 --- a/embassy-stm32-examples/src/bin/usart_dma.rs +++ b/embassy-stm32-examples/src/bin/usart_dma.rs @@ -20,7 +20,7 @@ use stm32f4::stm32f429 as pac; #[embassy::task] async fn main_task() { - let (mut p, _) = embassy_stm32::init(Default::default()); + let mut p = embassy_stm32::init(Default::default()); let config = Config::default(); let mut usart = Uart::new(p.USART3, p.PD9, p.PD8, config, 16_000_000);