aboutsummaryrefslogtreecommitdiff
path: root/examples/static.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/static.rs')
-rw-r--r--examples/static.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/static.rs b/examples/static.rs
index 2e3b5b41..eeb522f5 100644
--- a/examples/static.rs
+++ b/examples/static.rs
@@ -5,14 +5,15 @@
#![no_main]
#![no_std]
-extern crate panic_semihosting;
-
use cortex_m_semihosting::{debug, hprintln};
use lm3s6965::Interrupt;
+use panic_semihosting as _;
#[rtfm::app(device = lm3s6965)]
const APP: () = {
- static KEY: u32 = ();
+ extern "C" {
+ static KEY: u32;
+ }
#[init]
fn init(_: init::Context) -> init::LateResources {