Files @ cd11bb83de3a
Branch filter:

Location: seniordesign-firmware/slave/slave/config.h

kripperger@CL-SEC241-09.cedarville.edu
Created functions for operating LEDs and Heater as well as a temperature control structure. Additionally timer loop for main operation was optemized.
/*
 * config.h
 *
 * Created: 10/25/2012 10:00:09 PM
 *  Author: mkanning
 */


 #ifndef CONFIG_H_
 #define CONFIG_H_

 #define F_CPU 11059200				// Clock frequency (used in calculations)

#define USART0_BAUDRATE 115200
#define USART1_BAUDRATE 115200 

#define SENSOR_LOOP 100				// Frequency of sensor reads (in ms)

#define HEATER_THRESHOLD 70			// Temperature threshold in Fahrenheit where heater is activated

 //I2C Addresses
 #define BOARDTEMP_ADDR 0x90		// Read 0x91 - Write 0x90
 #define PRESSURE_ADDR 0xA1		//THIS VALUE IS WRONG
 #define HUMID_ADDR 0xA4		//THIS VALUE IS WRONG
 #define RTC_ADDR 0xA2			//DEBUG [Used for testing]      // Read 0xA3 - Write 0xA2



 #endif /* CONFIG_H_ */