diff options
| author | pennae <[email protected]> | 2023-05-16 18:13:15 +0200 |
|---|---|---|
| committer | pennae <[email protected]> | 2023-05-17 21:36:19 +0200 |
| commit | f97b591831cab5ec29cfdb7cb98bc93debfdb57e (patch) | |
| tree | a43ac1b83dec36f08f5b0df59dee39434db0f9e1 /examples | |
| parent | d97a77147927b8ea6b245ec88a52de92db33813b (diff) | |
rp/clocks: don't expose unstable pac items
exposing pac items kind of undermines the unstable-pac feature. directly
exposing register structure is also pretty inconvenient since the clock
switching code takes care of the src/aux difference in behavior, so a
user needn't really be forced to write down decomposed register values.
Diffstat (limited to 'examples')
| -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() |
