diff options
| author | Ulf Lilleengen <[email protected]> | 2024-01-26 09:03:08 +0100 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2024-01-26 09:03:08 +0100 |
| commit | 0bd9a2f09434c5c67088bce79597c581a900adeb (patch) | |
| tree | 336ad6b1c58cd1682d6f4ea4c3dcf9690c8bf213 /tests | |
| parent | ee90ee185c150085ee59c873e016b6f88f646b56 (diff) | |
fix gpio test and remove dummy
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/nrf51422/src/bin/gpio.rs | 4 | ||||
| -rw-r--r-- | tests/nrf51422/src/bin/test.rs | 14 |
2 files changed, 2 insertions, 16 deletions
diff --git a/tests/nrf51422/src/bin/gpio.rs b/tests/nrf51422/src/bin/gpio.rs index 6c6bc0839..0e5712273 100644 --- a/tests/nrf51422/src/bin/gpio.rs +++ b/tests/nrf51422/src/bin/gpio.rs | |||
| @@ -16,11 +16,11 @@ async fn main(_spawner: Spawner) { | |||
| 16 | let mut output = Output::new(p.P0_14, Level::Low, OutputDrive::Standard); | 16 | let mut output = Output::new(p.P0_14, Level::Low, OutputDrive::Standard); |
| 17 | 17 | ||
| 18 | output.set_low(); | 18 | output.set_low(); |
| 19 | Timer::after_millis(1).await; | 19 | Timer::after_millis(10).await; |
| 20 | assert!(input.is_low()); | 20 | assert!(input.is_low()); |
| 21 | 21 | ||
| 22 | output.set_high(); | 22 | output.set_high(); |
| 23 | Timer::after_millis(1).await; | 23 | Timer::after_millis(10).await; |
| 24 | assert!(input.is_high()); | 24 | assert!(input.is_high()); |
| 25 | 25 | ||
| 26 | info!("Test OK"); | 26 | info!("Test OK"); |
diff --git a/tests/nrf51422/src/bin/test.rs b/tests/nrf51422/src/bin/test.rs deleted file mode 100644 index d3ffe26e3..000000000 --- a/tests/nrf51422/src/bin/test.rs +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | #![no_std] | ||
| 2 | #![no_main] | ||
| 3 | teleprobe_meta::target!(b"nrf51-dk"); | ||
| 4 | |||
| 5 | use defmt::info; | ||
| 6 | use embassy_executor::Spawner; | ||
| 7 | use {defmt_rtt as _, panic_probe as _}; | ||
| 8 | |||
| 9 | #[embassy_executor::main] | ||
| 10 | async fn main(_spawner: Spawner) { | ||
| 11 | let _p = embassy_nrf::init(Default::default()); | ||
| 12 | info!("Test OK"); | ||
| 13 | cortex_m::asm::bkpt(); | ||
| 14 | } | ||
