avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] memory sections


From: Iztok Zupet
Subject: [avr-gcc-list] memory sections
Date: Wed, 1 Oct 2003 16:48:34 +0200
User-agent: KMail/1.5

Hello all,

I would like to define a section of external memory at 0x8000 like that:

#define NVRAM __attribute__((section(".nvram")))

and use it like 

typedef struct _Nvram {
        unsigned int seq;
        unsigned int time;
        unsigned char data[48];
} Nvram;

Nvram nvram NVRAM;

What's the most convinient way to do it without mingling with the default LD 
scripts?

Regards
Iztok



reply via email to

[Prev in Thread] Current Thread [Next in Thread]