The best solution for your problem is IMO:

1.) define a struct
typedef struct { int my_var1 ... other variables ... } my_struct_t;
2.) declare it for all files
extern my_struct_t my_eeprom_vars EEMEM; 
// EEMEM define available starting with recent 2.1.15
3.) define it in one file
my_struct_t my_eeprom_vars;
// EEMEM define available starting with recent 2.1.15

get the individual eeprom adresses by using, e.g., &my_eeprom_vars.my_var1;
I'd like to recommend you to use avr-libc 1.2.15 .

HTH,

Bjoern


_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to