File "sci0.h"
Full Path: /home/analogde/www/68hc11/sci0.h
File size: 1.11 KB
MIME-type: text/plain
Charset: utf-8
/* ************************ SCI0.H *****************************
* Jonathan W. Valvano March 29, 2000
* Simple I/O routines to SCI0 serial port
* ************************************************************ */
/* ASCII symbols
CR = carriage return
LF = line feed
BS = backspace
SP = space
*/
#define NULL 0x00
#define CR 0x0D
#define LF 0x0A
#define BS 0x08
#define ESC 0x1B
#define SP 0x20
#define DEL 0x7F
//------------Initialization-------------------------------------
void SCI0Init(void); // Initialize 38400 bits/sec
//--------------Input/Receive from serial port-------------------
char SCI0In(void); // Reads in a character, gadfly
int SCI0InStatus(void); // Returns RDRF of Input SCI0 Port
// Returns TRUE if a call to SCI0In will return right away
//--------------Output/Transmit to serial port-------------------
int SCI0OutStatus(void); // Returns TDRE of Output SCI0 Port
// Returns TRUE if a call to SCI0Out will return right away
void SCI0Out(char); // Output a character, gadfly
void SCI0OutString(char *); // Output a string