VxWorks Reference Manual : Libraries
sysLib - system-dependent library
sysClkConnect( ) - connect a routine to the system clock interrupt
sysClkDisable( ) - turn off system clock interrupts
sysClkEnable( ) - turn on system clock interrupts
sysClkRateGet( ) - get the system clock rate
sysClkRateSet( ) - set the system clock rate
sysAuxClkConnect( ) - connect a routine to the auxiliary clock interrupt
sysAuxClkDisable( ) - turn off auxiliary clock interrupts
sysAuxClkEnable( ) - turn on auxiliary clock interrupts
sysAuxClkRateGet( ) - get the auxiliary clock rate
sysAuxClkRateSet( ) - set the auxiliary clock rate
sysIntDisable( ) - disable a bus interrupt level
sysIntEnable( ) - enable a bus interrupt level
sysBusIntAck( ) - acknowledge a bus interrupt
sysBusIntGen( ) - generate a bus interrupt
sysMailboxConnect( ) - connect a routine to the mailbox interrupt
sysMailboxEnable( ) - enable the mailbox interrupt
sysNvRamGet( ) - get the contents of non-volatile RAM
sysNvRamSet( ) - write to non-volatile RAM
sysModel( ) - return the model name of the CPU board
sysBspRev( ) - return the BSP version and revision number
sysHwInit( ) - initialize the system hardware
sysPhysMemTop( ) - get the address of the top of memory
sysMemTop( ) - get the address of the top of logical memory
sysToMonitor( ) - transfer control to the ROM monitor
sysProcNumGet( ) - get the processor number
sysProcNumSet( ) - set the processor number
sysBusTas( ) - test and set a location across the bus
sysScsiBusReset( ) - assert the RST line on the SCSI bus (Western Digital WD33C93 only)
sysScsiInit( ) - initialize an on-board SCSI port
sysScsiConfig( ) - system SCSI configuration
sysLocalToBusAdrs( ) - convert a local address to a bus address
sysBusToLocalAdrs( ) - convert a bus address to a local address
sysSerialHwInit( ) - initialize the BSP serial devices to a quiesent state
sysSerialHwInit2( ) - connect BSP serial device interrupts
sysSerialReset( ) - reset all SIO devices to a quiet state
sysSerialChanGet( ) - get the SIO_CHAN device associated with a serial channel
This library provides board-specific routines.
NOTE: This is a generic reference entry for a BSP-specific library; this description contains general information only. For features and capabilities specific to the system library included in your BSP, see your BSP's reference entry for sysLib.
The file sysLib.c provides the board-level interface on which VxWorks and application code can be built in a hardware-independent manner. The functions addressed in this file include:
Initialization functions
- initialize the hardware to a known state
- identify the system
- initialize drivers, such as SCSI or custom driversMemory/address space functions
- get the on-board memory size
- make on-board memory accessible to external bus
- map local and bus address spaces
- enable/disable cache memory
- set/get nonvolatile RAM (NVRAM)
- define board's memory map (optional)
- virtual-to-physical memory map declarations for processors with MMUsBus interrupt functions
- enable/disable bus interrupt levels
- generate bus interruptsClock/timer functions
- enable/disable timer interrupts
- set the periodic rate of the timerMailbox/location monitor functions
- enable mailbox/location monitor interrupts for VME-based boardsThe sysLib library does not support every feature of every board; a particular board may have various extensions to the capabilities described here. Conversely, some boards do not support every function provided by this library. Some boards provide some of the functions of this library by means of hardware switches, jumpers, or PALs, instead of software-controllable registers.
Typically, most functions in this library are not called by the user application directly. The configuration modules usrConfig.c and bootConfig.c are responsible for invoking the routines at the appropriate time. Device drivers may use some of the memory mapping routines and bus functions.
sysLib.h
VxWorks Programmer's Guide: Configuration and Build, BSP-specific reference entry for sysLib
sysClkConnect( ) - connect a routine to the system clock interrupt
STATUS sysClkConnect ( FUNCPTR routine, /* routine called at each system clock interrupt */ int arg /* argument with which to call routine */ )
This routine specifies the interrupt service routine to be called at each clock interrupt. Normally, it is called from usrRoot( ) in usrConfig.c to connect usrClock( ) to the system clock interrupt.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if the routine cannot be connected to the interrupt.
sysLib, intConnect( ), usrClock( ), sysClkEnable( ), and BSP-specific reference pages for this routine
sysClkDisable( ) - turn off system clock interrupts
void sysClkDisable (void)
This routine disables system clock interrupts.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
N/A
sysLib, sysClkEnable( ), and BSP-specific reference pages for this routine
sysClkEnable( ) - turn on system clock interrupts
void sysClkEnable (void)
This routine enables system clock interrupts.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
N/A
sysLib, sysClkConnect( ), sysClkDisable( ), sysClkRateSet( ), and BSP-specific reference pages for this routine
sysClkRateGet( ) - get the system clock rate
int sysClkRateGet (void)
This routine returns the system clock rate.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
The number of ticks per second of the system clock.
sysLib, sysClkEnable( ), sysClkRateSet( ), and BSP-specific reference pages for this routine
sysClkRateSet( ) - set the system clock rate
STATUS sysClkRateSet ( int ticksPerSecond /* number of clock interrupts per second */ )
This routine sets the interrupt rate of the system clock. It is called by usrRoot( ) in usrConfig.c.
There may be interactions between this routine and the POSIX clockLib routines. Refer to the clockLib reference entry.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if the tick rate is invalid or the timer cannot be set.
sysLib, sysClkEnable( ), sysClkRateGet( ), clockLib, and BSP-specific reference pages for this routine
sysAuxClkConnect( ) - connect a routine to the auxiliary clock interrupt
STATUS sysAuxClkConnect ( FUNCPTR routine, /* routine called at each aux clock interrupt */ int arg /* argument to auxiliary clock interrupt routine */ )
This routine specifies the interrupt service routine to be called at each auxiliary clock interrupt. It does not enable auxiliary clock interrupts.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if the routine cannot be connected to the interrupt.
sysLib, intConnect( ), sysAuxClkEnable( ), and BSP-specific reference pages for this routine
sysAuxClkDisable( ) - turn off auxiliary clock interrupts
void sysAuxClkDisable (void)
This routine disables auxiliary clock interrupts.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
N/A
sysLib, sysAuxClkEnable( ), and BSP-specific reference pages for this routine
sysAuxClkEnable( ) - turn on auxiliary clock interrupts
void sysAuxClkEnable (void)
This routine enables auxiliary clock interrupts.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
N/A
sysLib, sysAuxClkConnect( ), sysAuxClkDisable( ), sysAuxClkRateSet( ), and BSP-specific reference pages for this routine
sysAuxClkRateGet( ) - get the auxiliary clock rate
int sysAuxClkRateGet (void)
This routine returns the interrupt rate of the auxiliary clock.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
The number of ticks per second of the auxiliary clock.
sysLib, sysAuxClkEnable( ), sysAuxClkRateSet( ), and BSP-specific reference pages for this routine
sysAuxClkRateSet( ) - set the auxiliary clock rate
STATUS sysAuxClkRateSet ( int ticksPerSecond /* number of clock interrupts per second */ )
This routine sets the interrupt rate of the auxiliary clock. It does not enable auxiliary clock interrupts.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if the tick rate is invalid or the timer cannot be set.
sysLib, sysAuxClkEnable( ), sysAuxClkRateGet( ), and BSP-specific reference pages for this routine
sysIntDisable( ) - disable a bus interrupt level
STATUS sysIntDisable ( int intLevel /* interrupt level to disable */ )
This routine disables a specified bus interrupt level.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if intLevel is out of range.
sysLib, sysIntEnable( ), and BSP-specific reference pages for this routine
sysIntEnable( ) - enable a bus interrupt level
STATUS sysIntEnable ( int intLevel /* interrupt level to enable (1-7) */ )
This routine enables a specified bus interrupt level.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if intLevel is out of range.
sysLib, sysIntDisable( ), and BSP-specific reference pages for this routine
sysBusIntAck( ) - acknowledge a bus interrupt
int sysBusIntAck ( int intLevel /* interrupt level to acknowledge */ )
This routine acknowledges a specified VMEbus interrupt level.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
NULL.
sysLib, sysBusIntGen( ), and BSP-specific reference pages for this routine
sysBusIntGen( ) - generate a bus interrupt
STATUS sysBusIntGen ( int intLevel, /* bus interrupt level to generate */ int vector /* interrupt vector to generate (0-255) */ )
This routine generates a bus interrupt for a specified level with a specified vector.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if intLevel is out of range or the board cannot generate a bus interrupt.
sysLib, sysBusIntAck( ), and BSP-specific reference pages for this routine
sysMailboxConnect( ) - connect a routine to the mailbox interrupt
STATUS sysMailboxConnect ( FUNCPTR routine, /* routine called at each mailbox interrupt */ int arg /* argument with which to call routine */ )
This routine specifies the interrupt service routine to be called at each mailbox interrupt.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if the routine cannot be connected to the interrupt.
sysLib, intConnect( ), sysMailboxEnable( ), and BSP-specific reference pages for this routine
sysMailboxEnable( ) - enable the mailbox interrupt
STATUS sysMailboxEnable ( char * mailboxAdrs /* address of mailbox (ignored) */ )
This routine enables the mailbox interrupt.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, always.
sysLib, sysMailboxConnect( ), and BSP-specific reference pages for this routine
sysNvRamGet( ) - get the contents of non-volatile RAM
STATUS sysNvRamGet ( char * string, /* where to copy non-volatile RAM */ int strLen, /* maximum number of bytes to copy */ int offset /* byte offset into non-volatile RAM */ )
This routine copies the contents of non-volatile memory into a specified string. The string will be terminated with an EOS.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if access is outside the non-volatile RAM address range.
sysLib, sysNvRamSet( ), and BSP-specific reference pages for this routine
sysNvRamSet( ) - write to non-volatile RAM
STATUS sysNvRamSet ( char * string, /* string to be copied into non-volatile RAM */ int strLen, /* maximum number of bytes to copy */ int offset /* byte offset into non-volatile RAM */ )
This routine copies a specified string into non-volatile RAM.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if access is outside the non-volatile RAM address range.
sysLib, sysNvRamGet( ), and BSP-specific reference pages for this routine
sysModel( ) - return the model name of the CPU board
char *sysModel (void)
This routine returns the model name of the CPU board.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
A pointer to a string containing the board name.
sysLib, and BSP-specific reference pages for this routine
sysBspRev( ) - return the BSP version and revision number
char * sysBspRev (void)
This routine returns a pointer to a BSP version and revision number, for example, 1.0/1. BSP_REV is concatenated to BSP_VERSION and returned.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
A pointer to the BSP version/revision string.
sysLib, and BSP-specific reference pages for this routine
sysHwInit( ) - initialize the system hardware
void sysHwInit (void)
This routine initializes various features of the board. It is called from usrInit( ) in usrConfig.c.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
This routine should not be called directly by the user application.
N/A
sysLib, and BSP-specific reference pages for this routine
sysPhysMemTop( ) - get the address of the top of memory
char * sysPhysMemTop (void)
This routine returns the address of the first missing byte of memory, which indicates the top of memory.
Normally, the amount of physical memory is specified with the macro LOCAL_MEM_SIZE. BSPs that support run-time memory sizing do so only if the macro LOCAL_MEM_AUTOSIZE is defined. If not defined, then LOCAL_MEM_SIZE is assumed to be, and must be, the true size of physical memory.
Do no adjust LOCAL_MEM_SIZE to reserve memory for application use. See sysMemTop( ) for more information on reserving memory.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
The address of the top of physical memory.
sysLib, sysMemTop( ), and BSP-specific reference pages for this routine
sysMemTop( ) - get the address of the top of logical memory
char *sysMemTop (void)
This routine returns the address of the top of memory.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
The address of the top of memory.
sysLib, and BSP-specific reference pages for this routine
sysToMonitor( ) - transfer control to the ROM monitor
STATUS sysToMonitor ( int startType /* parameter passed to ROM to tell it how to boot */ )
This routine transfers control to the ROM monitor. Normally, it is called only by reboot( )--which services ^X--and by bus errors at interrupt level. However, in some circumstances, the user may wish to introduce a startType to enable special boot ROM facilities.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
Does not return.
sysLib, and BSP-specific reference pages for this routine
sysProcNumGet( ) - get the processor number
int sysProcNumGet (void)
This routine returns the processor number for the CPU board, which is set with sysProcNumSet( ).
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
The processor number for the CPU board.
sysLib, sysProcNumSet( ), and BSP-specific reference pages for this routine
sysProcNumSet( ) - set the processor number
void sysProcNumSet ( int procNum /* processor number */ )
This routine sets the processor number for the CPU board. Processor numbers should be unique on a single backplane.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
N/A
sysLib, sysProcNumGet( ), and BSP-specific reference pages for this routine
sysBusTas( ) - test and set a location across the bus
BOOL sysBusTas ( char * adrs /* address to be tested and set */ )
This routine performs a test-and-set instruction across the backplane.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
This routine is equivalent to vxTas( ).
TRUE if the value had not been set but is now, or FALSE if the value was set already.
sysLib, vxTas( ), and BSP-specific reference pages for this routine
sysScsiBusReset( ) - assert the RST line on the SCSI bus (Western Digital WD33C93 only)
void sysScsiBusReset ( WD_33C93_SCSI_CTRL * pSbic /* ptr to SBIC info */ )
This routine asserts the RST line on the SCSI bus, which causes all connected devices to return to a quiescent state.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
N/A
sysLib, and BSP-specific reference pages for this routine
sysScsiInit( ) - initialize an on-board SCSI port
STATUS sysScsiInit (void)
This routine creates and initializes a SCSI control structure, enabling use of the on-board SCSI port. It also connects the proper interrupt service routine to the desired vector, and enables the interrupt at the desired level.
If SCSI DMA is supported by the board and INCLUDE_SCSI_DMA is defined, the DMA is also initialized.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if the control structure cannot be connected, the controller cannot be initialized, or the DMA's interrupt cannot be connected.
sysLib, and BSP-specific reference pages for this routine
sysScsiConfig( ) - system SCSI configuration
STATUS sysScsiConfig (void)
This is an example SCSI configuration routine.
Most of the code found here is an example of how to declare a SCSI peripheral configuration. You must edit this routine to reflect the actual configuration of your SCSI bus. This example can also be found in src/config/usrScsi.c.
If you are just getting started, you can test your hardware configuration by defining SCSI_AUTO_CONFIG, which will probe the bus and display all devices found. No device should have the same SCSI bus ID as your VxWorks SCSI port (default = 7), or the same as any other device. Check for proper bus termination.
There are three configuration examples here. They demonstrate configuration of a SCSI hard disk (any type), an OMTI 3500 floppy disk, and a tape drive (any type).
The hard disk is divided into two 32-Mbyte partitions and a third partition with the remainder of the disk. The first partition is initialized as a dosFs device. The second and third partitions are initialized as rt11Fs devices, each with 256 directory entries.It is recommended that the first partition (BLK_DEV) on a block device be a dosFs device, if the intention is eventually to boot VxWorks from the device. This will simplify the task considerably.
The floppy, since it is a removable medium device, is allowed to have only a single partition, and dosFs is the file system of choice for this device, since it facilitates media compatibility with IBM PC machines.In contrast to the hard disk configuration, the floppy setup in this example is more intricate. Note that the scsiPhysDevCreate( ) call is issued twice. The first time is merely to get a "handle" to pass to scsiModeSelect( ), since the default media type is sometimes inappropriate (in the case of generic SCSI-to-floppy cards). After the hardware is correctly configured, the handle is discarded via scsiPhysDevDelete( ), after which the peripheral is correctly configured by a second call to scsiPhysDevCreate( ). (Before the scsiModeSelect( ) call, the configuration information was incorrect.) Note that after the scsiBlkDevCreate( ) call, the correct values for sectorsPerTrack and nHeads must be set via scsiBlkDevInit( ). This is necessary for IBM PC compatibility.
The tape configuration is also somewhat complex because certain device parameters need to turned off within VxWorks and the fixed-block size needs to be defined, assuming that the tape supports fixed blocks.The last parameter to the dosFsDevInit( ) call is a pointer to a DOS_VOL_CONFIG structure. By specifying NULL, you are asking dosFsDevInit( ) to read this information off the disk in the drive. This may fail if no disk is present or if the disk has no valid dosFs directory. Should this be the case, you can use the dosFsMkfs( ) command to create a new directory on a disk. This routine uses default parameters (see dosFsLib) that may not be suitable for your application, in which case you should use dosFsDevInit( ) with a pointer to a valid DOS_VOL_CONFIG structure that you have created and initialized. If dosFsDevInit( ) is used, a diskInit( ) call should be made to write a new directory on the disk, if the disk is blank or disposable.
The variable pSbdFloppy is global to allow the above calls to be made from the VxWorks shell, for example:
-> dosFsMkfs "/fd0/", pSbdFloppyIf a disk is new, use diskFormat( ) to format it.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK or ERROR.
sysLib, and BSP-specific reference pages for this routine
sysLocalToBusAdrs( ) - convert a local address to a bus address
STATUS sysLocalToBusAdrs ( int adrsSpace, /* bus address space in which busAdrs resides */ char * localAdrs, /* local address to convert */ char * *pBusAdrs /* where to return bus address */ )
This routine gets the bus address that accesses a specified local memory address.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if the address space is unknown or not mapped.
sysLib, sysBusToLocalAdrs( ), and BSP-specific reference pages for this routine
sysBusToLocalAdrs( ) - convert a bus address to a local address
STATUS sysBusToLocalAdrs ( int adrsSpace, /* bus address space in which busAdrs resides */ char * busAdrs, /* bus address to convert */ char * *pLocalAdrs /* where to return local address */ )
This routine gets the local address that accesses a specified bus memory address.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
OK, or ERROR if the address space is unknown or the mapping is not possible.
sysLib, sysLocalToBusAdrs( ), and BSP-specific reference pages for this routine
sysSerialHwInit( ) - initialize the BSP serial devices to a quiesent state
void sysSerialHwInit (void)
This routine initializes the BSP serial device descriptors and puts the devices in a quiesent state. It is called from sysHwInit( ) with interrupts locked.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
N/A
sysLib, and BSP-specific reference pages for this routine
sysSerialHwInit2( ) - connect BSP serial device interrupts
void sysSerialHwInit2 (void)
This routine connects the BSP serial device interrupts. It is called from sysHwInit2( ). Serial device interrupts could not be connected in sysSerialHwInit( ) because the kernel memory allocator was not initialized at that point, and intConnect( ) calls malloc( ).
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
N/A
sysLib, and BSP-specific reference pages for this routine
sysSerialReset( ) - reset all SIO devices to a quiet state
void sysSerialReset (void)
This routine is called from sysToMonitor( ) to reset all SIO device and prevent them from generating interrupts or performing DMA cycles.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
N/A
sysLib, and BSP-specific reference pages for this routine
sysSerialChanGet( ) - get the SIO_CHAN device associated with a serial channel
SIO_CHAN * sysSerialChanGet ( int channel /* serial channel */ )
This routine gets the SIO_CHAN device associated with a specified serial channel.
This is a generic page for a BSP-specific routine; this description contains general information only. To determine if this routine is supported by your BSP, or for information specific to your BSP's version of this routine, see the reference pages for your BSP.*
A pointer to the SIO_CHAN structure for the channel, or ERROR if the channel is invalid.
sysLib, and BSP-specific reference pages for this routine