X-Git-Url: http://git.rot13.org//?a=blobdiff_plain;f=shellcode%2Fchipcon%2Fcc1110%2Freflexframe.c;h=57aa2ab049599c0bc1a9b53edc6c8a9194f9cbdf;hb=81bbb3ce2efc1a032937f2a8da9806011aba6c8e;hp=909aa3208203c588e6fdc8e2cb7e0f3bfdb9b93b;hpb=b9d031fa191300c90ddabee27aa8eb700fd725b2;p=goodfet diff --git a/shellcode/chipcon/cc1110/reflexframe.c b/shellcode/chipcon/cc1110/reflexframe.c index 909aa32..57aa2ab 100644 --- a/shellcode/chipcon/cc1110/reflexframe.c +++ b/shellcode/chipcon/cc1110/reflexframe.c @@ -85,42 +85,6 @@ void sleepMillis(int ms) { }; } -//! Wait for a packet to come, then immediately return. -void rxwait(){ - int i=0; - - //Disable interrupts. - RFTXRXIE=0; - - //idle a bit. - RFST=RFST_SIDLE; - while(MARCSTATE!=MARC_STATE_IDLE); - - sleepMillis(10); - //Begin to receive. - RFST=RFST_SRX; - while(MARCSTATE!=MARC_STATE_RX); - - //Incoming! - - - //Fixed length - packet[i++]=PKTLEN; - while(i