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": [ // "configurations": [
{ // {
"name": "linux-avr-gcc", // "name": "AVR",
"includePath": ["${workspaceFolder}/**", "/usr/lib/avr/include/**"], // "includePath": [
"defines": [], // "${workspaceFolder}/headers",
"mergeConfigurations": false, // "/opt/homebrew/Cellar/avr-gcc@9/9.4.0_1/lib/avr-gcc/9/gcc/avr/9.4.0/include",
"compilerPath": "/usr/bin/avr-gcc", // "/opt/homebrew/Cellar/avr-gcc@9/9.4.0_1/avr/include",
"cStandard": "gnu11", // "/opt/homebrew/include"
"cppStandard": "gnu++14", // ],
"intelliSenseMode": "linux-gcc-x64", // "defines": ["__AVR_ATmega328P__"],
"compilerArgs": ["-mmcu=atmega328p", "-DF_CPU=16000000UL", "-Os"] // "intelliSenseMode": "gcc-x64",
}, // "cStandard": "c11",
{ // "cppStandard": "c++17",
"name": "linux-gcc-x64", // "browse": {
"includePath": ["${workspaceFolder}/**"], // "path": [
"compilerPath": "/usr/bin/gcc", // "/opt/homebrew/Cellar/avr-gcc@9/9.4.0_1/lib/avr-gcc/9/gcc/avr/9.4.0/include",
"intelliSenseMode": "linux-gcc-x64", // "/opt/homebrew/Cellar/avr-gcc@9/9.4.0_1/avr/include",
"compilerArgs": [""], // "/opt/homebrew/include"
"mergeConfigurations": false // // "/opt/homebrew/lib/gcc/avr/include",
} // // "/opt/homebrew/lib/gcc/avr/include-fixed"
], // ],
"version": 4 // "limitSymbolsToIncludedHeaders": true
} // }
// }
// ],
// "version": 4
// }

View File

@@ -3,5 +3,11 @@
"editor.detectIndentation": false, "editor.detectIndentation": false,
"files.associations": { "files.associations": {
"header.h": "c" "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"
]
} }