aboutsummaryrefslogtreecommitdiff
path: root/examples/t-init-main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/t-init-main.rs')
-rw-r--r--examples/t-init-main.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/t-init-main.rs b/examples/t-init-main.rs
new file mode 100644
index 00000000..7c23cc83
--- /dev/null
+++ b/examples/t-init-main.rs
@@ -0,0 +1,17 @@
+#![deny(unsafe_code)]
+#![deny(warnings)]
+#![no_main]
+#![no_std]
+
+use cortex_m_semihosting::debug;
+use panic_semihosting as _;
+
+#[rtic::app(device = lm3s6965)]
+mod app {
+ #[init]
+ fn init(_: init::Context) -> init::LateResources {
+ debug::exit(debug::EXIT_SUCCESS);
+
+ init::LateResources {}
+ }
+}