commit e9e2cf2e63d08a5fb9b90e5c5436a286e2bab356 Author: BlackMark Date: Wed Apr 26 23:18:17 2017 +0200 Initial commit 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..38e936d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.vs +Release +Debug +*.componentinfo.xml +avrdude.bat diff --git a/ds3231.atsln b/ds3231.atsln new file mode 100644 index 0000000..74635dc --- /dev/null +++ b/ds3231.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.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{E66E83B9-2572-4076-B26E-6BE79FF3018A}") = "ds3231", "ds3231\ds3231.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/ds3231/ds3231.cppproj b/ds3231/ds3231.cppproj new file mode 100644 index 0000000..d2efcd0 --- /dev/null +++ b/ds3231/ds3231.cppproj @@ -0,0 +1,145 @@ + + + + 2.0 + 7.0 + com.Atmel.AVRGCC8.CPP + dce6c7e3-ee26-4d79-826b-08594b9ad897 + ATmega328P + none + Executable + CPP + $(MSBuildProjectName) + .elf + $(MSBuildProjectDirectory)\$(Configuration) + ds3231 + ds3231 + ds3231 + Native + true + false + true + true + 0x20000000 + + true + exception_table + 2 + 0 + + + + + + + + + + + + + com.atmel.avrdbg.tool.simulator + + 0x1E950F + + + + + + + + custom + + + Custom Programming Tool + + + + + + + + + + com.atmel.avrdbg.tool.simulator + + + Simulator + + + + + + -mmcu=atmega328p -B "%24(PackRepoDir)\atmel\ATmega_DFP\1.2.132\gcc\dev\atmega328p" + True + True + True + True + False + True + True + %24(PackRepoDir)\atmel\ATmega_DFP\1.2.132\include + True + True + True + True + True + %24(PackRepoDir)\atmel\ATmega_DFP\1.2.132\include + True + True + True + True + -Wextra -std=c++11 + libm + %24(PackRepoDir)\atmel\ATmega_DFP\1.2.132\include + NDEBUG + Optimize for size (-Os) + NDEBUG + Optimize for size (-Os) + + + echo "C:\avrdude-6.2\avrdude.exe" -v -p$(avrdevice) %%* -Uflash:w:"$(OutputDirectory)\$(Name).hex":i > "$(MSBuildProjectDirectory)\avrdude.bat" + + + + + -mmcu=atmega328p -B "%24(PackRepoDir)\atmel\ATmega_DFP\1.2.132\gcc\dev\atmega328p" + True + True + True + True + False + True + True + %24(PackRepoDir)\atmel\ATmega_DFP\1.2.132\include + True + True + True + True + True + %24(PackRepoDir)\atmel\ATmega_DFP\1.2.132\include + True + True + True + True + -Wextra -std=c++11 + libm + %24(PackRepoDir)\atmel\ATmega_DFP\1.2.132\include + DEBUG + Optimize (-O1) + Default (-g2) + DEBUG + Optimize (-O1) + Default (-g2) + Default (-Wa,-g) + + + echo "C:\avrdude-6.2\avrdude.exe" -v -p$(avrdevice) %%* -Uflash:w:"$(OutputDirectory)\$(Name).hex":i > "$(MSBuildProjectDirectory)\avrdude.bat" + + + + compile + + + + \ No newline at end of file diff --git a/ds3231/main.cpp b/ds3231/main.cpp new file mode 100644 index 0000000..e69de29