[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/receive
CC2420ReceiveP.nc, 1.6, 1.7
dmm
rincon at users.sourceforge.net
Fri Jan 18 10:36:02 PST 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/receive
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv6612
Modified Files:
CC2420ReceiveP.nc
Log Message:
Added a comment about FIFOP
Index: CC2420ReceiveP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveP.nc,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** CC2420ReceiveP.nc 17 Jan 2008 15:19:27 -0000 1.6
--- CC2420ReceiveP.nc 18 Jan 2008 18:36:00 -0000 1.7
***************
*** 395,398 ****
--- 395,408 ----
atomic receivingPacket = FALSE;
+
+ /*
+ * The FIFOP pin here is high when there are 0 bytes in the RX FIFO
+ * and goes low as soon as there are bytes in the RX FIFO. The pin
+ * is inverted from what the datasheet says, and its threshold is 127.
+ * Whenever the FIFOP line goes low, as you can see from the interrupt
+ * handler elsewhere in this module, it means we received a new packet.
+ * If the line stays low without generating an interrupt, that means
+ * there's still more data to be received.
+ */
if ( ( m_missed_packets && call FIFO.get() ) || !call FIFOP.get() ) {
// A new packet is buffered up and ready to go
More information about the Tinyos-2-commits
mailing list