added vscode task and launch

This commit is contained in:
Per Lindgren 2020-11-25 22:56:58 +01:00
parent f5dd4bbe2e
commit 3076b0eeb4
2 changed files with 34 additions and 0 deletions

20
.vscode/launch.json vendored Normal file
View file

@ -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",
},
]
}

14
.vscode/tasks.json vendored Normal file
View file

@ -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"
}
]
}