Files @ 39ba984f39e8
Branch filter:

Location: seniordesign-firmware/master/master/config.h - annotation

mkroening@CL-ENS241-07.cedarville.edu
Added sensor register info
b6a1b8d502cc
b6a1b8d502cc
b6a1b8d502cc
b6a1b8d502cc
b6a1b8d502cc
b6a1b8d502cc
b6a1b8d502cc
b6a1b8d502cc
b6a1b8d502cc
b6a1b8d502cc
b6a1b8d502cc
fd5edafa71ba
fd5edafa71ba
fd5edafa71ba
fd5edafa71ba
b6a1b8d502cc
b6a1b8d502cc
b6a1b8d502cc
b6a1b8d502cc
290b43cea415
29209506593c
fd5edafa71ba
5b9c23cdba0a
0062f8daffe7
b6a1b8d502cc
911461738d90
911461738d90
48acfcb35ad3
104a7b37e488
6060ac6db4a5
6060ac6db4a5
6060ac6db4a5
6060ac6db4a5
6060ac6db4a5
a20e51697fd8
a20e51697fd8
fe1ae61c1293
fe1ae61c1293
fe1ae61c1293
a20e51697fd8
6060ac6db4a5
6060ac6db4a5
48acfcb35ad3
48acfcb35ad3
70abc5d16090
e3153d5a767c
e3153d5a767c
b6a1b8d502cc
e68fbe17cd36
e68fbe17cd36
e68fbe17cd36
70abc5d16090
104a7b37e488
104a7b37e488
104a7b37e488
104a7b37e488
104a7b37e488
104a7b37e488
104a7b37e488
104a7b37e488
104a7b37e488
104a7b37e488
104a7b37e488
104a7b37e488
0062f8daffe7
0062f8daffe7
0062f8daffe7
0062f8daffe7
0062f8daffe7
0062f8daffe7
104a7b37e488
70abc5d16090
70abc5d16090
70abc5d16090
6023002a8b9e
0062f8daffe7
70abc5d16090
b6a1b8d502cc
9716361162e0
9716361162e0
9716361162e0
9716361162e0
9716361162e0
d62f0f469869
9716361162e0
9716361162e0
9716361162e0
9716361162e0
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
b6a1b8d502cc
0e169f68c994
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
11be7f0ce05b
73066872237e
9716361162e0
48acfcb35ad3
83633fbb38d0
137d4566a1d4
b6a1b8d502cc
137d4566a1d4
137d4566a1d4
137d4566a1d4
137d4566a1d4
137d4566a1d4
137d4566a1d4
137d4566a1d4
137d4566a1d4
137d4566a1d4
48acfcb35ad3
48acfcb35ad3
48acfcb35ad3
0e169f68c994
0e169f68c994
0e169f68c994
fd5edafa71ba
/*
 * Master Firmware: Configuration
 *
 * Wireless Observational Modular Aerial Network
 * 
 * Ethan Zonca
 * Matthew Kanning
 * Kyle Ripperger
 * Matthew Kroening
 *
 */

#ifndef CONFIG_H_
#define CONFIG_H_

// --------------------------------------------------------------------------
// Module config (master.c)
// --------------------------------------------------------------------------

#define DEBUG_OUTPUT

#define F_CPU 11059200
#define MODULE_ID '1'
#define BOARDTEMP_ADDR 0x90

#define HEATER_THRESHOLD 70

// --------------------------------------------------------------------------
// Error Codes config (led.c, used throughout code)
// --------------------------------------------------------------------------

// SD Card
#define ERROR_SD_INIT 2
#define ERROR_SD_PARTITION 3
#define ERROR_SD_FILE 4

#define ERROR_XBEETIMEOUT 5
#define ERROR_NOXBEE 6

#define ERROR_CRAP 15

// --------------------------------------------------------------------------
// Slave Sensors config (slavesensors.c)
// --------------------------------------------------------------------------

#define MAX_NUM_SLAVES 5  // Maximum number of nodes in the system
#define MAX_NUM_SENSORS 20 // Maximum number of unique types of sensors in the system

// Node identifier of log destination xbee
#define XBEE_LOGDEST_NAME "HAB-LOGGER"

// --------------------------------------------------------------------------
// Command Parser config (serparser.c)
// --------------------------------------------------------------------------

// Maximum payload size of command
#define MAX_PAYLOAD_LEN 16

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

// Public broadcast address
#define BROADCAST_ADDR 0 


// --------------------------------------------------------------------------
// GPS config (xxx.c)
// --------------------------------------------------------------------------
#define NMEABUFFER_SIZE 150

// --------------------------------------------------------------------------
// USART config (serial.c)
// --------------------------------------------------------------------------

#define USART0_BAUDRATE 115200
#define USART1_BAUDRATE 115200


// --------------------------------------------------------------------------
// AX.25 config (ax25.c)
// --------------------------------------------------------------------------

// TX delay in milliseconds
#define TX_DELAY      500

// Maximum packet delay
#define MAX_PACKET_LEN 512  // bytes


// --------------------------------------------------------------------------
// APRS config (aprs.c)
// --------------------------------------------------------------------------

// Set your callsign and SSID here. Common values for the SSID are
// (from http://zlhams.wikidot.com/aprs-ssidguide):
//
// - Balloons:  11
// - Cars:       9
// - Home:       0
// - IGate:      5
#define S_CALLSIGN      "KD8TDF"
#define S_CALLSIGN_ID   9 // 11

// Destination callsign: APRS (with SSID=0) is usually okay.
#define D_CALLSIGN      "APRS"
#define D_CALLSIGN_ID   0

// Digipeating paths:
// (read more about digipeating paths here: http://wa8lmf.net/DigiPaths/ )
// The recommended digi path for a balloon is WIDE2-1 or pathless. The default
// is pathless. Uncomment the following two lines for WIDE2-1 path:
#define DIGI_PATH1      "WIDE2"
#define DIGI_PATH1_TTL  1

// APRS comment: this goes in the comment portion of the APRS message. You
// might want to keep this short. The longer the packet, the more vulnerable
// it is to noise.
#define APRS_COMMENT    "[A-30.5 B45.64 C99542]"

// Transmit the APRS sentence every X milliseconds
#define APRS_TRANSMIT_PERIOD 20000


// --------------------------------------------------------------------------
// Logger config (logger.c)
// --------------------------------------------------------------------------

#define LOGGER_ID_EEPROM_ADDR 0x10

// Written to the beginning of every log file
#define LOGGER_HEADERTEXT "HAB Control Master - 1.0\n"

// Log to SD card every X milliseconds
#define LOGGER_RATE 1000 

// LED cycle indicator speed
#define LEDCYCLE_RATE 100 

#endif /* CONFIG_H_ */