diff options
| author | 1-rafael-1 <[email protected]> | 2025-05-12 21:33:47 +0200 |
|---|---|---|
| committer | 1-rafael-1 <[email protected]> | 2025-05-12 21:33:47 +0200 |
| commit | 79e452922a6b467f2e8547a6b28698ed5f409705 (patch) | |
| tree | 3c9344145e0eb8cfdd35549af940ef04cf25b3c3 /examples/rp/src | |
| parent | 133500167ca53cfbc5e9268356753bc0e3f8c209 (diff) | |
Add ClockError enum and update system_freq to return Result for error handling
Diffstat (limited to 'examples/rp/src')
| -rw-r--r-- | examples/rp/src/bin/overclock.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rp/src/bin/overclock.rs b/examples/rp/src/bin/overclock.rs index 89147ba42..2706399af 100644 --- a/examples/rp/src/bin/overclock.rs +++ b/examples/rp/src/bin/overclock.rs | |||
| @@ -18,7 +18,7 @@ const COUNT_TO: i64 = 10_000_000; | |||
| 18 | #[embassy_executor::main] | 18 | #[embassy_executor::main] |
| 19 | async fn main(_spawner: Spawner) -> ! { | 19 | async fn main(_spawner: Spawner) -> ! { |
| 20 | // Set up for clock frequency of 200 MHz, setting all necessary defaults. | 20 | // Set up for clock frequency of 200 MHz, setting all necessary defaults. |
| 21 | let config = Config::new(ClockConfig::system_freq(200_000_000)); | 21 | let config = Config::new(ClockConfig::system_freq(200_000_000).unwrap()); |
| 22 | 22 | ||
| 23 | // Initialize the peripherals | 23 | // Initialize the peripherals |
| 24 | let p = embassy_rp::init(config); | 24 | let p = embassy_rp::init(config); |
