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

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

[avr-gcc-list] Getting all 17bits of an objects address ?


From: Anton Erasmus
Subject: [avr-gcc-list] Getting all 17bits of an objects address ?
Date: Mon, 25 Nov 2002 19:21:51 +0200

Hi,

Does anyone have a macro or some other way of getting the full 17bits
of a array defined in program memory ?

if one has:

unsigned char foo[] PROGMEM ={1,2,4};

then the normal C:

unsigned char *ptr=foo; 

only gives the bottom 16bits of the address. I
need to be able to decide at run-time whether an
array is in the top 64K or bottom 64K of program
memory.

Regards
   Anton Erasmus




avr-gcc-list at http://avr1.org



reply via email to

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