/****************************************************************************/
/* Copyright 1991, 1992 MBARI                                               */
/****************************************************************************/
/* Summary  : Microcontroller Constants                                     */
/* Filename : applic.h                                                      */
/* Author   : Andrew Pearce                                                 */
/* Project  : Tiburon ROV                                                   */
/* Version  : 1.0                                                           */
/* Created  : 04/26/91                                                      */
/* Modified : 04/01/92                                                      */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/* $Header: /usr/tiburon/.cvsroot/micro/h/const.h,v 1.1.1.1 1997/05/02 17:15:37 pean Exp $
 * $Log: const.h,v $
 * Revision 1.1.1.1  1997/05/02 17:15:37  pean
 * Initial release of the microcontroller software after Tiburon
 * Moolpool Dive to test IView, Lapboxes, modified Power can
 * GF/5V using bus capacitance mode.
 *
 * Revision 1.1  92/05/14  09:17:46  09:17:46  pean (Andrew Pearce 408-647-3746)
 * Initial revision
 *
*/
/****************************************************************************/

#ifndef CONST_H
#define CONST_H

#ifndef FALSE
#define FALSE   0
#define TRUE    ~FALSE
#endif

#define ON  TRUE
#define OFF FALSE

#define EQUAL    0                      /* strcmp returns 0 if strings match*/

#ifndef OK
#define OK   0
#define ERROR   -1
#endif

#ifndef min
#define min(a,b)    (a) < (b) ? (a) : (b)
#define max(a,b)    (a) > (b) ? (a) : (b)
#endif

#ifndef abs
#define abs(x)      (x < 0 ? -x : x)
#endif

#ifndef sign
#define sign(x)      (x < 0 ? -1 : 1)
#endif

#define FOREVER     for(;;)


#endif
