VxWorks Reference Manual : Libraries
m68302Sio - Motorola MC68302 bimodal tty driver
m68302SioInit( ) - initialize a M68302_CP
m68302SioInit2( ) - initialize a M68302_CP (part 2)
This is the driver for the internal communications processor (CP) of the Motorola MC68302.
Most of the routines in this driver are accessible only through the I/O system. Before the driver can be used, it must be initialized by calling the routines m68302SioInit( ) and m68302SioInit2( ). Normally, they are called by sysSerialHwInit( ) and sysSerialHwInit2( ) in sysSerial.c
This driver uses 408 bytes of buffer space as follows:
128 bytes for portA tx buffer
128 bytes for portB tx buffer
128 bytes for portC tx buffer
8 bytes for portA rx buffers (8 buffers, 1 byte each)
8 bytes for portB rx buffers (8 buffers, 1 byte each)
8 bytes for portC rx buffers (8 buffers, 1 byte each)The buffer pointer in the m68302cp structure points to the buffer area, which is usually specified as IMP_BASE_ADDR.
This driver responds to the same ioctl( ) codes as a normal tty driver; for more information, see the manual entry for tyLib. The available baud rates are 300, 600, 1200, 2400, 4800, 9600 and 19200.
drv/sio/m68302Sio.h sioLib.h
m68302SioInit( ) - initialize a M68302_CP
void m68302SioInit ( M68302_CP * pCp )
This routine initializes the driver function pointers and then resets the chip to a quiescent state. The BSP must already have initialized all the device addresses and the baudFreq fields in the M68302_CP structure before passing it to this routine. The routine resets the device and initializes everything to support polled mode (if possible), but does not enable interrupts.
N/A
m68302SioInit2( ) - initialize a M68302_CP (part 2)
void m68302SioInit2 ( M68302_CP * pCp )
Enables interrupt mode of operation.
N/A