Description
Source
Call Graph
Start Line: 123
unsigned char NORFLASH_ReadData(struct NorFlash *norFlash, unsigned int address, unsigned char *buffer, unsigned int size)
{
unsigned int busAddress;
unsigned char busWidth;
unsigned int i;
busWidth = NorFlash_GetDataBusWidth(&(pNorFlash->norFlashInfo));
busAddress = NorFlash_GetAddressInChip(&(pNorFlash->norFlashInfo), address);
size /= (busWidth / 8);
for(i=0; i < size; i++) {
ReadRawData(busWidth, busAddress, buffer);
buffer+= (busWidth / 8);
busAddress+= (busWidth / 8);
}
return 0;
}