RAM 6.0 BUX II Series Betriebsanweisung Seite 44

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 189
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 43
VxWorks
BSP Developer’s Guide, 6.0
36
/****************************************************************************
*
* sysModel - return the model name of the CPU board
*
* This routine returns the model name of the CPU board.
*
* RETURNS: A pointer to the string.
*/
char * sysModel (void)
{
return (SYS_MODEL);
}
sysNvRamGet( ), sysNvRamSet( )
The sysNvRamSet( ) and sysNvRamGet( ) routines can be provided initially by
nullNvRam.c, which is included from sysLib.c. Later, during BSP cleanup, the
appropriate standard version (available in target/src/drv/mem) should be used or
a custom version should be created.
sysHwInit( ), sysHwInit2( ), sysSerialHwInit( ), sysSerialHwInit2( )
You must create the custom sysHwInit( ), sysHwInit2( ), sysSerialHwInit( ), and
sysSerialHwInit2( ) routines. During initial development, empty stubs can be
used.
When you are ready to add these routines, check the reference BSP to see how it
handles devices that are common to your board. However, you must be sure to add
code to quiesce all devices on your board, including those that are not present on
the reference board. Otherwise, you may encounter problems once interrupts are
enabled.
The cache initialization routines, including the routines to initialize L2 cache,
should be called from sysHwInit( ). The requirement is that these routines must be
called before cacheEnable( ) during the boot process. For more information, see
3.3.5 Cache, MMU, and DMA Devices, p.75.
sysSerialChanGet( )
The sysSerialChanGet( ) routine in sysSerial.c returns the per-port SIO_CHAN
structure required for each serial I/O (SIO) device. For more information, see
Multi-Mode Serial (SIO) Drivers, p.103. If a fixed number of SIO devices are
Seitenansicht 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 188 189

Kommentare zu diesen Handbüchern

Keine Kommentare