Well, I was going to try to help, but I can't make immediate sense of
the processor spec sheet that I found so I'll just kibbitz...
I "think" the imote is using an ARM7TDMI controller, where I found
one manual at: http://www.arm.com/pdfs/DDI0029G_7TDMI_R3_trm.pdf

YMMV as they say on whether this is the right thing because I couldn't
find (quickly) the register name you give.

For the defines...

#1 do the same thing,
    but tos2 doesn't provide the 0x3 bit over flow protection mask.
    In this case it might be safer to go with tos1.

#2 do (almost the same thing), it's basically 3 shifted up 1,
    but tos1 INVERTS the result so the usage must be different.
    You might be able to tell from use or else you'll have to actually
     understand what it does...MASK OFF the bit or MASK it ON.

#3 somebody probably mistyped 'OI' and 'IO',
    ...boy that took a while for me to see....
   a quick search for both names should tell you which one is misspelled...

In #2 and #3 you have to go look at the actual code
to see which one is appropriate.

MS

Yang Peng wrote:
Hi all,
I am working on imote2 development with tinyos1.x now, I am a little confused about the register definition for PXA27X. from "/opt/tinyos-1.x/beta/platform/pxa27x" I got file "pxa27x_registers_def.h" (filetos1) from "/opt/tinyos-2.x/tos/chips/pxa27x" I got file "pxa27x_registers.h" (filetos2)

The first file has few comments about the meaning of different registers, so I make a compare with the second file. However, I find some conflicts. (I just took a look at "UART" related register) filetos1 #define LCR_WLS(n) (n & 0x3) filetos2 #define LCR_WLS(_x) ((_x) << 0) /* Word Length Select */ filetos1 #define IIR_IID_MASK (~(((1<<2)-1) << 1))
filetos2  #define IIR_IID_MASK (0x3 << 1) /* Interrupt Source Encoded */
filetos1 #define IER_RTOIE (1 << 4) filetos2 #define IER_RTIOE (1 << 4) /* Receiver Time Out Interrupt Enable */ Will these differences cause potential bug? Which one is right? Does anyone have a developer guide for PXA27X? It seems like Intel removed related documents from the website... I got one named"PXA27x family design guide", but helps little, but I still do not know how to opeate pxa27x register... Very appreciated for your help! Yang
Our Sensorweb Research Lab
----http://sensorweb.vancouver.wsu.edu/


------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to