02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

F<br />

Generic Drivers<br />

NV_RAM_SIZE<br />

Defines the total bytes of NVRAM available. Define NV_RAM_SIZE in<br />

config.h,orbspname.h. For boards without NVRAM, define NV_RAM_SIZE as<br />

NONE.<br />

BOOT_LINE_SIZE<br />

Defines the number of bytes of NVRAM that are reserved for the VxWorks<br />

boot line. The default value is 255 and is defined in configAll.h.<br />

BOOT_LINE_SIZE must be less than or equal to NV_RAM_SIZE. To override the<br />

default value of BOOT_LINE_SIZE, first undefine then define the macro in<br />

config.h or bspname.h.<br />

NV_BOOT_OFFSET<br />

Defines the byte offset to the beginning of the VxWorks boot line in NVRAM.<br />

The default value is 0 and is defined in configAll.h. This is distinct from<br />

BOOT_LINE_OFFSET, the offset of the boot line stored in RAM.<br />

The routines sysNvRamSet( ) and sysNvRamGet( ) have an offset parameter.<br />

If NV_BOOT_OFFSET is greater than zero, you can access the bytes before the<br />

boot line by specifying a negative offset. To override the default value of<br />

NV_BOOT_OFFSET, first undefine then define the macro.<br />

For boards without NVRAM, include the file mem/nullNvRam.c for stubbed<br />

out versions of the routines that return ERROR.<br />

F<br />

F.6 VMEbus<br />

The generic VMEbus drivers reside in the directory target/src/drv/vme. Included<br />

in this directory is the templateVme.c. Use the driver in this file as the template for<br />

VME drivers. Included in this template file is detailed information on VME driver<br />

construction.<br />

For boards without a VMEbus interface, use the nullVme.c driver. If the<br />

application does not use network support, you can skip the VME driver altogether.<br />

Although, in this case, you might need to provide a sysBusTas( ) function that<br />

always returns FALSE.<br />

Wind River does not currently offer the kind of plug-and-play support published<br />

in the VME-64 specification and its extensions.<br />

253

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!