VxWorks Reference Manual : Libraries

m68302Sio

NAME

m68302Sio - Motorola MC68302 bimodal tty driver

ROUTINES

m68302SioInit( ) - initialize a M68302_CP
m68302SioInit2( ) - initialize a M68302_CP (part 2)

DESCRIPTION

This is the driver for the internal communications processor (CP) of the Motorola MC68302.

USER-CALLABLE ROUTINES

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.

IOCTL FUNCTIONS

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.

SEE ALSO

ttyDrv, tyLib

INCLUDE FILES

drv/sio/m68302Sio.h sioLib.h


Libraries : Routines

m68302SioInit( )

NAME

m68302SioInit( ) - initialize a M68302_CP

SYNOPSIS

void m68302SioInit
    (
    M68302_CP * pCp
    )

DESCRIPTION

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.

RETURNS

N/A

SEE ALSO

m68302Sio


Libraries : Routines

m68302SioInit2( )

NAME

m68302SioInit2( ) - initialize a M68302_CP (part 2)

SYNOPSIS

void m68302SioInit2
    (
    M68302_CP * pCp
    )

DESCRIPTION

Enables interrupt mode of operation.

RETURNS

N/A

SEE ALSO

m68302Sio