diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/rp/src/bin/overclock.rs | 2 | ||||
| -rw-r--r-- | examples/rp235x/src/bin/overclock.rs | 2 |
2 files changed, 2 insertions, 2 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); |
diff --git a/examples/rp235x/src/bin/overclock.rs b/examples/rp235x/src/bin/overclock.rs index 8713df688..178fd62ca 100644 --- a/examples/rp235x/src/bin/overclock.rs +++ b/examples/rp235x/src/bin/overclock.rs | |||
| @@ -23,7 +23,7 @@ const COUNT_TO: i64 = 10_000_000; | |||
| 23 | #[embassy_executor::main] | 23 | #[embassy_executor::main] |
| 24 | async fn main(_spawner: Spawner) -> ! { | 24 | async fn main(_spawner: Spawner) -> ! { |
| 25 | // Set up for clock frequency of 200 MHz, setting all necessary defaults. | 25 | // Set up for clock frequency of 200 MHz, setting all necessary defaults. |
| 26 | let mut config = Config::new(ClockConfig::system_freq(200_000_000)); | 26 | let mut config = Config::new(ClockConfig::system_freq(200_000_000).unwrap()); |
| 27 | 27 | ||
| 28 | // since for the rp235x there is no official support for higher clock frequencies, `system_freq()` will not set a voltage for us. | 28 | // since for the rp235x there is no official support for higher clock frequencies, `system_freq()` will not set a voltage for us. |
| 29 | // We need to guess the core voltage, that is needed for the higher clock frequency. Going with a small increase from the default 1.1V here, based on | 29 | // We need to guess the core voltage, that is needed for the higher clock frequency. Going with a small increase from the default 1.1V here, based on |
