/****************************************************************************/
/* Copyright 2002-2018 MBARI												*/
/****************************************************************************/
/* Summary	: Debugging Definitions for BEDS2 on PIC32MX470					*/
/* Filename : debug.h														*/
/* Author	: Robert Herlien (rah)											*/
/* Project	: OASIS Mooring Replacement (OASIS3)							*/
/* Revision: 1.0															*/
/* Created	: 10/25/2002													*/
/*																			*/
/* MBARI provides this documentation and code "as is", with no warranty,	*/
/* express or implied, of its quality or consistency. It is provided without*/
/* support and without obligation on the part of the Monterey Bay Aquarium	*/
/* Research Institute to assist in its use, correction, modification, or	*/
/* enhancement. This information should not be published or distributed to	*/
/* third parties without specific written permission from MBARI.			*/
/*																			*/
/****************************************************************************/
/* Modification History:													*/
/* 25oct2002 rah - created on OASIS3										*/
/* 07mar2018 rah - ported to BEDS2 on PIC32MX470							*/
/****************************************************************************/

#ifndef INCdebugh
#define INCdebugh		1

#include <dig_io.h>

#define DEBUG
//#define DEBUG_SLEEP
//#define DEBUG_CONFIG
//#define DEBUG_VAR
#define DEBUG_TICKER
#define DEBUG_RTC
//#define DEBUG_PWRFAIL
//#define DEBUG_SERIAL


/********************************************************************/
/* The following map various Pin macros onto the 8 Test pins		*/
/********************************************************************/

#ifdef DEBUG_TICKER
#define tickPinOn()		digTest0On()
#define tickPinOff()	digTest0Off()
#else
#define tickPinOn()
#define tickPinOff()
#endif
	
#ifdef DEBUG_RTC
#define rtcPinOn()		digTest1On()
#define rtcPinOff()		digTest1Off()
#define rtcAckPinOn()	digTest2On()
#define rtcAckPinOff()	digTest2Off()
#define rtcUpdatePinOn()  digTest3On()
#define rtcUpdatePinOff() digTest3Off()
#else
#define rtcPinOn()
#define rtcPinOff()
#define rtcAckPinOn()
#define rtcAckPinOff()
#define rtcUpdatePinOn()
#define rtcUpdatePinOff()
#endif

#ifdef DEBUG_SERIAL
#define serPinOn()		digTest3On()
#define serPinOff()		digTest3Off()
#else
#define serPinOn()
#define serPinOff()
#endif

#endif	/* INCdebugh */
