[En-Nut-Discussion] size of CONFOS and CONFNET in AVR and ARM architectures
José Vallet
jose.vallet at hut.fi
Tue Mar 3 20:48:55 CET 2009
Hello all.
I was wondering about the sizes that the Nut/OS and Nut/NET
configuration parameters will take when stored in the non volatile
memories, and I found in the code these definitions:
typedef struct __attribute__ ((packed)) _CONFOS CONFOS;
typedef struct __attribute__ ((packed)) _CONFNET CONFNET;
So is the packed attribute used to guarantee that the CONFOS and CONFNET
structures will occupy the same space in any arch and therefore will
occupy the same size when stored in non volatile memory?
Or in other words: do they occupy the same space if I use the NutNvMem*
functions in different archs? The point here is to be sure that I don't
write my app specific config data on top of those in the non volatile
memory.
Regards
J.
More information about the En-Nut-Discussion
mailing list