From: travisutk Date: Fri, 24 Dec 2010 01:31:15 +0000 (+0000) Subject: Reception working in reflexframe.c. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=4676e95d8988aa996a714d8567659e3fdd8794bb;hp=97bb4dc0a1487b58b53bdb6a8a9361f9c62c0fae Reception working in reflexframe.c. Still need to figure out why it's broken by transmission. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@800 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/shellcode/chipcon/cc1110/reflexframe.c b/shellcode/chipcon/cc1110/reflexframe.c index 06c15e3..6ba01f1 100644 --- a/shellcode/chipcon/cc1110/reflexframe.c +++ b/shellcode/chipcon/cc1110/reflexframe.c @@ -111,7 +111,7 @@ void rxwait(){ while(MARCSTATE==MARC_STATE_RX && !RFTXRXIF); //Wait for byte to be ready. RFTXRXIF=0; //Clear the flag. - HALT; + return; packet[i++]=RFD; //Grab the next byte. } @@ -136,7 +136,7 @@ void main(){ //while(MARCSTATE!=MARC_STATE_IDLE); while(1){ - + sleepMillis(5); rxwait(); //idle a bit. @@ -150,15 +150,8 @@ void main(){ //SYNC0=0xAA; //Transmit carrier for 10ms - /* - RFST=RFST_STX; - while(MARCSTATE!=MARC_STATE_TX); - sleepMillis(20); - */ - - RFON; - - sleepMillis(200); - RFOFF; + carrier(); + //RFON; + HALT; } }