[En-Nut-Discussion] Placing and array at some specific place in memory

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sat Oct 21 23:19:55 CEST 2006


Hallo,

is it possible to place an array at some specific place in memory?

I can do something like
volatile unsigned char *id_mem= (volatile unsigned char *)0x3200; 
but how can I place something like
unsigned char hid[OWI_LOCAL+1][9];
at e.g. 0x3300?

Accessing hid[device][byte] seems much clearer to me than accessing
*(hid + device * N_BYTES + byte). Any other ideas or coding styles?

Thanks
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------



More information about the En-Nut-Discussion mailing list