diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-05-17 22:20:44 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-17 22:20:44 +0000 |
| commit | 4b303949bff82cb328b75e37e9e03038d8d0e778 (patch) | |
| tree | 4e06a78cf075a26aedf7cc3edde8840468d1cd5d /examples | |
| parent | 908ec5faef00345c680a3e6e64b30f107f2cd26f (diff) | |
| parent | fc746a88b50f2d57a573d7a9ec8b8f3fbc0c9b08 (diff) | |
Merge #1465
1465: rp: continue clock rework r=Dirbaio a=pennae
vastly reduce the code size of initial clock config (over 700 bytes saved!), at the cost of about 48 bytes of ram used to store the frequencies of all clocks in the system. also stop exporting unstable pac items for clock config, fix a few settings that were out of spec, and add missing features (most notably gpin source information).
Co-authored-by: pennae <[email protected]>
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() |
