diff options
| -rw-r--r-- | tests/rp/src/bin/overclock.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/rp/src/bin/overclock.rs b/tests/rp/src/bin/overclock.rs index d6d6062f2..e4845a55f 100644 --- a/tests/rp/src/bin/overclock.rs +++ b/tests/rp/src/bin/overclock.rs | |||
| @@ -6,7 +6,9 @@ teleprobe_meta::target!(b"rpi-pico"); | |||
| 6 | #[cfg(feature = "rp235xb")] | 6 | #[cfg(feature = "rp235xb")] |
| 7 | teleprobe_meta::target!(b"pimoroni-pico-plus-2"); | 7 | teleprobe_meta::target!(b"pimoroni-pico-plus-2"); |
| 8 | 8 | ||
| 9 | use defmt::{assert, assert_eq, info}; | 9 | use defmt::info; |
| 10 | #[cfg(feature = "rp2040")] | ||
| 11 | use defmt::{assert, assert_eq}; | ||
| 10 | use embassy_executor::Spawner; | 12 | use embassy_executor::Spawner; |
| 11 | use embassy_rp::clocks; | 13 | use embassy_rp::clocks; |
| 12 | #[cfg(feature = "rp2040")] | 14 | #[cfg(feature = "rp2040")] |
| @@ -21,7 +23,10 @@ const COUNT_TO: i64 = 10_000_000; | |||
| 21 | 23 | ||
| 22 | #[embassy_executor::main] | 24 | #[embassy_executor::main] |
| 23 | async fn main(_spawner: Spawner) { | 25 | async fn main(_spawner: Spawner) { |
| 26 | #[cfg(feature = "rp2040")] | ||
| 24 | let mut config = Config::default(); | 27 | let mut config = Config::default(); |
| 28 | #[cfg(not(feature = "rp2040"))] | ||
| 29 | let config = Config::default(); | ||
| 25 | 30 | ||
| 26 | // Initialize with 200MHz clock configuration for RP2040, other chips will use default clock | 31 | // Initialize with 200MHz clock configuration for RP2040, other chips will use default clock |
| 27 | #[cfg(feature = "rp2040")] | 32 | #[cfg(feature = "rp2040")] |
