From 6c1187d6775b920f461802dd6756366c8d01b010 Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Sun, 20 Sep 2026 22:29:32 +0200 Subject: [PATCH] configured vscode for microsoft c/c++ extension. --- .ccls | 1 - .vscode/c_cpp_properties.json | 25 +++++++++++++++++++++++++ .vscode/tasks.json | 4 ++-- compile_commands.json | 1 - 4 files changed, 27 insertions(+), 4 deletions(-) delete mode 100644 .ccls create mode 100644 .vscode/c_cpp_properties.json delete mode 120000 compile_commands.json diff --git a/.ccls b/.ccls deleted file mode 100644 index 69f244c..0000000 --- a/.ccls +++ /dev/null @@ -1 +0,0 @@ -gcc-arm-none-eabi \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..71c9bab --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,25 @@ +{ + "configurations": [ + { + "name": "Linux", + "intelliSenseMode": "linux-gcc-arm", + "includePath": [ + "${env:PICO_SDK_PATH}/src/**/include/", + "${env:PICO_SDK_PATH}/lib/**/include/", + "${env:PICO_SDK_PATH}/lib/**/src/", + "${workspaceFolder}/build/generated/pico_base/", + "${workspaceFolder}/src/" + ], + "compilerPath": "/usr/bin/arm-none-eabi-gcc", + "cStandard": "c17", + "browse": { + "path": [ + "${workspaceFolder}" + ], + "limitSymbolsToIncludedHeaders": true, + "databaseFilename": "" + } + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2b45c2a..e0f10a9 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -5,7 +5,7 @@ "label": "Build", "detail": "Build project", "type": "shell", - "command": "cmake -H. -Bbuild -DCMAKE_EXPORT_COMPILE_COMMANDS=YES && make -j$(nproc) -C build", + "command": "cmake -H. -Bbuild && make -j$(nproc) -C build", "args": [ ], "group": "build", @@ -40,7 +40,7 @@ "detail": "Flash executable", "type": "shell", "dependsOn": "Build", - "command": "cd build && make Flash", + "command": "make Flash -C build", "args": [ ], "group": "build", diff --git a/compile_commands.json b/compile_commands.json deleted file mode 120000 index 25eb4b2..0000000 --- a/compile_commands.json +++ /dev/null @@ -1 +0,0 @@ -build/compile_commands.json \ No newline at end of file