From: <jo...@us...> - 2008-10-28 07:59:48
|
Revision: 381 http://mspsim.svn.sourceforge.net/mspsim/?rev=381&view=rev Author: joxe Date: 2008-10-28 07:59:36 +0000 (Tue, 28 Oct 2008) Log Message: ----------- added some updateCCA Modified Paths: -------------- mspsim/scripts/autorun.sc mspsim/se/sics/mspsim/chip/CC2420.java Modified: mspsim/scripts/autorun.sc =================================================================== --- mspsim/scripts/autorun.sc 2008-10-27 22:56:42 UTC (rev 380) +++ mspsim/scripts/autorun.sc 2008-10-28 07:59:36 UTC (rev 381) @@ -1,3 +1,6 @@ # autorun script for MSPSim # - all commands will run after loaded firmware into MSPSim +exec rm log.txt +log CC2420 >log.txt +printcalls >log.txt start Modified: mspsim/se/sics/mspsim/chip/CC2420.java =================================================================== --- mspsim/se/sics/mspsim/chip/CC2420.java 2008-10-27 22:56:42 UTC (rev 380) +++ mspsim/se/sics/mspsim/chip/CC2420.java 2008-10-28 07:59:36 UTC (rev 381) @@ -303,9 +303,9 @@ public void execute(long t) { if(DEBUG) log("VREG Started at: " + t + " cyc: " + cpu.cycles + " " + getTime()); - updateCCA(); on = true; setState(RadioState.POWER_DOWN); + updateCCA(); } }; @@ -363,6 +363,7 @@ if (DEBUG) log("VREG Off."); status &= ~(STATUS_RSSI_VALID | STATUS_XOSC16M_STABLE); setMode(MODE_POWER_OFF); + updateCCA(); break; case POWER_DOWN: @@ -370,6 +371,7 @@ rxfifoWritePos = 0; status &= ~(STATUS_RSSI_VALID | STATUS_XOSC16M_STABLE); setMode(MODE_POWER_OFF); + updateCCA(); break; case RX_CALIBRATE: @@ -414,6 +416,7 @@ case IDLE: status &= ~STATUS_RSSI_VALID; setMode(MODE_TXRX_OFF); + updateCCA(); break; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |