Changeset - 5752934eb0b2
[Not reviewed]
default
0 3 0
kripperger@CL-SEC241-09.cedarville.edu - 13 years ago 2012-11-07 20:05:47
kripperger@CL-SEC241-09.cedarville.edu
minor setup
3 files changed with 22 insertions and 7 deletions:
0 comments (0 inline, 0 general)
slave/slave/lib/led.c
Show inline comments
 
/*
 
 * led.c
 
 *
 
 * Created: 10/25/2012 10:03:22 PM
 
 *  Author: mkanning
 
 */
 
 
 #include <avr/io.h>
 
 
 void led_configure() {
 
 void led_configure()
 
 {
 
	 // Configure ports/pins for LEDs
 
	 
 
 }
 
 
 void led_on(uint8_t led) {
 
 void led_on(uint8_t led)
 
 {
 
	 // Turn the specified LED on
 
	 
 
 }
 
 
 void led_off(uint8_t led) {
 
 void led_off(uint8_t led)
 
 {
 
	 // Turn the specified LED off
 
	 
 
 }
 
 
 void led_toggle(uint8_t led) {
 
 void led_toggle(uint8_t led)
 
 {
 
	 // Toggle the specified LED
 
	 
 
 }
 
\ No newline at end of file
slave/slave/slave.c
Show inline comments
 
/*
 
 * Slave Firmware
 
 *
 
 * Wireless Observational Modular Aerial Network
 
 * 
 
 * Ethan Zonca
 
 * Matthew Kanning
 
 * Kyle Ripperger
 
 * Matthew Kroening
 
 *
 
 */
 
 
 
#include "config.h"
 
 
#include <avr/io.h>
 
#include <util/delay.h>
 
 
//#include "lib/serial.h"
 
#include "lib/led.h"
 
#include "lib/inputOutput.h"
 
#include "lib/i2c.h"
 
 
void micro_setup() {
 
 
void micro_setup()
 
{
 
	// Generic microcontroller config options
 
	
 
}
 
 
 
 
int main(void)
 
{
 
	// Initialize
 
	micro_setup();
 
	led_configure();
 
	//serial_setup(); // Config serial ports
 
	uint8_t moduleID = io_getModuleId(); //Slave Module ID from rotary dip switch
 
	
 
	
 
    while(1)
 
    {
 
		
 
        //serial_SendCommand('0','A',0,0);
 
		
 
		
 
    }
 
	
 
	return 0;
 
}
 
\ No newline at end of file
slave/slave/slave.cproj
Show inline comments
 
@@ -53,45 +53,45 @@
 
        <avrgcc.compiler.optimization.level>Optimize (-O1)</avrgcc.compiler.optimization.level>
 
        <avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
 
        <avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
 
        <avrgcc.compiler.optimization.DebugLevel>Default (-g2)</avrgcc.compiler.optimization.DebugLevel>
 
        <avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
 
        <avrgcc.linker.libraries.Libraries>
 
          <ListValues>
 
            <Value>m</Value>
 
          </ListValues>
 
        </avrgcc.linker.libraries.Libraries>
 
        <avrgcc.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcc.assembler.debugging.DebugLevel>
 
      </AvrGcc>
 
    </ToolchainSettings>
 
  </PropertyGroup>
 
  <ItemGroup>
 
    <Compile Include="config.h">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="lib\i2c.c">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="lib\i2c.h">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="lib\io.c">
 
    <Compile Include="lib\inputOutput.c">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="lib\io.h">
 
    <Compile Include="lib\inputOutput.h">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="lib\led.c">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="lib\led.h">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="slave.c">
 
      <SubType>compile</SubType>
 
    </Compile>
 
  </ItemGroup>
 
  <ItemGroup>
 
    <Folder Include="lib" />
 
  </ItemGroup>
 
  <Import Project="$(AVRSTUDIO_EXE_PATH)\\Vs\\Compiler.targets" />
 
</Project>
 
\ No newline at end of file
0 comments (0 inline, 0 general)