[Tinyos-help] Allocate a table in ROM

Imanol Padillo tinyemosdudas at yahoo.es
Mon Mar 12 03:29:45 PDT 2007


Hi all!
I have a table with constant values, so I need to allocate it in ROM for save RAM memory. How can I do the declaration of my table?
My table is in an external file called "table.h" and I include it on the top of my *.nc file like this:
includes table; 

The table.h file has this shape:

typedef struct Register {
    unsigned int uiAddress;
    unsigned char ucValue;
} Register;
 
const struct Register ImageRegisterTable[] = {
    { 0x0000, 0x00 } ,
//more data ...
    { 0x03BF, 0x06 } 
} ;

With const declaration it seems that the table is allocated in RAM. Why have I to declarate my table?

Thanks in advance,


		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070312/a35c263c/attachment.htm


More information about the Tinyos-help mailing list