From be16be5f72625a230efa885551492d5a89ee2442 Mon Sep 17 00:00:00 2001
From: Per <Per Lindgren>
Date: Wed, 15 Nov 2017 00:42:05 +0100
Subject: [PATCH] examples

---
 .vscode/launch.json |  2 +-
 .vscode/tasks.json  | 34 +++++-----------------------------
 examples/hello.rs   |  1 +
 3 files changed, 7 insertions(+), 30 deletions(-)

diff --git a/.vscode/launch.json b/.vscode/launch.json
index e18bfd5..2dd8ce1 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -79,7 +79,7 @@
             "autorun": [
                 "monitor reset init",
                 "monitor arm semihosting enable",
-                "monitor tpiu config internal /tmp/itm.log uart off 16000000 2000000",
+                "monitor tpiu config internal /tmp/itm.log uart off 16000000",
                 "monitor itm port 0 on",
                 "load"
             ],
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 78bd10c..5dabdd4 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -4,31 +4,7 @@
     "version": "2.0.0",
     "tasks": [
         {
-            "taskName": "xargo build --release",
-            "type": "shell",
-            "command": "xargo build --release",
-            "group": {
-                "kind": "build",
-                "isDefault": true
-            },
-            "problemMatcher": [
-                "$rustc"
-            ]
-        },
-        {
-            "taskName": "xargo build",
-            "type": "shell",
-            "command": "xargo build",
-            "group": {
-                "kind": "build",
-                "isDefault": true
-            },
-            "problemMatcher": [
-                "$rustc"
-            ]
-        },
-        {
-            "taskName": "xargo build --example hello",
+            "label": "xargo build --example hello",
             "type": "shell",
             "command": "xargo build --example hello",
             "group": {
@@ -40,7 +16,7 @@
             ]
         },
         {
-            "taskName": "xargo build --example crash",
+            "label": "xargo build --example crash",
             "type": "shell",
             "command": "xargo build --example crash",
             "group": {
@@ -52,7 +28,7 @@
             ]
         },
         {
-            "taskName": "xargo build --example itm",
+            "label": "xargo build --example itm",
             "type": "shell",
             "command": "xargo build --example itm",
             "group": {
@@ -64,7 +40,7 @@
             ]
         },
         {
-            "taskName": "xargo build --example override-exception-handler",
+            "label": "xargo build --example override-exception-handler",
             "type": "shell",
             "command": "xargo build --example override-exception-handler",
             "group": {
@@ -76,7 +52,7 @@
             ]
         },
         {
-            "taskName": "xargo build --example panic",
+            "label": "xargo build --example panic",
             "type": "shell",
             "command": "xargo build --example panic",
             "group": {
diff --git a/examples/hello.rs b/examples/hello.rs
index a3f0eb4..befce98 100644
--- a/examples/hello.rs
+++ b/examples/hello.rs
@@ -17,6 +17,7 @@ use cortex_m_semihosting::hio;
 fn main() {
     let mut stdout = hio::hstdout().unwrap();
     writeln!(stdout, "Hello, world!").unwrap();
+    loop {}
 }
 
 // As we are not using interrupts, we just register a dummy catch all handler
-- 
GitLab