Skip to content

Commit 4103d42

Browse files
committed
demo of comment and 'use'
1 parent 2f0b95c commit 4103d42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/serial_echo.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use cortex_m_rt::entry;
77
use nb::block;
88
use nrf51::Peripherals;
99
use nrf51_hal::prelude::*;
10+
use cortex_m::asm::*;
1011
use nrf51_hal::serial::{Serial, BAUD115200};
1112

1213
#[entry]
@@ -19,7 +20,7 @@ fn main() -> ! {
1920
loop {
2021
let val = block!(rx.read()).unwrap();
2122
let _ = block!(tx.write(val));
22-
cortex_m::asm::nop();
23+
nop(); // comment
2324
}
2425
}
2526
panic!();

0 commit comments

Comments
 (0)