/*
 * sci.h header file for sci.c
 * $Revision: 1.5 $
 * $Date: 2004/02/05 23:43:05 $
 */

//uncomment the next line if you want the serial_print() and serial_send() 
//functions compiled in
#define SERIAL_SEND 1  

#ifndef SCI_H

#define SCI_H

/*		Various SCI BAUD rates for a 8Mhz clock	*/
typedef enum
	{
	BAUD9600 = 0x30, BAUD4800 = 0x31, BAUD2400 = 0x32,
	BAUD1200 = 0x33, BAUD600 = 0x34, BAUD300 = 0x35
	} BaudRate;

#define IOWAIT	64		/*	Timeout on IO = 1024 msec	*/
#define FIFOSIZE	64

/*	Protos	*/
void initSCI(void);
char fifoRead(void);
void SCIHandler(void);
void serial_send (unsigned char c);
void serial_print (const char *msg);

//void fifoWrite(unsigned char);
//void command_send (unsigned char cmd, char param);

#endif


