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