/****************************************************************************/
/* Copyright 2003 MBARI.                                                    */
/* Monterey Bay Aquarium Research Institute Proprietary Information.        */
/* All rights reserved.                                                     */
/****************************************************************************/
#ifndef GFD_H
#define GFD_H

/*
    The ticks per second is based on an 8-bit counter over flowing that
    is driven by a 4 Mhz ocsillator prescaled by 4 and postscaled by 64.

    TICKS_PER_SEC = (OSC_CLK) / (PRESCALE) / (POSTSCALE) / (8_BIT_OVERFLOW)
                  = 3580000   /     4      /      64     /      256
                  = 54.626
*/
#define TICKS_PER_SEC       55
#define INTEGRATION_TIME    5

#define HIGH_SIDE           PIN_B0
#define LOW_SIDE            PIN_B1  

/* error codes */
#define ERR_SUCCESS         0x00
#define NO_COMMAND_MATCH    0x01


#define MAX_CHARS           15


#endif
