#ifdef LOCAL
#define EXTERN
#else
#define EXTERN extern
#endif

/*
Do not change the definition of TRUE and False. Bit fields use them and can
not hold more than 1 bit of information - 0 or 1 value.
*/
#define TRUE 1
#define FALSE 0

enum modes { INITIALIZE, MANUAL, AUTO, CALIBRATE, DETECT, IDLE };
EXTERN enum modes mode;
EXTERN enum modes old_mode;
EXTERN enum modes  hold_for_mode;



//#define PULSE_TIMEOUT 625
#define PULSE_TIMEOUT 800
#define LIMIT_HOLDOFF 650

EXTERN unsigned char request_lcd_refresh;

