[Tinyos-beta-commits]
CVS: tinyos-1.x/beta/platform/imote2 DVFSM.nc, 1.2, 1.3
Lama Nachman
lnachman at users.sourceforge.net
Fri Mar 9 17:44:46 PST 2007
Update of /cvsroot/tinyos/tinyos-1.x/beta/platform/imote2
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv1526
Modified Files:
DVFSM.nc
Log Message:
Fixed the SwitchFreq BluSH command to pass 208 MHz for bus freq when the
core freq is 416
Index: DVFSM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/platform/imote2/DVFSM.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** DVFSM.nc 4 Mar 2007 23:51:29 -0000 1.2
--- DVFSM.nc 10 Mar 2007 01:44:44 -0000 1.3
***************
*** 145,148 ****
--- 145,149 ----
case 416:
if (sysBusFreq != 208) {
+ trace(DBG_TEMP, "Fail bus freq %d\r\n", sysBusFreq);
return FAIL;
}
***************
*** 182,185 ****
--- 183,187 ----
char *resBuff, uint8_t resLen) {
uint32_t target_freq;
+ uint32_t t_bus_freq;
if(strlen(cmdBuff) < 12) {
***************
*** 187,194 ****
} else {
sscanf(cmdBuff,"SwitchFreq %d", &target_freq);
! if (call DVFS.SwitchCoreFreq(target_freq, target_freq) == SUCCESS) {
! sprintf(resBuff,"Switched to %d successfully\r\n", target_freq);
} else {
! sprintf(resBuff,"Failed to switch to %d\r\n", target_freq);
}
}
--- 189,201 ----
} else {
sscanf(cmdBuff,"SwitchFreq %d", &target_freq);
! if (target_freq != 416) {
! t_bus_freq = target_freq;
! } else {
! t_bus_freq = target_freq / 2;
! }
! if (call DVFS.SwitchCoreFreq(target_freq, t_bus_freq) == SUCCESS) {
! sprintf(resBuff,"Switched to %3d [%3d] MHz successfully\r\n", target_freq, t_bus_freq);
} else {
! sprintf(resBuff,"Failed to switch to %3d MHz\r\n", target_freq);
}
}
More information about the Tinyos-beta-commits
mailing list