#ifndef __DockingStation_H
#define __DockingStation_H

/* PIC 18C452 Docking Station library header*/



/************* I/O Port A Functions***********/
/* RA0 - RA3 are Analog Inputs*/
/*RA4*/ 
#define  DAC1_CS_L PORTAbits.RA4
#define on 1
#define off 0
#define yes 1
#define no 0

/*RA6 NA */ 

/************* I/O Port B Functions***********/
/*RB0/INT0 is the RTC interrupt*/
#define RTC_INT PORTBbits.RB0
/*RB1/INT1 is the RS232 interrupt*/
#define RS232_INT PORTBbits.RB1
/*RB2 is RS232_CTR0 "See RS232 control nib" */
#define RS232_CTR0 PORTBbits.RB2
/*RB3 is PGM Program and Debug pin */
/*RB4 is SPI_DAC_CS_L*/
#define DAC0_CS_L PORTBbits.RB4
/*RB5 is RS232CTR1 "See RS232 control nib" */
#define RS232_CTR1 PORTBbits.RB5
/*RB6 is PGC Program and Debug pin */
/*RB7 is PGD Program and Debug pin */

/************* I/O Port C Functions***********/
/*RC0 is RTC_CS */
#define RTC_CS PORTCbits.RC0 
/*RC1 is RS232CTR2 "See RS232 control nib" */
#define RS232CTR2 PORTCbits.RC1
/*RC2 is RS232CTR3 "See RS232 control nib" */
#define RS232CTR3 PORTCbits.RC2
/*RC3 - RC7 are SPI and USART Ports*/

/************* I/O Port D Functions***********/
/*RD0 is PC104_ON */
#define PC104_ON PORTDbits.RD0

/*RD1 is PROBE_ON */
#define PROBE_ON PORTDbits.RD1

/*RD2 is MOD_USBL_ON */
#define MOD_USBL_ON PORTDbits.RD2

/*RD3 is LEAK_ERROR */
#define LEAK_ERROR PORTDbits.RD3

/*RD4 is BRK_FWR/REV_L */
#define BRK_FWR_REV_L PORTDbits.RD4

/*RD5 is BRK_ON */
#define BRK_ON PORTDbits.RD5

/*RD6 is CURRENTMETER_ON */
#define CURRENTMETER_ON PORTDbits.RD6

/*RD7 is PWROUT_ON */
#define PWROUT_ON PORTDbits.RD7

/************* I/O Port E Functions***********/
/*RE0-2 are analog inputs */




/********* Mode *************/
#define docked_nocharge 0
#define docked_charge 1
#define idle 2
#define auv_returning 3
#define failed_docked 4
#define failed_nondocked 5




#endif /* __dockingStation_H */
