From 3da6c3c26a11569232c5242285b9a117844c73e6 Mon Sep 17 00:00:00 2001 From: Gabriel Chouinard Date: Wed, 24 Aug 2022 08:08:19 -0400 Subject: [PATCH] Add vscode tasks --- .vscode/launch.json | 7 +++ .vscode/settings.json | 3 ++ .vscode/tasks.json | 99 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..5c7247b40a --- /dev/null +++ b/.vscode/launch.json @@ -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": [] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..65e1ec0785 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "makefile.extensionOutputFolder": "./.vscode" +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000000..4a151fec9e --- /dev/null +++ b/.vscode/tasks.json @@ -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" + } + ] +} \ No newline at end of file