REVISION
Definition in file FLASH_flash2dspAddr.c.
#include "flash.h"
Include dependency graph for FLASH_flash2dspAddr.c:

Go to the source code of this file.
Functions | |
| unsigned long | FLASH_flash2dspAddr (unsigned long flashAddr) |
| Function converts physical address to logical addresses flash access. | |
|
|
Function converts physical address to logical addresses flash access.
Definition at line 38 of file FLASH_flash2dspAddr.c. 00039 {
00040 unsigned long ulOldFlashAddr;
00041 unsigned long ulSecondPartAddr;
00042 unsigned int unFirstPartAddr;
00043
00044 ulOldFlashAddr = flashAddr;
00045
00046 unFirstPartAddr = ulOldFlashAddr & 0x1fff;
00047 ulSecondPartAddr = ulOldFlashAddr & 0x7ffe000;
00048
00049 return((ulSecondPartAddr << 4) | (unsigned long)unFirstPartAddr | (unsigned long)SET_ADDR_PINS);
00050 }
|
1.3.9.1