aboutsummaryrefslogtreecommitdiff
path: root/examples/smallest.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2019-06-13 23:56:59 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2019-06-13 23:56:59 +0200
commit81275bfa4f41e2066770087f3a33cad4227eab41 (patch)
treec779a68e7cecf4c2613c7593376f980cea5dbc05 /examples/smallest.rs
parentfafeeb27270ef24fc3852711c6032f65aa7dbcc0 (diff)
downloadrtic-81275bfa4f41e2066770087f3a33cad4227eab41.tar.gz
rtic-81275bfa4f41e2066770087f3a33cad4227eab41.tar.zst
rtic-81275bfa4f41e2066770087f3a33cad4227eab41.zip
rtfm-syntax refactor + heterogeneous multi-core support
Diffstat (limited to 'examples/smallest.rs')
-rw-r--r--examples/smallest.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/smallest.rs b/examples/smallest.rs
index c1537168..e4228061 100644
--- a/examples/smallest.rs
+++ b/examples/smallest.rs
@@ -5,13 +5,8 @@
#![no_main]
#![no_std]
-// panic-handler crate
-extern crate panic_semihosting;
-
+use panic_semihosting as _; // panic handler
use rtfm::app;
#[app(device = lm3s6965)]
-const APP: () = {
- #[init]
- fn init(_: init::Context) {}
-};
+const APP: () = {};