Index: App/Drivers/CPLD.h =================================================================== diff -u -r765d2c35118e202444e737c66c77faf9678cc87e -r29f1ba03faefd982327916590818a260a3e4aa48 --- App/Drivers/CPLD.h (.../CPLD.h) (revision 765d2c35118e202444e737c66c77faf9678cc87e) +++ App/Drivers/CPLD.h (.../CPLD.h) (revision 29f1ba03faefd982327916590818a260a3e4aa48) @@ -1,35 +1,42 @@ -/*********************************************************************** -* -* Copyright Diality, Inc. 2019-2020. All Rights Reserved. -* 181 Technology, Ste. 150 -* Irvine, CA 92618 -* -* Project Denali -* -* @file CPLD.h -* -* @brief header file for CPLD driver . -* -* @date 20-Sep-2019 -* -*************************************************************************/ +/************************************************************************** + * + * Copyright (c) 2019-2019 Diality Inc. - All Rights Reserved. + * + * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN + * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. + * + * @file CPLD.h + * + * @date 20-Sep-2019 + * @author S. Nash + * + * @brief header file for CPLD driver . + * + **************************************************************************/ #ifndef __CPLD_H__ #define __CPLD_H__ +#include "Common.h" + // ********** public function prototypes ********** void initCPLD( void ); -void setCPLDWatchdog( PIN_SIGNAL_STATE_T level ); +void toggleCPLDWatchdog( void ); PIN_SIGNAL_STATE_T getCPLDWatchdogExpired( void ); void setCPLDLampGreen( PIN_SIGNAL_STATE_T level ); -void setCPLDLampYellow( PIN_SIGNAL_STATE_T level ); +void setCPLDLampBlue( PIN_SIGNAL_STATE_T level ); void setCPLDLampRed( PIN_SIGNAL_STATE_T level ); -void setCPLDOffRequest( PIN_SIGNAL_STATE_T level ); +void toggleCPLDOffRequest( void ); PIN_SIGNAL_STATE_T getCPLDOffButton( void ); PIN_SIGNAL_STATE_T getCPLDStopButton( void ); +#ifdef RM46_EVAL_BOARD_TARGET + PIN_SIGNAL_STATE_T getUserButtonState( void ); + void setUserLED( BOOL on ); #endif + +#endif