From: travisutk Date: Fri, 24 Dec 2010 02:14:39 +0000 (+0000) Subject: Reflexes without debugger HALT. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=04e63f634d17c7dabe18bd9ce4e902b3df94cdca Reflexes without debugger HALT. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@806 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/shellcode/chipcon/cc1110/reflexframe.c b/shellcode/chipcon/cc1110/reflexframe.c index b4f6765..bc48133 100644 --- a/shellcode/chipcon/cc1110/reflexframe.c +++ b/shellcode/chipcon/cc1110/reflexframe.c @@ -40,7 +40,6 @@ void carrier(){ //FSCTRL0 = 0x00; // Frequency synthesizer control. - MDMCFG4 = 0x86; // Modem configuration. MDMCFG3 = 0x83; // Modem configuration. MDMCFG2 = 0x30; // Modem configuration. @@ -84,11 +83,13 @@ void main(){ //carrier(); - //idle a bit. - RFST=RFST_SIDLE; - while(MARCSTATE!=MARC_STATE_IDLE); - + while(1){ + //idle a bit. + RFST=RFST_SIDLE; + while(MARCSTATE!=MARC_STATE_IDLE); + + restore_settings(); //idle a bit. RFST=RFST_SFSTXON; @@ -115,10 +116,10 @@ void main(){ carrier(); RFON; - //sleepMillis(2000); + sleepMillis(2000); - sleepMillis(500); - HALT; + //sleepMillis(20); + //HALT; } }