Skip to content

Commit

Permalink
Add vscode tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
gabChouin committed Nov 22, 2023
1 parent 460a8b5 commit 3da6c3c
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// 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": []
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"makefile.extensionOutputFolder": "./.vscode"
}
99 changes: 99 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Get Dependencies",
"type": "shell",
"command": "make",
"args": [
"--directory=${workspaceFolder}/examples/${input:example}",
"BOARD=${input:board}",
"get-deps"
],
"problemMatcher": [
"$gcc"
]
},
{
"label": "Build",
"type": "shell",
"command": "make",
"args": [
"--directory=${workspaceFolder}/examples/${input:example}",
"BOARD=${input:board}",
"LOG=2",
"all"
],
"problemMatcher": [
"$gcc"
]
},
{
"label": "Clean",
"type": "shell",
"command": "make",
"args": [
"--directory=${workspaceFolder}/examples/${input:example}",
"BOARD=${input:board}",
"clean"
],
"problemMatcher": [
"$gcc"
]
},
{
"label": "Flash",
"type": "shell",
"command": "make",
"args": [
"--directory=${workspaceFolder}/examples/${input:example}",
"BOARD=${input:board}",
"clean",
"all",
"flash"
],
"problemMatcher": [
"$gcc"
]
}
],
"inputs": [
{
"id": "example",
"type": "pickString",
"description": "Example to use",
"options": [
"device/audio_4_channel_mic",
"device/audio_test",
"device/audio_test_multi_rate",
"device/board_test",
"device/cdc_dual_ports",
"device/cdc_msc",
"device/cdc_msc_freertos",
"device/cdc_uac2",
"device/uac2_headset"
],
"default": "device/board_test"
},
{
"id": "board",
"type": "pickString",
"description": "Board to use",
"options": [
"stm32u575nucleo",
"lpcxpresso55s28"
],
"default": "stm32u575nucleo"
},
{
"id": "speed",
"type": "pickString",
"description": "Speed to use",
"options": [
"full",
"high"
],
"default": "full"
}
]
}

0 comments on commit 3da6c3c

Please sign in to comment.