From 3076b0eeb4c0a713dc007985f79422c86c30584f Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Wed, 25 Nov 2020 22:56:58 +0100 Subject: [PATCH] added vscode task and launch --- .vscode/launch.json | 20 ++++++++++++++++++++ .vscode/tasks.json | 14 ++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..d88747f65c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,20 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "cortex-debug", + "request": "launch", + "name": "Debug (QEMU)", + "servertype": "qemu", + "cwd": "${workspaceRoot}", + "preLaunchTask": "cargo build --examples", + "runToMain": true, + "executable": "./target/thumbv7m-none-eabi/debug/examples/${fileBasenameNoExtension}", + "cpu": "cortex-m3", + "machine": "lm3s6965evb", + }, + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000000..6800fc4d42 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,14 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "cargo", + "command": "build --example ${fileBasenameNoExtension} --target thumbv7m-none-eabi", + "problemMatcher": [ + "$rustc" + ], + "group": "build", + "label": "cargo build --examples" + } + ] +} \ No newline at end of file