VxWorks Reference Manual : Libraries
m68562Sio - MC68562 DUSCC serial driver
m68562HrdInit( ) - initialize the DUSCC
m68562RxTxErrInt( ) - handle a receiver/transmitter error interrupt
m68562RxInt( ) - handle a receiver interrupt
m68562TxInt( ) - handle a transmitter interrupt
This is the driver for the MC68562 DUSCC serial chip. It uses the DUSCC in asynchronous mode only.
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( ).
This driver responds to the same ioctl( ) codes as a normal serial driver. See the file sioLib.h for more information.
drv/sio/m68562Sio.h
m68562HrdInit( ) - initialize the DUSCC
void m68562HrdInit ( M68562_QUSART * pQusart )
The BSP must have already initialized all the device addresses, etc in M68562_DUSART structure. This routine resets the chip in a quiescent state.
m68562RxTxErrInt( ) - handle a receiver/transmitter error interrupt
void m68562RxTxErrInt ( M68562_CHAN * pChan )
Only the receive overrun condition is handled.
N/A
m68562RxInt( ) - handle a receiver interrupt
void m68562RxInt ( M68562_CHAN * pChan )
N/A
m68562TxInt( ) - handle a transmitter interrupt
void m68562TxInt ( M68562_CHAN * pChan )
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.
N/A