NXP LPC1768 Ethernet driver for lwip and CMSIS-RTOS

Dependents:   EthernetInterface EthernetInterface EthernetInterface_RSF EthernetInterface ... more

Legacy Networking Libraries

This is an mbed 2 networking library. For mbed 5, the networking libraries have been revised to better support additional network stacks and thread safety here.

This library is based on the code of the NXP LPC port of the Lightweight TCP/IP Stack

Copyright(C) 2011, NXP Semiconductor
All rights reserved.

Software that is described herein is for illustrative purposes only
which provides customers with programming information regarding the
products. This software is supplied "AS IS" without any warranties.
NXP Semiconductors assumes no responsibility or liability for the
use of the software, conveys no license or title under any patent,
copyright, or mask work right to the product. NXP Semiconductors
reserves the right to make changes in the software without
notification. NXP Semiconductors also make no representation or
warranty that such application will be suitable for the specified
use without further testing or modification.

Files at this revision

API Documentation at this revision

Comitter:
emilmont
Date:
Mon Jun 03 12:06:46 2013 +0100
Parent:
5:698d868a5285
Child:
7:5754e05385b8
Commit message:
De-allocate all queued TX pbufs

Changed in this revision

arch/lpc17_emac.c Show annotated file Show diff for this revision Revisions of this file
--- a/arch/lpc17_emac.c	Thu May 30 17:15:45 2013 +0100
+++ b/arch/lpc17_emac.c	Mon Jun 03 12:06:46 2013 +0100
@@ -823,7 +823,7 @@
             LPC_EMAC->IntClear = EMAC_INT_TX_UNDERRUN;
             
             /* De-allocate all queued TX pbufs */
-            for (idx = 0; idx < LPC_NUM_BUFF_RXDESCS; idx++) {
+            for (idx = 0; idx < LPC_NUM_BUFF_TXDESCS; idx++) {
                 if (lpc_enetif->txb[idx] != NULL) {
                     pbuf_free(lpc_enetif->txb[idx]);
                     lpc_enetif->txb[idx] = NULL;