Skip to content
Snippets Groups Projects
Commit be16be5f authored by Per's avatar Per
Browse files

examples

parent 9b941828
Branches
Tags
No related merge requests found
......@@ -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"
],
......
......@@ -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": {
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment