VxWorks Reference Manual : Libraries

evbNs16550Sio

NAME

evbNs16550Sio - NS16550 serial driver for the IBM PPC403GA evaluation

ROUTINES

evbNs16550HrdInit( ) - initialize the NS 16550 chip
evbNs16550Int( ) - handle a receiver/transmitter interrupt for the NS 16550 chip

DESCRIPTION

This is the driver for the National NS 16550 UART Chip used on the IBM PPC403GA evaluation board. It uses the SCCs in asynchronous mode only.

USAGE

An EVBNS16550_CHAN structure is used to describe the chip. The BSP's sysHwInit( ) routine typically calls sysSerialHwInit( ) which initializes all the register values in the EVBNS16550_CHAN structure (except the SIO_DRV_FUNCS) before calling evbNs16550HrdInit( ). The BSP's sysHwInit2( ) routine typically calls sysSerialHwInit2( ) which connects the chip interrupt handler evbNs16550Int( ) via intConnect( ).

IOCTL FUNCTIONS

This driver responds to the same ioctl( ) codes as other serial drivers; for more information, see sioLib.h.

INCLUDE FILES

drv/sio/evbNs16550Sio.h

SEE ALSO

evbNs16550Sio


Libraries : Routines

evbNs16550HrdInit( )

NAME

evbNs16550HrdInit( ) - initialize the NS 16550 chip

SYNOPSIS

void evbNs16550HrdInit
    (
    EVBNS16550_CHAN * pChan
    )

DESCRIPTION

This routine is called to reset the NS 16550 chip to a quiescent state.

SEE ALSO

evbNs16550Sio


Libraries : Routines

evbNs16550Int( )

NAME

evbNs16550Int( ) - handle a receiver/transmitter interrupt for the NS 16550 chip

SYNOPSIS

void evbNs16550Int
    (
    EVBNS16550_CHAN * pChan
    )

DESCRIPTION

This routine is called to handle interrupts. If there is another character to be transmitted, it sends it. If the interrupt handler is called erroneously (for example, if a device has never been created for the channel), it disables the interrupt.

SEE ALSO

evbNs16550Sio