File nut/arch/arm/dev/atmel/at91_efc.c


Included Files


Preprocessor definitions

#define EFC_CHIP_BASE 0x00100000

#define EFC_CHIP_SIZE 0x00040000

#define FLASH_CONF_SECTOR 0x0003FF00

#define FLASH_CONF_SIZE 256

#define EFC_WRITE_WAIT 60000

#define EFC_ERASE_WAIT 60000

#define EFC_CHIP_ERASE_WAIT 600000


Typedef flashdat_t

typedef uint32_t flashdat_t

Typedef flashadr_t

typedef unsigned long flashadr_t

Typedef flashptr_t

typedef volatile flashdat_t* flashptr_t

Global Function At91EfcCmd()

int At91EfcCmd ( unsigned int cmd, uint32_t tmo )
Calls: At91EfcCmdEx() nut/arch/arm/dev/atmel/at91_efc.c
Called by: At91EfcRegionLock() nut/arch/arm/dev/atmel/at91_efc.c
  At91EfcRegionUnlock() nut/arch/arm/dev/atmel/at91_efc.c
  At91EfcSectorWrite() nut/arch/arm/dev/atmel/at91_efc.c

Global Function At91EfcCmdEx()

int At91EfcCmdEx ( int fci, unsigned int cmd, uint32_t tmo )
Called by: At91EfcCmd() nut/arch/arm/dev/atmel/at91_efc.c
  At91EfcSectorWrite() nut/arch/arm/dev/atmel/at91_efc.c

Global Function At91EfcParamRead()

int At91EfcParamRead ( unsigned int pos, void* data, unsigned int len )
Prototyped in: nut/include/arch/arm/atmel/at91_efc.h
Calls: At91EfcSectorRead() nut/arch/arm/dev/atmel/at91_efc.c

Global Function At91EfcParamWrite()

int At91EfcParamWrite ( unsigned int pos, const void* data, unsigned int len )
Prototyped in: nut/include/arch/arm/atmel/at91_efc.h
Calls: At91EfcRegionLock() nut/arch/arm/dev/atmel/at91_efc.c
  At91EfcRegionUnlock() nut/arch/arm/dev/atmel/at91_efc.c
  At91EfcSectorRead() nut/arch/arm/dev/atmel/at91_efc.c
  At91EfcSectorWrite() nut/arch/arm/dev/atmel/at91_efc.c
  free(), malloc(), memcmp(), memcpy()

Global Function At91EfcRegionLock()

int At91EfcRegionLock ( unsigned int off )
Prototyped in: nut/include/arch/arm/atmel/at91_efc.h
Calls: At91EfcCmd() nut/arch/arm/dev/atmel/at91_efc.c
Called by: At91EfcParamWrite() nut/arch/arm/dev/atmel/at91_efc.c

Global Function At91EfcRegionUnlock()

int At91EfcRegionUnlock ( unsigned int off )
Prototyped in: nut/include/arch/arm/atmel/at91_efc.h
Calls: At91EfcCmd() nut/arch/arm/dev/atmel/at91_efc.c
Called by: At91EfcParamWrite() nut/arch/arm/dev/atmel/at91_efc.c

Global Function At91EfcSectorErase()

int At91EfcSectorErase ( unsigned int off )
Prototyped in: nut/include/arch/arm/atmel/at91_efc.h
Calls: At91EfcSectorWrite() nut/arch/arm/dev/atmel/at91_efc.c

Global Function At91EfcSectorRead()

int At91EfcSectorRead ( unsigned int off, void* data, unsigned int len )
Prototyped in: nut/include/arch/arm/atmel/at91_efc.h
Calls: memcpy()
Called by: At91EfcParamRead() nut/arch/arm/dev/atmel/at91_efc.c
  At91EfcParamWrite() nut/arch/arm/dev/atmel/at91_efc.c

Global Function At91EfcSectorWrite()

int At91EfcSectorWrite ( unsigned int off, const void* data, unsigned int len )
Prototyped in: nut/include/arch/arm/atmel/at91_efc.h
Calls: At91EfcCmd() nut/arch/arm/dev/atmel/at91_efc.c
  At91EfcCmdEx() nut/arch/arm/dev/atmel/at91_efc.c
Called by: At91EfcParamWrite() nut/arch/arm/dev/atmel/at91_efc.c
  At91EfcSectorErase() nut/arch/arm/dev/atmel/at91_efc.c