RAM 6.0 BUX II Series Guia do Utilizador Página 35

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 189
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 34
2 Overview of a BSP
2.3 Components of a BSP
27
2
sysSerial.c would identify network interface and serial port drivers, respectively.
Some device drivers are optional and the standard drivers provided in
target/src/drv can be used. In some cases, custom device drivers must be created
for a BSP, and these custom drivers should reside in the BSP directory (although
this is not a requirement). Device driver files are detailed in the following sections
of this guide:
3.2.10 Minimum Required Drivers, p.70
3.2.11 Serial Drivers, p.71
3.3.9 Providing Additional Optional Device Support, p.99
Additional information on device drivers can be found in the VxWorks Device
Driver Developer’s Guide.
The sysDev.c files are normally included in sysLib.c with a #include rather than
compiled separately. This allows hardware drivers to be shared between BSPs
without adding complexity to the makefiles.
configAll.h
This file contains the default OS configuration for all BSPs, and should only be
changed under extreme circumstances. Changing this file makes your BSP
incompatible with all default VxWorks installations. Any make variable defined in
this file can be overridden in config.h.
bootInit.c
The bootInit.c file contains romStart( ), which is the first C routine to execute
during the VxWorks boot process. This routine is architecture-independent and
should not need to be changed.
!
CAUTION: In some cases, the sysDev.c file contains the actual device driver instead
of an interface between the driver and the OS. This is considered incorrect design.
The preferred method is to have the driver contained in a separate file, devType.c
(for example, acmeSio.c) and the interface module contained in the sysDev.c file
(for example, sysAcmeSio.c). This method allows for better code reuse.
!
CAUTION: Changing configAll.h can impact other VxWorks users sharing your
VxWorks installation.
Vista de página 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 188 189

Comentários a estes Manuais

Sem comentários