Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

memory.h File Reference


Detailed Description

Default memory layout.

Values can be changed by the configurator.


Defines

#define NUTMEM_SIZE
 Number of bytes available in fast data memory.
#define NUTMEM_START
 First address of fast data memory.
#define NUTMEM_RESERVED
 Number of bytes reserved for special purposes.
#define NUTXMEM_SIZE
 Number of bytes available in extended data memory.
#define NUTXMEM_START
#define NUTBANK_COUNT
 Number of memory banks.
#define NUTBANK_START
 Start address of memory banks.
#define NUTBANK_SIZE
 Size of a single memory bank.
#define NUTBANK_SR
 Address of the bank select register.


Define Documentation

#define NUTBANK_COUNT
 

Number of memory banks.

For systems without banked memory this is set to zero. Ethernut 2 has 30 memory banks.

#define NUTBANK_SIZE
 

Size of a single memory bank.

For systems without banked memory this is ignored.

#define NUTBANK_SR
 

Address of the bank select register.

For systems without banked memory this is ignored.

#define NUTBANK_START
 

Start address of memory banks.

For systems without banked memory this is ignored.

#define NUTMEM_RESERVED
 

Number of bytes reserved for special purposes.

Right now this is used with the AVR platform only. The specified number of bytes may be used by a device driver when the external memory interface is disabled.

#define NUTMEM_SIZE
 

Number of bytes available in fast data memory.

On most platforms this value specifies the total number of bytes available in RAM.

On Harvard architectures this value specifies the size of the data memory. It will be occupied by global variables and static data. Any remaining space will be added to the Nut/OS heap during system initialization.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/