memory.h File Reference

Default memory layout. More...

Go to the source code of this file.

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.


Detailed Description

Default memory layout.

Log
Revision 1.1 2004/08/25 10:56:10 haraldkipp More general memory layout definitions moved from cfg/bankmem.h to cfg/memory.h.

Values can be changed by the configurator.

Definition in file memory.h.


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.

Definition at line 64 of file memory.h.

#define NUTMEM_START   0x100

First address of fast data memory.

Definition at line 71 of file memory.h.

#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.

Definition at line 82 of file memory.h.

#define NUTXMEM_SIZE   28416

Number of bytes available in extended data memory.

Definition at line 89 of file memory.h.

#define NUTXMEM_START   0x1100

Definition at line 96 of file memory.h.

#define NUTBANK_COUNT   0

Number of memory banks.

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

Definition at line 106 of file memory.h.

Referenced by NutSegBufInit(), NutSegBufReadCommit(), NutSegBufReadLast(), NutSegBufWriteCommit(), and NutSegBufWriteLast().

#define NUTBANK_START   0x8000

Start address of memory banks.

For systems without banked memory this is ignored.

Definition at line 115 of file memory.h.

Referenced by NutSegBufInit().

#define NUTBANK_SIZE   0x4000

Size of a single memory bank.

For systems without banked memory this is ignored.

Definition at line 124 of file memory.h.

Referenced by NutSegBufInit().

#define NUTBANK_SR   0xFF00

Address of the bank select register.

For systems without banked memory this is ignored.

Definition at line 133 of file memory.h.


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