VxWorks Reference Manual : Libraries
n72001Sio - NEC PD72001 MPSC ( Multiprotocol Serial Communications Controller )
n72001DevInit( ) - intialize a N72001_MPSC
n72001IntWr( ) - handle a transmitter interrupt
n72001IntRd( ) - handle a reciever interrupt
n72001Int( ) - interrupt level processing
This is a driver for the NEC PD72001 MPSC ( Multiprotocol Serial Communications Controller ). It uses the MPSC in asynchronous mode only.
A N72001_MPSC structure is used to describe the chip. This data structure contains two N72001_CHAN structures which describe the chip's two serial channels. The BSP's sysHwInit( ) routine typically calls sysSerialHwInit( ) which initializes all the values in the N72001_MPSC structure (except the SIO_DRV_FUNCS) before calling n72001DevInit( ). The BSP's sysHwInit2( ) routine typically calls sysSerialHwInit2( ) which connects the chips interrupts via intConnect( ) (either the single interrupt n72001Int or the three interrupts n72001IntWr, n72001IntRd, and n72001IntEx).
drv/sio/n72001Sio.h
n72001DevInit( ) - intialize a N72001_MPSC
void n72001DevInit ( N72001_MPSC * pMpsc /* serial device descriptor */ )
The BSP must have already initialized all the device addresses, etc in N72001_MPSC structure. This routine initializes some SIO_CHAN function pointers and then resets the chip in a quiescent state.
n72001IntWr( ) - handle a transmitter interrupt
void n72001IntWr ( N72001_CHAN * pChan /* MPSC channel descriptor */ )
This routine handles write interrupts from the MPSC.
N/A
n72001IntRd( ) - handle a reciever interrupt
void n72001IntRd ( N72001_CHAN * pChan /* MPSC channel descriptor */ )
This routine handles read interrupts from the MPSC
N/A
n72001Int( ) - interrupt level processing
void n72001Int ( N72001_MPSC * pMpsc /* serial device descriptor */ )
This routine handles interrupts from MPSC channels.
On some boards, all MPSC interrupts for both ports share a single interrupt vector. This is the ISR for such boards. We determine from the parameter which MPSC interrupted, then look at the code to find out which channel and what kind of interrupt.
N/A