mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
* If we detect a RXFIFO overflow schedule a poll of the device driver.
This commit is contained in:
parent
1a021bbfc3
commit
70ddc0f27e
@ -28,7 +28,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: cc2420.c,v 1.20 2007/06/28 15:08:53 bg- Exp $
|
* @(#)$Id: cc2420.c,v 1.21 2007/07/30 14:54:49 bg- Exp $
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* This code is almost device independent and should be easy to port.
|
* This code is almost device independent and should be easy to port.
|
||||||
@ -249,9 +249,8 @@ cc2420_resend(void)
|
|||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
if (FIFOP_IS_1 && !FIFO_IS_1) {
|
if (FIFOP_IS_1 && !FIFO_IS_1) {
|
||||||
/* RXFIFO overflow, send on retransmit. */
|
process_poll(&cc2420_process);
|
||||||
PRINTF("rxfifo overflow!\n");
|
PRINTF("rxfifo overflow!\n");
|
||||||
// return UIP_FW_DROPPED;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The TX FIFO can only hold one packet! Make sure to not overrun
|
/* The TX FIFO can only hold one packet! Make sure to not overrun
|
||||||
|
Loading…
Reference in New Issue
Block a user