aboutsummaryrefslogtreecommitdiff
path: root/.vscode/tasks.json
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-09-27 17:13:39 +0200
committerlonkaars <loek@pipeframe.xyz>2022-09-27 17:13:39 +0200
commit3bf32b389dc7cfc85014d91356cfb0ec4cb4df70 (patch)
tree18a4d7150b55a8ab679c8a2ecc4479689b160293 /.vscode/tasks.json
parentf9f1e5bf0bd7e8b0ca0708fb63f4d2c56d47ef49 (diff)
windows toolchain setup
Diffstat (limited to '.vscode/tasks.json')
-rw-r--r--.vscode/tasks.json45
1 files changed, 45 insertions, 0 deletions
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..fcf4120
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,45 @@
+{
+ "version": "2.0.0",
+ "options": {
+ "cwd": "${workspaceFolder}",
+ "shell": {
+ "executable": "C:/msys64/msys2_shell.cmd",
+ "args": [ "-defterm", "-no-start", "-mingw64", "-shell", "sh", "-here", "-c" ],
+ }
+ },
+ "tasks": [
+ {
+ "label": "build stm32 firmware",
+ "group": {
+ "isDefault": false,
+ "kind": "build"
+ },
+ "options": { "cwd": "${workspaceFolder}/stm32f091" },
+ "command": "make",
+ "args": [ "" ],
+ "type": "shell"
+ },
+ {
+ "label": "flash stm32 firmware",
+ "group": {
+ "isDefault": false,
+ "kind": "test"
+ },
+ "options": { "cwd": "${workspaceFolder}/stm32f091" },
+ "command": "make flash",
+ "args": [ "" ],
+ "type": "shell"
+ },
+ {
+ "label": "generate compilation db",
+ "group": {
+ "isDefault": false,
+ "kind": "test"
+ },
+ "options": { "cwd": "${workspaceFolder}/stm32f091" },
+ "command": "make compile_commands",
+ "args": [ "" ],
+ "type": "shell"
+ }
+ ]
+}