error searching
This commit is contained in:
parent
dd4cbb6d4f
commit
f1b70611b0
1 changed files with 9 additions and 9 deletions
|
@ -78,7 +78,7 @@ extern HANDLE hProc;
|
|||
|
||||
/* decide whether it's polling mode or not
|
||||
*/
|
||||
static int no_irq = 0;
|
||||
static int no_irq = 1;
|
||||
|
||||
/* this will be set by open() and close() and shows wether the driver is running or not
|
||||
*/
|
||||
|
@ -207,23 +207,23 @@ typedef struct mmnif
|
|||
* - ehternet address
|
||||
* - local ip address
|
||||
*/
|
||||
struct eth_addr* ethaddr;
|
||||
uint32_t ipaddr;
|
||||
struct eth_addr* ethaddr;
|
||||
uint32_t ipaddr;
|
||||
|
||||
/* memory interaction variables:
|
||||
* - transmit queue
|
||||
* - pointer to transmit buffer
|
||||
* - pointer to recive buffer
|
||||
*/
|
||||
uint8_t tx_queue;
|
||||
uint8_t* tx_buff[MMNIF_TX_QUEUELEN];
|
||||
mm_rx_buffer_t* rx_buff;
|
||||
uint8_t tx_queue;
|
||||
uint8_t* tx_buff[MMNIF_TX_QUEUELEN];
|
||||
mm_rx_buffer_t* rx_buff;
|
||||
|
||||
sem_t com_poll;
|
||||
sem_t com_poll;
|
||||
|
||||
/* comunication mailbox
|
||||
*/
|
||||
mailbox_ptr_t mbox;
|
||||
mailbox_ptr_t mbox;
|
||||
}mmnif_t;
|
||||
|
||||
|
||||
|
@ -1144,7 +1144,6 @@ static int mmnif_wait(struct netif* netif, uint32_t poll, int budget)
|
|||
}
|
||||
|
||||
npackets++;
|
||||
pbuf_free(p);
|
||||
}
|
||||
|
||||
/* Note : i will add an return error wich indicates that
|
||||
|
@ -1212,6 +1211,7 @@ int mmnif_poll(void* e)
|
|||
#endif
|
||||
sem_wait(&mmnif->com_poll);
|
||||
}
|
||||
mmnif->stats.pll_empty = 0;
|
||||
}
|
||||
mmnif->stats.pll_empty=0;
|
||||
mmnif_rx(mmnif_dev);
|
||||
|
|
Loading…
Add table
Reference in a new issue