aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples/minimal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt/examples/minimal.rs')
-rw-r--r--cortex-m-rt/examples/minimal.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/cortex-m-rt/examples/minimal.rs b/cortex-m-rt/examples/minimal.rs
new file mode 100644
index 0000000..bd0a6ad
--- /dev/null
+++ b/cortex-m-rt/examples/minimal.rs
@@ -0,0 +1,17 @@
+//! Minimal `cortex-m-rt` based program
+
+#![deny(unsafe_code)]
+#![deny(warnings)]
+#![no_main]
+#![no_std]
+
+extern crate cortex_m_rt as rt;
+extern crate panic_halt;
+
+use rt::entry;
+
+// the program entry point
+#[entry]
+fn main() -> ! {
+ loop {}
+}