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.
diff -r fa7e1e2c6eb3 -r 1283021a4a74 arch/TARGET_RZ_A1H/rza1_emac.c
--- a/arch/TARGET_RZ_A1H/rza1_emac.c	Thu Nov 06 11:00:57 2014 +0000
+++ b/arch/TARGET_RZ_A1H/rza1_emac.c	Thu Feb 05 13:45:38 2015 +0000
@@ -63,7 +63,7 @@
     struct netif *netif = (struct netif*)arg;
     s32_t        connect_sts = 0;   /* 0: disconnect, 1:connect */
     s32_t        link_sts;
-    s32_t        link_mode_new;
+    s32_t        link_mode_new = NEGO_FAIL;
     s32_t        link_mode_old = NEGO_FAIL;
     while (1) {
@@ -125,7 +125,6 @@
-    pbuf_free(p);
     return err;