fix include not recognized by vscode

This commit is contained in:
hugo LAMY
2025-03-16 12:23:35 +01:00
parent 28f0617e48
commit 4ef36cca4f
2 changed files with 35 additions and 25 deletions

View File

@@ -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
// }

View File

@@ -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"
]
}