fengzi: Fix LM3S ETH driver: Ethernet RX interrupt will be disabled if pbuf_alloc failed.

This commit is contained in:
Bernard Xiong 2013-04-10 09:54:08 +08:00
parent bdeb0e501f
commit e877a9868b
2 changed files with 8 additions and 0 deletions

View File

@ -424,6 +424,10 @@ struct pbuf * luminaryif_rx(rt_device_t dev)
lwip_stats.link.memerr++; lwip_stats.link.memerr++;
lwip_stats.link.drop++; lwip_stats.link.drop++;
#endif #endif
//
// Enable Ethernet RX Interrupt.
//
EthernetIntEnable(ETH_BASE, ETH_INT_RX);
} }
return(p); return(p);

View File

@ -423,6 +423,10 @@ struct pbuf * luminaryif_rx(rt_device_t dev)
lwip_stats.link.memerr++; lwip_stats.link.memerr++;
lwip_stats.link.drop++; lwip_stats.link.drop++;
#endif #endif
//
// Enable Ethernet RX Interrupt.
//
EthernetIntEnable(ETH_BASE, ETH_INT_RX);
} }
return(p); return(p);