aboutsummaryrefslogtreecommitdiff
path: root/examples/rp/src/bin/gpout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rp/src/bin/gpout.rs')
-rw-r--r--examples/rp/src/bin/gpout.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/rp/src/bin/gpout.rs b/examples/rp/src/bin/gpout.rs
index 0a3b5fa98..896cc15ee 100644
--- a/examples/rp/src/bin/gpout.rs
+++ b/examples/rp/src/bin/gpout.rs
@@ -9,7 +9,7 @@
9use defmt::*; 9use defmt::*;
10use embassy_executor::Spawner; 10use embassy_executor::Spawner;
11use embassy_rp::clocks; 11use embassy_rp::clocks;
12use embassy_time::{Duration, Timer}; 12use embassy_time::Timer;
13use {defmt_rtt as _, panic_probe as _}; 13use {defmt_rtt as _, panic_probe as _};
14 14
15#[embassy_executor::main] 15#[embassy_executor::main]
@@ -26,13 +26,13 @@ async fn main(_spawner: Spawner) {
26 "Pin 25 is now outputing CLK_SYS/1000, should be toggling at {}", 26 "Pin 25 is now outputing CLK_SYS/1000, should be toggling at {}",
27 gpout3.get_freq() 27 gpout3.get_freq()
28 ); 28 );
29 Timer::after(Duration::from_secs(2)).await; 29 Timer::after_secs(2).await;
30 30
31 gpout3.set_src(clocks::GpoutSrc::Ref); 31 gpout3.set_src(clocks::GpoutSrc::Ref);
32 info!( 32 info!(
33 "Pin 25 is now outputing CLK_REF/1000, should be toggling at {}", 33 "Pin 25 is now outputing CLK_REF/1000, should be toggling at {}",
34 gpout3.get_freq() 34 gpout3.get_freq()
35 ); 35 );
36 Timer::after(Duration::from_secs(2)).await; 36 Timer::after_secs(2).await;
37 } 37 }
38} 38}