02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VxWorks 5.5<br />

<strong>BSP</strong> Developer’s <strong>Guide</strong><br />

SYS_CLK_RATE_MAX<br />

Defines the maximum rate at which the system clock can run. Unless hardware<br />

constraints dictate otherwise, SYS_CLK_RATE_MAX must be greater than or<br />

equal to 60 Hz.<br />

AUX_CLK_RATE_MIN<br />

Defines the minimum rate at which the auxiliary clock can run. To support<br />

spy( ), AUX_CLK_RATE_MIN must be less than or equal to 100 Hz.<br />

AUX_CLK_RATE_MAX<br />

Defines the maximum rate at which the auxiliary clock can run. To support<br />

spy( ), AUX_CLK_RATE_MAX must be greater than or equal to 100 Hz.<br />

F.5 Non-Volatile Memory<br />

The generic NVRAM and flash drivers reside in the directory target/src/drv/mem.<br />

Included in this directory is templateNvRam.c. This file provides the template<br />

driver to be used as the basis of non-volatile memory drivers, including flash.<br />

However, do not use this template for the optional True Flash File System (TFFS)<br />

product. For TFFS, refer to documentation accompanying special MTD drivers for<br />

flash devices.<br />

All <strong>BSP</strong>s are required to have some type of non-volatile memory interface, even if<br />

non-volatile memory is not available. The two required routines are<br />

sysNvRamGet( ) and sysNvRamSet( ). These routines both require an offset<br />

parameter. Internally, these routines use the offset parameter as follows:<br />

offset += NV_BOOT_OFFSET; /* boot line begins at = 0 */<br />

if ((offset < 0) || (strLen < 0) || ((offset + strLen) ><br />

NV_RAM_SIZE))<br />

return (ERROR);<br />

Thus, the offset parameter is biased so that an offset of 0 points to the first byte of<br />

the VxWorks boot line. This is always true even if the boot line is not at the<br />

beginning of the non-volatile memory area.<br />

All <strong>BSP</strong>s must define the following macros:<br />

252

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

Saved successfully!

Ooh no, something went wrong!