let's use the avr helper library instead

This commit is contained in:
Lea 2023-08-25 09:52:13 +02:00
parent 4ad293bd35
commit 21d1da0f03
Signed by: Lea
GPG key ID: 1BAFFE8347019C42
5 changed files with 36 additions and 13 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
build/

View file

@ -1,21 +1,14 @@
{ {
"configurations": [ "configurations": [
{
"includePath": [
"/usr/avr/include"
],
"intelliSenseMode": "linux-gcc-x64",
"compilerPath": "/usr/lib64/ccache/clang",
"cStandard": "c17",
"cppStandard": "c++17"
},
{ {
"name": "AVR", "name": "AVR",
"intelliSenseMode": "${default}", "intelliSenseMode": "${default}",
"compilerPath": "",
"cStandard": "${default}", "cStandard": "${default}",
"cppStandard": "${default}", "cppStandard": "${default}",
"includePath": [], "includePath": [
"/usr/avr/lib/**",
"/usr/avr/include/**"
],
"compilerArgs": [ "compilerArgs": [
"-g", "-g",
"-Os", "-Os",
@ -24,8 +17,11 @@
"-fpermissive", "-fpermissive",
"-fno-exceptions", "-fno-exceptions",
"-fno-threadsafe-statics", "-fno-threadsafe-statics",
"-pipe" "-pipe",
] "-mmcu=atmega2560",
"-DF_CPU=16000000UL"
],
"compilerPath": "/usr/bin/avr-gcc"
} }
], ],
"version": 4 "version": 4

6
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"recommendations": [
"alex079.vscode-avr-helper",
"ms-vscode.cpptools"
]
}

20
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,20 @@
{
"AVR.reporter.arguments": [
"-C"
],
"AVR.source.compiler": "/usr/bin/avr-gcc",
"AVR.programmer.tool": "/usr/bin/avrdude",
"AVR.source.libraries": [
"/usr/avr/lib",
"/usr/avr/include"
],
"C_Cpp.default.compilerPath": "/usr/bin/avr-gcc",
"AVR.device.type": "atmega2560",
"AVR.device.frequency": 16000000,
"AVR.programmer.type": "wiring",
"AVR.programmer.port": "/dev/ttyACM0",
"AVR.programmer.rate": 115200,
"AVR.programmer.arguments": [
"-D"
]
}