From: travisutk Date: Fri, 24 Dec 2010 01:49:08 +0000 (+0000) Subject: New reflexframe.c X-Git-Url: http://git.rot13.org//?a=commitdiff_plain;ds=sidebyside;h=81bbb3ce2efc1a032937f2a8da9806011aba6c8e;p=goodfet New reflexframe.c git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@802 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- 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