aboutsummaryrefslogtreecommitdiff
path: root/examples/smallest.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/smallest.rs')
-rw-r--r--examples/smallest.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/smallest.rs b/examples/smallest.rs
new file mode 100644
index 00000000..e4d86be9
--- /dev/null
+++ b/examples/smallest.rs
@@ -0,0 +1,17 @@
+//! examples/smallest.rs
+
+#![deny(unsafe_code)]
+#![deny(warnings)]
+#![no_main]
+#![no_std]
+
+// panic-handler crate
+extern crate panic_semihosting;
+
+use rtfm::app;
+
+#[app(device = lm3s6965)]
+const APP: () = {
+ #[init]
+ fn init() {}
+};