/************************************************************************/
/* Copyright 2016 MBARI													*/
/************************************************************************/
/* Summary  : Power Fail Definitions for OASIS5 on PIC32MX470F512L		*/
/* Filename : pwrFail.h													*/
/* Author   : Robert Herlien (rah)										*/
/* Project  : OASIS Mooring Replacement (OASIS5)						*/
/* Revision : 1.0														*/
/* Created  : 08/26/2016												*/
/*                                                                          */
/* 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:                                                */
/* 26aug2016 rah - created												*/
/************************************************************************/

#ifndef INCpwrFailh
#define INCpwrFailh		1

#include <debug.h>
#include <dig_io.h>

#ifdef  DEBUG_PWRFAIL								/* defined in debug.h	*/
#define pwrFailIntPinOn()	digTest2On()
#define pwrFailIntPinOff()	digTest2Off()
#define pwrFailTaskPinOn()	digTest3On()
#define pwrFailTaskPinOff()	digTest3Off()
#else
#define pwrFailIntPinOn()
#define pwrFailIntPinOff()
#define pwrFailTaskPinOn()
#define pwrFailTaskPinOff()
#endif


/****************************************/
/* Function Declarations                */
/****************************************/

void	pwrFailInit(void);


#endif  /* INCpwrFailh */
