forked from springcute/rt-thread
fengzi: Fix LM3S ETH driver: Ethernet RX interrupt will be disabled if pbuf_alloc failed.
This commit is contained in:
parent
bdeb0e501f
commit
e877a9868b
|
@ -424,6 +424,10 @@ struct pbuf * luminaryif_rx(rt_device_t dev)
|
|||
lwip_stats.link.memerr++;
|
||||
lwip_stats.link.drop++;
|
||||
#endif
|
||||
//
|
||||
// Enable Ethernet RX Interrupt.
|
||||
//
|
||||
EthernetIntEnable(ETH_BASE, ETH_INT_RX);
|
||||
}
|
||||
|
||||
return(p);
|
||||
|
|
|
@ -423,6 +423,10 @@ struct pbuf * luminaryif_rx(rt_device_t dev)
|
|||
lwip_stats.link.memerr++;
|
||||
lwip_stats.link.drop++;
|
||||
#endif
|
||||
//
|
||||
// Enable Ethernet RX Interrupt.
|
||||
//
|
||||
EthernetIntEnable(ETH_BASE, ETH_INT_RX);
|
||||
}
|
||||
|
||||
return(p);
|
||||
|
|
Loading…
Reference in New Issue