From d28b573e761cbff657a52ddafc047999735bb701 Mon Sep 17 00:00:00 2001 From: mandlm Date: Fri, 15 Jan 2016 13:19:08 +0100 Subject: [PATCH] Moved cpu frequency to extra header file --- LCD/LCD/LCD.cpp | 3 +- LCD/LCD/LCD.cppproj | 119 ++++++++++++++++++------------------------ LCD/LCD/environment.h | 3 ++ 3 files changed, 54 insertions(+), 71 deletions(-) create mode 100644 LCD/LCD/environment.h diff --git a/LCD/LCD/LCD.cpp b/LCD/LCD/LCD.cpp index 601a0c1..50b2a20 100644 --- a/LCD/LCD/LCD.cpp +++ b/LCD/LCD/LCD.cpp @@ -1,5 +1,4 @@ - -#define F_CPU 4336180 +#include "environment.h" #include #include diff --git a/LCD/LCD/LCD.cppproj b/LCD/LCD/LCD.cppproj index 2eaaa52..709cea6 100644 --- a/LCD/LCD/LCD.cppproj +++ b/LCD/LCD/LCD.cppproj @@ -56,83 +56,64 @@ - True - True - True - True - False - True - True - - - NDEBUG - - - Optimize for size (-Os) - True - True - True - True - True - - - NDEBUG - - - Optimize for size (-Os) - True - True - True - - - libm - - - + True + True + True + True + False + True + True + True + True + True + True + True + True + True + True + -std=c++11 + libm + NDEBUG + Optimize for size (-Os) + NDEBUG + Optimize for size (-Os) + - True - True - True - True - False - True - True - - - DEBUG - - - Optimize (-O1) - True - True - Default (-g2) - True - True - True - - - DEBUG - - - Optimize (-O1) - True - True - Default (-g2) - True - - - libm - - - Default (-Wa,-g) - + True + True + True + True + False + True + True + True + True + True + True + True + True + True + True + -std=c++11 + libm + DEBUG + Optimize (-O1) + Default (-g2) + DEBUG + Optimize (-O1) + Default (-g2) + Default (-Wa,-g) + + + compile + compile diff --git a/LCD/LCD/environment.h b/LCD/LCD/environment.h new file mode 100644 index 0000000..a916ef1 --- /dev/null +++ b/LCD/LCD/environment.h @@ -0,0 +1,3 @@ +#pragma once + +#define F_CPU 4336180 \ No newline at end of file