add preset to upload frimware
This commit is contained in:
29
.vscode/tasks.json
vendored
Normal file
29
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"type": "cmake",
|
||||||
|
"label": "CMake: build",
|
||||||
|
"command": "build",
|
||||||
|
"targets": [
|
||||||
|
"all"
|
||||||
|
],
|
||||||
|
"preset": "${command:cmake.activeBuildPresetName}",
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"problemMatcher": [],
|
||||||
|
"detail": "Build project using CMake Release preset"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "cmake",
|
||||||
|
"label": "CMake: flash",
|
||||||
|
"command": "build",
|
||||||
|
"preset": "flash",
|
||||||
|
"group": "none",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"detail": "Flash firmware to microcontroller using CMake flash preset"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -21,6 +21,14 @@
|
|||||||
{
|
{
|
||||||
"name": "Release",
|
"name": "Release",
|
||||||
"configurePreset": "Release"
|
"configurePreset": "Release"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "flash",
|
||||||
|
"configurePreset": "Release",
|
||||||
|
"targets": [
|
||||||
|
"flash"
|
||||||
|
],
|
||||||
|
"description": "Build and flash firmware to AVR"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user