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   4096
 Number of bytes available in fast data memory.
#define NUTMEM_START   0x100
 First address of fast data memory.
#define NUTMEM_RESERVED   64
 Number of bytes reserved for special purposes.
#define NUTXMEM_SIZE   28416
 Number of bytes available in extended data memory.
#define NUTXMEM_START   0x1100
#define NUTBANK_COUNT   0
 Number of memory banks.
#define NUTBANK_START   0x8000
 Start address of memory banks.
#define NUTBANK_SIZE   0x4000
 Size of a single memory bank.
#define NUTBANK_SR   0xFF00
 Address of the bank select register.


Define Documentation

#define NUTMEM_SIZE   4096
 

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.

#define NUTMEM_RESERVED   64
 

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 NUTBANK_COUNT   0
 

Number of memory banks.

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

#define NUTBANK_START   0x8000
 

Start address of memory banks.

For systems without banked memory this is ignored.

#define NUTBANK_SIZE   0x4000
 

Size of a single memory bank.

For systems without banked memory this is ignored.

#define NUTBANK_SR   0xFF00
 

Address of the bank select register.

For systems without banked memory this is ignored.


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