fix gpio test and remove dummy
This commit is contained in:
parent
ee90ee185c
commit
0bd9a2f094
2 changed files with 2 additions and 16 deletions
|
@ -16,11 +16,11 @@ async fn main(_spawner: Spawner) {
|
||||||
let mut output = Output::new(p.P0_14, Level::Low, OutputDrive::Standard);
|
let mut output = Output::new(p.P0_14, Level::Low, OutputDrive::Standard);
|
||||||
|
|
||||||
output.set_low();
|
output.set_low();
|
||||||
Timer::after_millis(1).await;
|
Timer::after_millis(10).await;
|
||||||
assert!(input.is_low());
|
assert!(input.is_low());
|
||||||
|
|
||||||
output.set_high();
|
output.set_high();
|
||||||
Timer::after_millis(1).await;
|
Timer::after_millis(10).await;
|
||||||
assert!(input.is_high());
|
assert!(input.is_high());
|
||||||
|
|
||||||
info!("Test OK");
|
info!("Test OK");
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
#![no_std]
|
|
||||||
#![no_main]
|
|
||||||
teleprobe_meta::target!(b"nrf51-dk");
|
|
||||||
|
|
||||||
use defmt::info;
|
|
||||||
use embassy_executor::Spawner;
|
|
||||||
use {defmt_rtt as _, panic_probe as _};
|
|
||||||
|
|
||||||
#[embassy_executor::main]
|
|
||||||
async fn main(_spawner: Spawner) {
|
|
||||||
let _p = embassy_nrf::init(Default::default());
|
|
||||||
info!("Test OK");
|
|
||||||
cortex_m::asm::bkpt();
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue