aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h5/src/bin/stop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32h5/src/bin/stop.rs')
-rw-r--r--examples/stm32h5/src/bin/stop.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32h5/src/bin/stop.rs b/examples/stm32h5/src/bin/stop.rs
index 0d14c0668..e650791c5 100644
--- a/examples/stm32h5/src/bin/stop.rs
+++ b/examples/stm32h5/src/bin/stop.rs
@@ -10,7 +10,7 @@ use embassy_stm32::gpio::{AnyPin, Level, Output, Speed};
10use embassy_stm32::low_power::Executor; 10use embassy_stm32::low_power::Executor;
11use embassy_stm32::rcc::{HSIPrescaler, LsConfig}; 11use embassy_stm32::rcc::{HSIPrescaler, LsConfig};
12use embassy_stm32::rtc::{Rtc, RtcConfig}; 12use embassy_stm32::rtc::{Rtc, RtcConfig};
13use embassy_stm32::Config; 13use embassy_stm32::{Config, Peri};
14use embassy_time::Timer; 14use embassy_time::Timer;
15use static_cell::StaticCell; 15use static_cell::StaticCell;
16use {defmt_rtt as _, panic_probe as _}; 16use {defmt_rtt as _, panic_probe as _};
@@ -48,7 +48,7 @@ async fn async_main(spawner: Spawner) {
48} 48}
49 49
50#[embassy_executor::task] 50#[embassy_executor::task]
51async fn blinky(led: AnyPin) { 51async fn blinky(led: Peri<'static, AnyPin>) {
52 let mut led = Output::new(led, Level::Low, Speed::Low); 52 let mut led = Output::new(led, Level::Low, Speed::Low);
53 loop { 53 loop {
54 info!("high"); 54 info!("high");