diff --git a/Makefile b/.archive/Makefile similarity index 100% rename from Makefile rename to .archive/Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 26a98d3..9a7ac02 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -1,21 +1,14 @@ { "configurations": [ - { - "includePath": [ - "/usr/avr/include" - ], - "intelliSenseMode": "linux-gcc-x64", - "compilerPath": "/usr/lib64/ccache/clang", - "cStandard": "c17", - "cppStandard": "c++17" - }, { "name": "AVR", "intelliSenseMode": "${default}", - "compilerPath": "", "cStandard": "${default}", "cppStandard": "${default}", - "includePath": [], + "includePath": [ + "/usr/avr/lib/**", + "/usr/avr/include/**" + ], "compilerArgs": [ "-g", "-Os", @@ -24,8 +17,11 @@ "-fpermissive", "-fno-exceptions", "-fno-threadsafe-statics", - "-pipe" - ] + "-pipe", + "-mmcu=atmega2560", + "-DF_CPU=16000000UL" + ], + "compilerPath": "/usr/bin/avr-gcc" } ], "version": 4 diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..1d6c80f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,6 @@ +{ + "recommendations": [ + "alex079.vscode-avr-helper", + "ms-vscode.cpptools" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..31ef246 --- /dev/null +++ b/.vscode/settings.json @@ -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" + ] +} \ No newline at end of file