diff options
Diffstat (limited to 'examples/rp/src/bin/gpout.rs')
| -rw-r--r-- | examples/rp/src/bin/gpout.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rp/src/bin/gpout.rs b/examples/rp/src/bin/gpout.rs index 236a653ac..64461fc5f 100644 --- a/examples/rp/src/bin/gpout.rs +++ b/examples/rp/src/bin/gpout.rs | |||
| @@ -17,14 +17,14 @@ async fn main(_spawner: Spawner) { | |||
| 17 | gpout3.enable(); | 17 | gpout3.enable(); |
| 18 | 18 | ||
| 19 | loop { | 19 | loop { |
| 20 | gpout3.set_src(clocks::GpoutSrc::CLK_SYS); | 20 | gpout3.set_src(clocks::GpoutSrc::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 | gpout3.get_freq() | 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(clocks::GpoutSrc::CLK_REF); | 27 | gpout3.set_src(clocks::GpoutSrc::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 | gpout3.get_freq() | 30 | gpout3.get_freq() |
