FLASH_flash2dspAddr.c File Reference


Detailed Description

This module manages to do flash address translation.

REVISION

Definition in file FLASH_flash2dspAddr.c.

#include "flash.h"

Include dependency graph for FLASH_flash2dspAddr.c:

Include dependency graph

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 Documentation

unsigned long FLASH_flash2dspAddr unsigned long  flashAddr  ) 
 

Function converts physical address to logical addresses flash access.

Parameters:
flashAddr Physical flash address.
Returns:
DSP logical flash address.

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 }


Generated on Wed Jan 19 01:13:01 2005 for neuros-firmware by  doxygen 1.3.9.1