Changeset - 4fc06a89c712
[Not reviewed]
default
0 2 0
kripperger@CL-SEC241-09.cedarville.edu - 12 years ago 2012-11-19 22:12:01
kripperger@CL-SEC241-09.cedarville.edu
Gieger Optimization and formatting
2 files changed with 8 insertions and 2 deletions:
0 comments (0 inline, 0 general)
slave/slave/modules.c
Show inline comments
 
@@ -80,12 +80,17 @@
 
 {
 
	  
 
 }
 
  
 
 void modules_geiger_setup()
 
 {
 
	// Pin setup
 
	DDRA &= ~(1 << DDRA0);	// PA0 is an input
 
	
 
	
 
	 
 
	// Setup for interrupt input on PA0 (PCINT0)
 
	PCMSK0 |= (1 << PCINT0);	// Enable interrupt for PA0
 
	PCICR |= (1 << PCIE0);		// Enable ioc section PCIF0
 
	
 
	// Setup for interrupt from Timer2
 
	ASSR &= ~(1 << EXCLK);	// Disable external clock input (enabling crystal use)
slave/slave/slave.c
Show inline comments
 
@@ -29,13 +29,14 @@
 
#include "lib/cameras.h"
 
 
 
void micro_setup()
 
{
 
	// Generic microcontroller config options
 
	DDRA = 0xFE;		//PORTA is output //DEBUG
 
	
 
	//DDRA = 0xFE;		//PORTA is output //DEBUG
 
 
 
}
 
 
 
int main(void)
 
@@ -44,13 +45,13 @@ int main(void)
 
	micro_setup();			// Generic microcontroller config options
 
	led_configure();		//
 
	i2c_init();				// Setup I2C
 
	//serial_setup();		// Config serial ports
 
	
 
	uint8_t moduleID = io_getModuleId(); // Slave Module ID from rotary dip switch
 
	moduleID=2;	//DEBUG///////////////////////////////////////////////////////////////////////////////////////////
 
	//moduleID=2;	//DEBUG///////////////////////////////////////////////////////////////////////////////////////////
 
	modules_setup(moduleID);
 
 
	
 
 
	
 
	
0 comments (0 inline, 0 general)