[Tinyos-help] How to enable Receive interrupts ?

ram kishore rapoliit at gmail.com
Sat Aug 9 04:04:03 PDT 2008


Hi all,
          I send a message and busy-wait for utmost 1000 micro seconds in
the senddone() event.If a packet arrives within this,I do nothing else I
re-transmit.
As I am busy-waiting in the senddone event as shown below:
    RadioSend.senddone()
{
         while (i < 1000) {
          TOSH_uwait(1);
         //check for receive interrupt
          If interrupt received
          break;

          i++;
          };

       if( i == 1000)
       post retransmit();

}


 I Need to make sure interrupts are enabled so that the receive interrupt
can get in,How to do it?Any macros,calls etc?

Please Help,

Best Regards,
Kishore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080809/0ae0c883/attachment-0001.htm 


More information about the Tinyos-help mailing list