Dear David, Thank you! I will read more following your instructions. My research purpose is to investigate common faults made by application programmers in developing wireless sensor networks.
Best regards, Yours, Zhifeng Lai -----Original Message----- From: David Gay [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 1:23 AM To: Zhifeng Lai Cc: tinyos help; Philip Levis; Zhifeng Lai Subject: Re: [Tinyos-help] Some confusion on the classic nesC paper. On 7/9/07, Zhifeng Lai <[EMAIL PROTECTED]> wrote: > Dear David, > > I do not have the background on developing embedded systems; I started to > learn nesC half a year ago for research purpose. > > Do you mean that some commands in avr library that manipulate memory-mapped > I/O will enable interrupts as a side effect? If so, could you give me some > concrete examples (I just learned that the "sei" macro in avr library can > enable interrupts)? *(int *)0x5f |= 0x80; does the same thing as "sei" - the SREG register is memory-mapped to address 0x5f. Read the Atmega128 datasheet for more information. And read up on memory-mapped I/O and DMA if my previous comment didn't make sense. As to whether application programmers would do this, you'd have to ask them. But it sounded like you wanted to *prevent* this, not just assume programmers didn't do it... David Gay _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help