[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/atm1281 McuSleepC.nc, 1.4, 1.5
Janos Sallai
sallai at users.sourceforge.net
Wed Feb 4 11:31:45 PST 2009
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/atm1281
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29070
Modified Files:
McuSleepC.nc
Log Message:
make the check for uart status a bit more smarter
Index: McuSleepC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm1281/McuSleepC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** McuSleepC.nc 23 Jul 2008 17:25:42 -0000 1.4
--- McuSleepC.nc 4 Feb 2009 19:31:43 -0000 1.5
***************
*** 107,114 ****
}
// UARTs are active
! else if (UCSR0B & (1 << TXCIE0 | 1 << RXCIE0)) { // UART
return ATM128_POWER_IDLE;
}
! else if (UCSR1B & (1 << TXCIE1 | 1 << RXCIE1)) { // UART
return ATM128_POWER_IDLE;
}
--- 107,114 ----
}
// UARTs are active
! else if (UCSR0B & (1 << TXCIE0 | 1 << RXCIE0 | 1 << UDRIE0)) { // UART
return ATM128_POWER_IDLE;
}
! else if (UCSR1B & (1 << TXCIE1 | 1 << RXCIE1 | 1 << UDRIE1)) { // UART
return ATM128_POWER_IDLE;
}
More information about the Tinyos-2-commits
mailing list