20.12.2012 Views

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer'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.

List of APIs API Call Reference<br />

Mnfct Pointer to a variable where the manufacturer code has to be<br />

returned.<br />

DevCode Pointer to a variable where the device code has to be returned.<br />

RETURN<br />

short frcFlashErase (short sector,unsigned int Flashbase)<br />

FLASH_SUCCESS (0x0)If the routine was successful to get the<br />

manufacturer and device code.<br />

FLASH_TIMEOUT (0x100)If the routine was not successful in<br />

either finding the flash device or getting the device and<br />

manufacturer code of the flash device.<br />

DESCRIPTION This routine will erase all the blocks of the specified user flash. If<br />

successful will then reset the flash device to the read mode.<br />

INPUT<br />

sector Should be 0. (For future use).<br />

Flashbase The base address of the flash device.<br />

0xA0000000 - user flash bank 0.<br />

0xA2000000 - user flash bank 1.<br />

RETURNS<br />

FLASH_SUCCESS (0x00)If successful in erasing the specified<br />

flash device.<br />

FLASH_TIMEOUT (0x100)If not successful in erasing the<br />

specified flash device.<br />

int frcFlashBlockRead(unsigned int BlockNo,unsigned int Flashbase)<br />

DESCRIPTION This routine reads a block of the specified user flash bank and<br />

stores the read data in memory (RAM) at the location 0xa00000.<br />

INPUT<br />

BlockNo The number of the block which has to read.<br />

5 - 126 VxWorks 5.5/Tornado <strong>2.2</strong> <strong>BSP</strong> <strong>Rel</strong>. <strong>1.0</strong> <strong>for</strong> <strong>PPMC</strong>-<strong>275</strong>

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

Saved successfully!

Ooh no, something went wrong!