diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-03-26 16:01:37 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-03-27 15:18:06 +0100 |
| commit | d41eeeae79388f219bf6a84e2f7bde9f6b532516 (patch) | |
| tree | 678b6fc732216e529dc38e6f65b72a309917ac32 /tests/rp/src/bin/bootsel.rs | |
| parent | 9edf5b7f049f95742b60b041e4443967d8a6b708 (diff) | |
Remove Peripheral trait, rename PeripheralRef->Peri.
Diffstat (limited to 'tests/rp/src/bin/bootsel.rs')
| -rw-r--r-- | tests/rp/src/bin/bootsel.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/rp/src/bin/bootsel.rs b/tests/rp/src/bin/bootsel.rs index e88d8bf6c..aa123ab03 100644 --- a/tests/rp/src/bin/bootsel.rs +++ b/tests/rp/src/bin/bootsel.rs | |||
| @@ -4,12 +4,13 @@ teleprobe_meta::target!(b"rpi-pico"); | |||
| 4 | 4 | ||
| 5 | use defmt::{assert_eq, *}; | 5 | use defmt::{assert_eq, *}; |
| 6 | use embassy_executor::Spawner; | 6 | use embassy_executor::Spawner; |
| 7 | use embassy_rp::bootsel::is_bootsel_pressed; | ||
| 7 | use embassy_time::Timer; | 8 | use embassy_time::Timer; |
| 8 | use {defmt_rtt as _, panic_probe as _}; | 9 | use {defmt_rtt as _, panic_probe as _}; |
| 9 | 10 | ||
| 10 | #[embassy_executor::main] | 11 | #[embassy_executor::main] |
| 11 | async fn main(_spawner: Spawner) { | 12 | async fn main(_spawner: Spawner) { |
| 12 | let mut p = embassy_rp::init(Default::default()); | 13 | let p = embassy_rp::init(Default::default()); |
| 13 | info!("Hello World!"); | 14 | info!("Hello World!"); |
| 14 | 15 | ||
| 15 | // add some delay to give an attached debug probe time to parse the | 16 | // add some delay to give an attached debug probe time to parse the |
| @@ -18,7 +19,7 @@ async fn main(_spawner: Spawner) { | |||
| 18 | // https://github.com/knurling-rs/defmt/pull/683 | 19 | // https://github.com/knurling-rs/defmt/pull/683 |
| 19 | Timer::after_millis(10).await; | 20 | Timer::after_millis(10).await; |
| 20 | 21 | ||
| 21 | assert_eq!(p.BOOTSEL.is_pressed(), false); | 22 | assert_eq!(is_bootsel_pressed(p.BOOTSEL), false); |
| 22 | 23 | ||
| 23 | info!("Test OK"); | 24 | info!("Test OK"); |
| 24 | cortex_m::asm::bkpt(); | 25 | cortex_m::asm::bkpt(); |
