Files @ 0fb8009f1a0a
Branch filter:

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

mkroening@CL-ENS241-07.cedarville.edu
EEPROM testing
/*
 * 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)

//Serial
#define USART0_BAUDRATE 115200
#define USART1_BAUDRATE 115200 

// Circular serial buffer size. Must be at least MAX_CMD_LEN + 5
#define BUFFER_SIZE 32

// Maximum payload size of command
#define MAX_PAYLOAD_LEN 16

// Number of datatypes to transmit per module type
#define DATATYPES_GENERIC 3
#define DATATYPES_SENSOR 8
#define DATATYPES_GEIGER 4
#define DATATYPES_CAMERA 3

//Sensors and IO
#define SENSOR_LOOP 100				// Frequency of sensor reads (in ms) (should be 200)
#define HEATER_THRESHOLD 40			// Temperature threshold in Fahrenheit where heater is activated

 //I2C Addresses
 #define EEPROM_ADDR 0xA0		// Read 0xA1 - Write 0xA0
 #define BOARDTEMP_ADDR 0x90	// Read 0x91 - Write 0x90
 #define PRESSURE_ADDR 0xEE		// Read 0xEF - Write 0xEE
 #define HUMID_ADDR 0x26		// Read 0x27 - Write 0x26
 #define LIGHT_ADDR 0x94		// Read 0x95 - Write 0x94
 #define RTC_ADDR 0xB2			//DEBUG [Used for testing]      // Read 0xA3 - Write 0xA2



 #endif /* CONFIG_H_ */