aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorCaleb Jamison <[email protected]>2023-05-09 17:45:24 -0400
committerCaleb Jamison <[email protected]>2023-05-09 17:45:24 -0400
commit5cfe1a1fb40470dfaf256fc87989fd67884113f1 (patch)
tree25f36348ebb5826b0e314a9e8f01fb25508aef3d /examples
parent6bea07848717857659c737a3bb3eab7c2cd8abdb (diff)
Dirbaio comments round 2
Diffstat (limited to 'examples')
-rw-r--r--examples/rp/src/bin/gpout.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/rp/src/bin/gpout.rs b/examples/rp/src/bin/gpout.rs
index ea0efb859..236a653ac 100644
--- a/examples/rp/src/bin/gpout.rs
+++ b/examples/rp/src/bin/gpout.rs
@@ -4,7 +4,7 @@
4 4
5use defmt::*; 5use defmt::*;
6use embassy_executor::Spawner; 6use embassy_executor::Spawner;
7use embassy_rp::{clocks, pac}; 7use embassy_rp::clocks;
8use embassy_time::{Duration, Timer}; 8use embassy_time::{Duration, Timer};
9use {defmt_rtt as _, panic_probe as _}; 9use {defmt_rtt as _, panic_probe as _};
10 10
@@ -17,17 +17,17 @@ async fn main(_spawner: Spawner) {
17 gpout3.enable(); 17 gpout3.enable();
18 18
19 loop { 19 loop {
20 gpout3.set_src(pac::clocks::vals::ClkGpoutCtrlAuxsrc::CLK_SYS); 20 gpout3.set_src(clocks::GpoutSrc::CLK_SYS);
21 info!( 21 info!(
22 "Pin 25 is now outputing CLK_SYS/1000, should be toggling at {}", 22 "Pin 25 is now outputing CLK_SYS/1000, should be toggling at {}",
23 clocks::clk_gpout_freq(&gpout3) 23 gpout3.get_freq()
24 ); 24 );
25 Timer::after(Duration::from_secs(2)).await; 25 Timer::after(Duration::from_secs(2)).await;
26 26
27 gpout3.set_src(pac::clocks::vals::ClkGpoutCtrlAuxsrc::CLK_REF); 27 gpout3.set_src(clocks::GpoutSrc::CLK_REF);
28 info!( 28 info!(
29 "Pin 25 is now outputing CLK_REF/1000, should be toggling at {}", 29 "Pin 25 is now outputing CLK_REF/1000, should be toggling at {}",
30 clocks::clk_gpout_freq(&gpout3) 30 gpout3.get_freq()
31 ); 31 );
32 Timer::after(Duration::from_secs(2)).await; 32 Timer::after(Duration::from_secs(2)).await;
33 } 33 }