From 5cde5428e0e3ddd0a87fb39112639f776f9c9038 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sun, 29 Mar 2020 01:29:59 +0100 Subject: [PATCH] Initial commit --- .clang-format | 13 +++ .gitattributes | 9 ++ .gitignore | 11 ++ LICENSE | 21 ++++ thermistor.atsln | 22 ++++ thermistor/main.cpp | 4 + thermistor/thermistor.cppproj | 186 ++++++++++++++++++++++++++++++++++ 7 files changed, 266 insertions(+) create mode 100644 .clang-format create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 thermistor.atsln create mode 100644 thermistor/main.cpp create mode 100644 thermistor/thermistor.cppproj diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..63ebf38 --- /dev/null +++ b/.clang-format @@ -0,0 +1,13 @@ +--- +BasedOnStyle: LLVM +ColumnLimit: 120 +IndentWidth: 4 +TabWidth: 4 +UseTab: ForIndentation +AlignEscapedNewlines: DontAlign +AllowShortFunctionsOnASingleLine: Empty +AlwaysBreakTemplateDeclarations: true +BreakBeforeBraces: Custom +BraceWrapping: + AfterFunction: true +... diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3e5b64f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +*.h eol=lf +*.hpp eol=lf +*.c eol=lf +*.cpp eol=lf +.git* eol=lf +*.vcxproj* eol=crlf +*.cppproj eol=crlf +*.sln eol=crlf +*.atsln eol=crlf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f584cc --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +.vs +Release +Debug +*.componentinfo.xml +*.elf +*.o +*.hex +*.srec +*.eeprom +*.lss +*.map diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..80da57f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 BlackMark + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next +paragraph) shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF +OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/thermistor.atsln b/thermistor.atsln new file mode 100644 index 0000000..b173978 --- /dev/null +++ b/thermistor.atsln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Atmel Studio Solution File, Format Version 11.00 +VisualStudioVersion = 14.0.23107.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{E66E83B9-2572-4076-B26E-6BE79FF3018A}") = "thermistor", "thermistor\thermistor.cppproj", "{DCE6C7E3-EE26-4D79-826B-08594B9AD897}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|AVR = Debug|AVR + Release|AVR = Release|AVR + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Debug|AVR.ActiveCfg = Debug|AVR + {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Debug|AVR.Build.0 = Debug|AVR + {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.ActiveCfg = Release|AVR + {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.Build.0 = Release|AVR + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/thermistor/main.cpp b/thermistor/main.cpp new file mode 100644 index 0000000..a46866d --- /dev/null +++ b/thermistor/main.cpp @@ -0,0 +1,4 @@ +int main() +{ + return 0; +} diff --git a/thermistor/thermistor.cppproj b/thermistor/thermistor.cppproj new file mode 100644 index 0000000..8f6a4af --- /dev/null +++ b/thermistor/thermistor.cppproj @@ -0,0 +1,186 @@ + + + + 2.0 + 7.0 + com.Atmel.AVRGCC8.CPP + dce6c7e3-ee26-4d79-826b-08594b9ad897 + ATmega328P + none + Executable + CPP + $(MSBuildProjectName) + .elf + $(MSBuildProjectDirectory)\$(Configuration) + thermistor + thermistor + thermistor + avr-g++-9.1.0 + true + false + true + true + 0x20000000 + + true + exception_table + 2 + 0 + 0 + + com.atmel.avrdbg.tool.stk500 + + 0x1E950F + + + + 125000 + + ISP + + com.atmel.avrdbg.tool.stk500 + + + STK500 + + ISP + 125000 + + + + + + + + + + + + + + + + + -mmcu=atmega328p + True + True + True + True + False + True + True + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + True + True + True + True + -fno-threadsafe-statics -std=c11 + True + True + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + True + True + True + -fno-threadsafe-statics -Wextra -std=c++17 + + + libm + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + + + NDEBUG + + + Optimize for size (-Os) + + + NDEBUG + + + Optimize for size (-Os) + + + + + + + -mmcu=atmega328p + True + True + True + True + False + True + True + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + True + True + True + True + -fno-threadsafe-statics -std=c11 + True + True + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + True + True + True + -fno-threadsafe-statics -Wextra -std=c++17 + + + libm + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + + + DEBUG + + + Optimize (-O1) + Maximum (-g3) + + + DEBUG + + + Optimize (-O1) + Maximum (-g3) + Default (-Wa,-g) + + + + + + compile + + + + + + \ No newline at end of file