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
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to