/****************************************************************************/
/* Copyright 1990, 1991, 1992, 1993 MBARI                                   */
/****************************************************************************/
/* Summary  : hardware declarations for IBC CPU microcontroller board       */
/* Filename : sysLib.h                                                      */
/* Author   : Andrew Pearce                                                 */
/* Project  : ROV 1.5 Microcontroller Board Rev 2.0                         */
/* Version  : 1.0                                                           */
/* Created  : 11/21/90                                                      */
/* Modified : 05/11/92                                                      */
/* Archived :                                                               */
/****************************************************************************/

#define CLOCK_FREQ  10000000        /* CPU Clock Frequency is 10MHz         */

                                    /* IO Port 1 bit functions              */
#define LED_CONTROL_BIT     0x10    /* On board LED control bit             */

                                    /* IO Port 2 bit functions              */
#define RS485_CONTROL_BIT   0x20    /* RS 485 transmitter control bit       */

#define HUMIDITY_SENSOR_CHAN   0    /* Humidity sensor in A/D Channel 0     */

/****************************************************************************/

#ifdef __STDC__                     /* ANSI C function prototypes           */

Void initIoport1( Void );

Void initIoport2( Void );

Void setBaudRate(Nat16 baudRate);

Void transmitControl(Int16 mode);

Void groundFaultTest(Int16 status);

Void toggleLED( Void );

Void ledControl(Int16 status);

Int16 readHumidity( Void );

#endif /* __STDC__ */

