VxWorks Reference Manual : Libraries

m68562Sio

NAME

m68562Sio - MC68562 DUSCC serial driver

ROUTINES

m68562HrdInit( ) - initialize the DUSCC
m68562RxTxErrInt( ) - handle a receiver/transmitter error interrupt
m68562RxInt( ) - handle a receiver interrupt
m68562TxInt( ) - handle a transmitter interrupt

DESCRIPTION

This is the driver for the MC68562 DUSCC serial chip. It uses the DUSCC in asynchronous mode only.

USAGE

A M68562_QUSART structure is used to describe the chip. This data structure contains M68562_CHAN structures which describe the chip's serial channels. The BSP's sysHwInit( ) routine typically calls sysSerialHwInit( ) which initializes all the values in the M68562_QUSART structure (except the SIO_DRV_FUNCS) before calling m68562HrdInit( ). The BSP's sysHwInit2( ) routine typically calls sysSerialHwInit2( ) which connects the chips interrupts (m68562RxTxErrInt, m68562RxInt, and m68562TxInt) via intConnect( ).

IOCTL

This driver responds to the same ioctl( ) codes as a normal serial driver. See the file sioLib.h for more information.

INCLUDE FILES

drv/sio/m68562Sio.h

SEE ALSO

m68562Sio


Libraries : Routines

m68562HrdInit( )

NAME

m68562HrdInit( ) - initialize the DUSCC

SYNOPSIS

void m68562HrdInit
    (
    M68562_QUSART * pQusart
    )

DESCRIPTION

The BSP must have already initialized all the device addresses, etc in M68562_DUSART structure. This routine resets the chip in a quiescent state.

SEE ALSO

m68562Sio


Libraries : Routines

m68562RxTxErrInt( )

NAME

m68562RxTxErrInt( ) - handle a receiver/transmitter error interrupt

SYNOPSIS

void m68562RxTxErrInt
    (
    M68562_CHAN * pChan
    )

DESCRIPTION

Only the receive overrun condition is handled.

RETURNS

N/A

SEE ALSO

m68562Sio


Libraries : Routines

m68562RxInt( )

NAME

m68562RxInt( ) - handle a receiver interrupt

SYNOPSIS

void m68562RxInt
    (
    M68562_CHAN * pChan
    )

DESCRIPTION

RETURNS

N/A

SEE ALSO

m68562Sio


Libraries : Routines

m68562TxInt( )

NAME

m68562TxInt( ) - handle a transmitter interrupt

SYNOPSIS

void m68562TxInt
    (
    M68562_CHAN * pChan
    )

DESCRIPTION

If there is another character to be transmitted, it sends it. If not, or if a device has never been created for this channel, disable the interrupt.

RETURNS

N/A

SEE ALSO

m68562Sio