aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/rp/src/bin/overclock.rs7
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")]
7teleprobe_meta::target!(b"pimoroni-pico-plus-2"); 7teleprobe_meta::target!(b"pimoroni-pico-plus-2");
8 8
9use defmt::{assert, assert_eq, info}; 9use defmt::info;
10#[cfg(feature = "rp2040")]
11use defmt::{assert, assert_eq};
10use embassy_executor::Spawner; 12use embassy_executor::Spawner;
11use embassy_rp::clocks; 13use 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]
23async fn main(_spawner: Spawner) { 25async 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")]