From 4ef36cca4f52ca21ee70de5bb839bf1059114c1e Mon Sep 17 00:00:00 2001 From: hugo LAMY Date: Sun, 16 Mar 2025 12:23:35 +0100 Subject: [PATCH] fix include not recognized by vscode --- .vscode/c_cpp_properties.json | 52 +++++++++++++++++++---------------- .vscode/settings.json | 8 +++++- 2 files changed, 35 insertions(+), 25 deletions(-) diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index a9ca4af..f3b0e39 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -1,24 +1,28 @@ -{ - "configurations": [ - { - "name": "linux-avr-gcc", - "includePath": ["${workspaceFolder}/**", "/usr/lib/avr/include/**"], - "defines": [], - "mergeConfigurations": false, - "compilerPath": "/usr/bin/avr-gcc", - "cStandard": "gnu11", - "cppStandard": "gnu++14", - "intelliSenseMode": "linux-gcc-x64", - "compilerArgs": ["-mmcu=atmega328p", "-DF_CPU=16000000UL", "-Os"] - }, - { - "name": "linux-gcc-x64", - "includePath": ["${workspaceFolder}/**"], - "compilerPath": "/usr/bin/gcc", - "intelliSenseMode": "linux-gcc-x64", - "compilerArgs": [""], - "mergeConfigurations": false - } - ], - "version": 4 -} +// { +// "configurations": [ +// { +// "name": "AVR", +// "includePath": [ +// "${workspaceFolder}/headers", +// "/opt/homebrew/Cellar/avr-gcc@9/9.4.0_1/lib/avr-gcc/9/gcc/avr/9.4.0/include", +// "/opt/homebrew/Cellar/avr-gcc@9/9.4.0_1/avr/include", +// "/opt/homebrew/include" +// ], +// "defines": ["__AVR_ATmega328P__"], +// "intelliSenseMode": "gcc-x64", +// "cStandard": "c11", +// "cppStandard": "c++17", +// "browse": { +// "path": [ +// "/opt/homebrew/Cellar/avr-gcc@9/9.4.0_1/lib/avr-gcc/9/gcc/avr/9.4.0/include", +// "/opt/homebrew/Cellar/avr-gcc@9/9.4.0_1/avr/include", +// "/opt/homebrew/include" +// // "/opt/homebrew/lib/gcc/avr/include", +// // "/opt/homebrew/lib/gcc/avr/include-fixed" +// ], +// "limitSymbolsToIncludedHeaders": true +// } +// } +// ], +// "version": 4 +// } diff --git a/.vscode/settings.json b/.vscode/settings.json index 7ee5631..7234d9c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,5 +3,11 @@ "editor.detectIndentation": false, "files.associations": { "header.h": "c" - } + }, + "C_Cpp.default.includePath": [ + "${workspaceFolder}/headers", + "/opt/homebrew/Cellar/avr-gcc@9/9.4.0_1/lib/avr-gcc/9/gcc/avr/9.4.0/include", + "/opt/homebrew/Cellar/avr-gcc@9/9.4.0_1/avr/include", + "/opt/homebrew/include" + ] }