From 629978dbbc736f2470eca4931477be411df0936d Mon Sep 17 00:00:00 2001
From: Per Lindgren <per.lindgren@ltu.se>
Date: Sun, 2 Feb 2020 11:29:11 +0100
Subject: [PATCH] src/main.rs

---
 src/main.rs | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 src/main.rs

diff --git a/src/main.rs b/src/main.rs
new file mode 100644
index 0000000..aa4a095
--- /dev/null
+++ b/src/main.rs
@@ -0,0 +1,17 @@
+//! Prints "Hello, world!" on the host console using semihosting
+
+#![no_main]
+#![no_std]
+
+extern crate panic_halt;
+
+use cortex_m_rt::entry;
+use cortex_m_semihosting::hprintln;
+
+#[entry]
+fn main() -> ! {
+    hprintln!("Hello, world!").unwrap();
+    loop {
+        continue;
+    }
+}
-- 
GitLab