
VxWorks
BSP Developer’s Guide, 6.0
32
sysFlags
int sysFlags
; /* boot flags */
The sysFlags variable holds the boot flags, which control factors such as whether
to perform an autoboot or whether to use TFTP as the boot device. This is used
extensively by bootrom. The value of sysFlags is initialized in bootConfig.c.
2.3.4 Required Routines
The following routines must be present in your BSP. Failure to provide any of these
routines results in unresolved references at link time.
At the beginning of the development process, the required routines are very
simple. In most cases, these routines are expanded over the course of the
sysBspRev( ) Returns the BSP version and revision number.
sysClkConnect( ) Connects a routine to the system clock interrupt.
sysClkDisable( ) Turns off system clock interrupts.
sysClkEnable( ) Turns on system clock interrupts.
sysClkInt( ) Handles system clock interrupts.
sysClkRateGet( ) Gets the system clock rate.
sysClkRateSet( ) Sets the system clock rate.
sysHwInit( ) Initializes the system hardware to a quiescent state.
sysHwInit2( ) Initializes and configures additional system hardware.
sysMemTop( ) Gets the address of the top of physical memory.
sysModel( ) Returns the model name of the target system board.
sysNvRamGet( ) Gets the contents of non-volatile RAM.
sysNvRamSet( ) Sets the contents of non-volatile RAM.
sysSerialChanGet( ) Gets the
SIO_CHAN device associated with a serial channel.
sysSerialHwInit( ) Initializes the BSP serial device(s) to a quiescent state.
sysSerialHwInit2( ) Connects BSP serial device interrupts.
sysToMonitor( ) Transfers control to the ROM monitor.
Comentarios a estos manuales