; Master Craft Pin Defines:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Pin Diagram Craft Master PIC16F690 Right Motor Controller
;-------------------------------------------------------
; Pin# 	Desig 	Use
;-------------------------------------------------------
;| 1 	Vdd 	+5V
;| 2 	OSC1 	ext. XTL resonator 10MHz
;| 3 	OSC2 	ext. XTL resonator 10MHz
;| 4	MCLR	Master Clear
;| 5 	RC6	Quack
;| 6 	RC5	PWM Modulated Line (P1A)
;| 7 	RC4 	PWM Direction Bit (P1B)
;| 8 	RC3	
;| 9 	RC7/SDO
;| 10 	TX 	EUSART transmit output (xBee)
;| 11 	RB6 	
;| 12 	RX 	EUSART receive input (xBee)
;| 13 	RB4/SDI
;| 14 	RC2 	
;| 15 	RC1	iButton data
;| 16 	RC0	iButton LED
;| 17 	RA2	Red team LED indicator
;| 18 	RA1	Blue team LED indicator
;| 19 	RA0	Test Pin
;| 20 	Vss 	GND
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;------------------------------------ I/O Pin DEFINES ------------------------------------;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

#define 	PROP_MODULATION_TRIS	TRISC,5	; Propeller pwm output config
#define 	PROP_DIRECTION_TRIS	TRISC,4	; Propeller pwm output config
#define 	PROP_DIRECTION		PORTC,4	; Prop Direction, low is forward, hi is reverse.
#define	iBUTTON_PIN		PORTC,1	; iButton data
#define	iBUTTON_PIN_TRIS	TRISC,1
#define	iBUTTON_LED		PORTC,0	; iButton LED
#define	iBUTTON_LED_TRIS	TRISC,0	
#define 	QUACK		PORTC,6	; Quack noise output
#define 	QUACK_TRIS		TRISC,6	
#define	RED_TEAM		PORTA,2	; Red team LED indicator
#define	RED_TEAM_TRIS		TRISA,2	
#define	BLUE_TEAM		PORTA,1	; Blue team LED indicator
#define	BLUE_TEAM_TRIS		TRISA,1
#define	TEST_PIN		PORTA,0	; Pin for test output
#define	TEST_PIN_TRIS		TRISA,0
#define	ANSEL_CONFIG		0x00	; This disables the analog channels 0-7
#define	ANSELH_CONFIG		0x00	; This disables the analog channels on 8 and 9 
#define	BILGE_PUMP		PORTC,6
#define	BILGE_PUMP_TRIS		TRISC,6