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
 
@@ -83,6 +83,11 @@
 
  
 
 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
slave/slave/slave.c
Show inline comments
 
@@ -32,7 +32,8 @@
 
void micro_setup()
 
{
 
	// Generic microcontroller config options
 
	DDRA = 0xFE;		//PORTA is output //DEBUG
 
	
 
	//DDRA = 0xFE;		//PORTA is output //DEBUG
 
 
 
}
 
@@ -47,7 +48,7 @@ int main(void)
 
	//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)