# HG changeset patch # User ethanzonca@CL-SEC241-08.cedarville.edu # Date 2012-10-25 15:33:23 # Node ID fd5edafa71baaa555cb50d88574e46e442990215 # Parent d56808391611fe7c596dbfa98a5086717d39bb0a Reorganized, moved functions to library diff --git a/master/master.atsln b/master/master.atsln new file mode 100644 --- /dev/null +++ b/master/master.atsln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Atmel Studio Solution File, Format Version 11.00 +Project("{54F91283-7BC4-4236-8FF9-10F437C3AD48}") = "master", "master\master.cproj", "{8579EC2D-5815-40DB-84E0-1D14239C7AEA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|AVR = Debug|AVR + Release|AVR = Release|AVR + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8579EC2D-5815-40DB-84E0-1D14239C7AEA}.Debug|AVR.ActiveCfg = Debug|AVR + {8579EC2D-5815-40DB-84E0-1D14239C7AEA}.Debug|AVR.Build.0 = Debug|AVR + {8579EC2D-5815-40DB-84E0-1D14239C7AEA}.Release|AVR.ActiveCfg = Release|AVR + {8579EC2D-5815-40DB-84E0-1D14239C7AEA}.Release|AVR.Build.0 = Release|AVR + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/master/master/config.h b/master/master/config.h new file mode 100644 --- /dev/null +++ b/master/master/config.h @@ -0,0 +1,16 @@ +/* + * config.h + * + * Created: 10/25/2012 3:28:22 PM + * Author: ethanzonca + */ + + +#ifndef CONFIG_H_ +#define CONFIG_H_ + +#define F_CPU 11059200 +#define USART_BAUDRATE 19200 +#define BAUD_PRESCALE (((F_CPU / (USART_BAUDRATE * 16UL))) -1 ) + +#endif /* CONFIG_H_ */ \ No newline at end of file diff --git a/master/master/lib/serial.c b/master/master/lib/serial.c new file mode 100644 --- /dev/null +++ b/master/master/lib/serial.c @@ -0,0 +1,45 @@ +/* + * serial.c + * + * Created: 10/25/2012 3:19:49 PM + * Author: ethanzonca + */ + +#include + +void serial_SendChar( char byte ) +{ + while (!(UCSR0A & (1< - -void SendChar( char byte ) -{ - while (!(UCSR0A & (1< +#include -void SendResponseData(){ - -} +#include "lib/serial.h" int main(void) { + // Initialize + serial_Configure(); // Config serial ports + while(1) { - //TODO:: Please write your application code - + serial_SendCommand('0','A',0,0); } } \ No newline at end of file diff --git a/master/master/master.cproj b/master/master/master.cproj --- a/master/master/master.cproj +++ b/master/master/master.cproj @@ -21,53 +21,82 @@ 0 3.1.3 + com.atmel.avrdbg.tool.simulator + + + com.atmel.avrdbg.tool.simulator + AVR Simulator + + + true + false + + + + 127.0.0.1 + 52692 + False + + - True - True - True - True - True - Optimize for size (-Os) - True - True - True - - - m - - - + True + True + True + True + True + Optimize for size (-Os) + True + True + True + + + m + + + - True - True - True - True - True - Optimize (-O1) - True - True - Default (-g2) - True - - - m - - - Default (-Wa,-g) - + True + True + True + True + True + Optimize (-O1) + True + True + Default (-g2) + True + + + m + + + Default (-Wa,-g) + + + compile + + + compile + + + compile + compile + + + \ No newline at end of file