From 9ebae861e051c49b341239b2bfba4d8f4eea59b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Tue, 10 Sep 2024 21:33:25 +0200 Subject: [PATCH] Clean up examples --- examples/src/bin/blinky_erased_pins.rs | 4 ++-- examples/src/bin/embassy_multicore.rs | 4 ++-- examples/src/bin/embassy_multicore_interrupt.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/src/bin/blinky_erased_pins.rs b/examples/src/bin/blinky_erased_pins.rs index 34cf9c0fc82..48d9309f088 100644 --- a/examples/src/bin/blinky_erased_pins.rs +++ b/examples/src/bin/blinky_erased_pins.rs @@ -14,7 +14,7 @@ use esp_backtrace as _; use esp_hal::{ delay::Delay, - gpio::{AnyPin, Input, Io, Level, Output, Pin, Pull}, + gpio::{Input, Io, Level, Output, Pin, Pull}, prelude::*, }; @@ -47,7 +47,7 @@ fn main() -> ! { } } -fn toggle_pins(leds: &mut [Output], button: &Input) { +fn toggle_pins(leds: &mut [Output], button: &Input) { for pin in leds.iter_mut() { pin.toggle(); } diff --git a/examples/src/bin/embassy_multicore.rs b/examples/src/bin/embassy_multicore.rs index 585decaf984..8efe9ff3aec 100644 --- a/examples/src/bin/embassy_multicore.rs +++ b/examples/src/bin/embassy_multicore.rs @@ -21,7 +21,7 @@ use esp_backtrace as _; use esp_hal::{ cpu_control::{CpuControl, Stack}, get_core, - gpio::{AnyPin, Io, Level, Output, Pin}, + gpio::{Io, Level, Output, Pin}, timer::{timg::TimerGroup, ErasedTimer}, }; use esp_hal_embassy::Executor; @@ -34,7 +34,7 @@ static mut APP_CORE_STACK: Stack<8192> = Stack::new(); /// duration of time. #[embassy_executor::task] async fn control_led( - mut led: Output<'static, AnyPin>, + mut led: Output<'static>, control: &'static Signal, ) { println!("Starting control_led() on core {}", get_core() as usize); diff --git a/examples/src/bin/embassy_multicore_interrupt.rs b/examples/src/bin/embassy_multicore_interrupt.rs index ac1881a4b63..086a098e86b 100644 --- a/examples/src/bin/embassy_multicore_interrupt.rs +++ b/examples/src/bin/embassy_multicore_interrupt.rs @@ -20,7 +20,7 @@ use esp_backtrace as _; use esp_hal::{ cpu_control::{CpuControl, Stack}, get_core, - gpio::{AnyPin, Io, Level, Output, Pin}, + gpio::{ Io, Level, Output, Pin}, interrupt::{software::SoftwareInterruptControl, Priority}, prelude::*, timer::{timg::TimerGroup, ErasedTimer}, @@ -35,7 +35,7 @@ static mut APP_CORE_STACK: Stack<8192> = Stack::new(); /// duration of time. #[embassy_executor::task] async fn control_led( - mut led: Output<'static, AnyPin>, + mut led: Output<'static>, control: &'static Signal, ) { println!("Starting control_led() on core {}", get_core() as usize);