NorFlashCommon.h
Default mainpageat91libmemoriesnorflashNorFlashCommon.h
Description Overview  
Description
Purpose
The Hardware Adaptation Layer manages the hardware functions of the NORFLASH Flash. It implements a low level driver to manage the hardware functionality of NORFLASH.

Usage
  1. WriteRawData() is used to write data to the NorFlash device.
  2. ReadRawData() is used to read data from the NorFlash device.
  3. The specified address for read/write opertion is an linear byte address of targer application byte address space represented by WORD((8-bit, 16-bit, 32-bit). The start (base) address of the flash memory in this address space is defined in board.h file as BOARD_NORFLASH_ADDR and users might need to change it.
  4. WriteCommand() is used to write a command to specified command address.

NorFlash Error Codes
It provides detailed error codes to describe the various errors that may occur during the operation. Some functions return an error number directly as the function value. These functions return a value of zero (NorCommon_ERROR_NONE) to indicate a success.