SAM7 embedded flash controller support. More...
Go to the source code of this file.
Defines | |
#define | FLASH_CONF_SECTOR 0x0003FF00 |
Base address of the flash memory chip. | |
#define | FLASH_CONF_SIZE 256 |
Size of the configuration area. | |
#define | FLASH_WRITE_WAIT 60000 |
#define | FLASH_ERASE_WAIT 60000 |
#define | FLASH_CHIP_ERASE_WAIT 600000 |
Typedefs | |
typedef uint32_t | flashdat_t |
typedef unsigned long | flashadr_t |
typedef volatile flashdat_t * | flashptr_t |
Functions | |
RAMFUNC int | At91EfcCmd (unsigned int cmd, uint32_t tmo) |
Execute flash controller command. | |
int | At91EfcSectorRead (unsigned int off, void *data, unsigned int len) |
Read data from flash memory. | |
int | At91EfcSectorWrite (unsigned int off, CONST void *data, unsigned int len) |
Write data into flash memory. | |
int | At91EfcSectorErase (unsigned int off) |
Erase sector at the specified offset. | |
int | At91EfcRegionLock (unsigned int off) |
Lock specified region. | |
int | At91EfcRegionUnlock (unsigned int off) |
Unlock specified region. | |
int | At91EfcParamRead (unsigned int pos, void *data, unsigned int len) |
Load configuration parameters from embedded flash memory. | |
int | At91EfcParamWrite (unsigned int pos, CONST void *data, unsigned int len) |
Store configuration parameters in embedded flash memory. |
SAM7 embedded flash controller support.
* * $Log$ * Revision 1.4 2009/01/17 11:26:37 haraldkipp * Getting rid of two remaining BSD types in favor of stdint. * Replaced 'u_int' by 'unsinged int' and 'uptr_t' by 'uintptr_t'. * * Revision 1.3 2008/08/11 06:59:04 haraldkipp * BSD types replaced by stdint types (feature request #1282721). * * Revision 1.2 2006/10/08 16:48:07 haraldkipp * Documentation fixed * * Revision 1.1 2006/07/26 11:20:57 haraldkipp * Added non-volatile configuration memory support for SAM7X, using upper * 16k region of on-chip flash. * * *
Definition in file at91_efc.c.