Skip to content

Commit 21ab7cd

Browse files
committed
Fixed some compilation issues for the blinky demo
1 parent dbb2635 commit 21ab7cd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/blinky-button-demo/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ edition = "2018"
88

99
[dependencies]
1010
cortex-m = "0.6.2"
11+
cortex-m-rt = "0.6.12"
1112
rtt-target = {version = "0.2.0", features = ["cortex-m"] }
1213
nrf52832-hal = { features = ["rt"], path = "../../nrf52832-hal" }
1314

examples/blinky-button-demo/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#![no_main]
22
#![no_std]
33

4-
use core::sync::atomic::{AtomicUsize, Ordering};
54
use embedded_hal::digital::v2::InputPin;
65
use embedded_hal::digital::v2::OutputPin;
76
use nrf52832_hal as hal;
87
use nrf52832_hal::gpio::Level;
8+
use rtt_target::{rprintln, rtt_init_print};
99

1010
#[panic_handler] // panicking behavior
1111
fn panic(_: &core::panic::PanicInfo) -> ! {

0 commit comments

Comments
 (0)