aboutsummaryrefslogtreecommitdiff
path: root/examples/late.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2019-06-13 23:56:59 +0200
committerJorge Aparicio <jorge@japaric.io>2019-06-13 23:56:59 +0200
commit81275bfa4f41e2066770087f3a33cad4227eab41 (patch)
treec779a68e7cecf4c2613c7593376f980cea5dbc05 /examples/late.rs
parentfafeeb27270ef24fc3852711c6032f65aa7dbcc0 (diff)
rtfm-syntax refactor + heterogeneous multi-core support
Diffstat (limited to 'examples/late.rs')
-rw-r--r--examples/late.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/late.rs b/examples/late.rs
index 0074fb3..4d48a6a 100644
--- a/examples/late.rs
+++ b/examples/late.rs
@@ -5,20 +5,21 @@
#![no_main]
#![no_std]
-extern crate panic_semihosting;
-
use cortex_m_semihosting::{debug, hprintln};
use heapless::{
consts::*,
spsc::{Consumer, Producer, Queue},
};
use lm3s6965::Interrupt;
+use panic_semihosting as _;
#[rtfm::app(device = lm3s6965)]
const APP: () = {
// Late resources
- static mut P: Producer<'static, u32, U4> = ();
- static mut C: Consumer<'static, u32, U4> = ();
+ extern "C" {
+ static mut P: Producer<'static, u32, U4>;
+ static mut C: Consumer<'static, u32, U4>;
+ }
#[init]
fn init(_: init::Context) -> init::LateResources {