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:
mbed_official
Date:
Mon Feb 09 09:15:34 2015 +0000
Parent:
23:1283021a4a74
Child:
25:ba0a1c5bf54e
Commit message:
Synchronized with git revision b36cbfe9f095645336e02d7f812d481bdf170ffc

Full URL: https://github.com/mbedmicro/mbed/commit/b36cbfe9f095645336e02d7f812d481bdf170ffc/

Fix target issues for TARGET_LPC4088_DM

Changed in this revision

arch/TARGET_NXP/lpc17_emac.c Show annotated file Show diff for this revision Revisions of this file
arch/TARGET_NXP/lwipopts_conf.h Show annotated file Show diff for this revision Revisions of this file
--- a/arch/TARGET_NXP/lpc17_emac.c	Thu Feb 05 13:45:38 2015 +0000
+++ b/arch/TARGET_NXP/lpc17_emac.c	Mon Feb 09 09:15:34 2015 +0000
@@ -134,7 +134,7 @@
 #endif
 };
 
-#if defined(TARGET_LPC4088)
+#if defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM)
 #  if defined (__ICCARM__)
 #     define ETHMEM_SECTION
 #  elif defined(TOOLCHAIN_GCC_CR)
@@ -444,7 +444,7 @@
 	/* Check for legal address ranges */
 #if defined(TARGET_LPC1768)
 	if ((((u32_t) addr >= 0x2007C000) && ((u32_t) addr < 0x20083FFF))) {
-#elif defined(TARGET_LPC4088)
+#elif defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM)
 	if ((((u32_t) addr >= 0x20000000) && ((u32_t) addr < 0x20007FFF))) {
 #endif
 	    return 0;
@@ -804,7 +804,7 @@
 #if defined(TARGET_LPC1768)
 	LPC_PINCON->PINSEL2 = 0x50150105;                  /* Enable P1 Ethernet Pins. */
 	LPC_PINCON->PINSEL3 = (LPC_PINCON->PINSEL3 & ~0x0000000F) | 0x00000005;
-#elif defined(TARGET_LPC4088)
+#elif defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM)
   LPC_IOCON->P1_0  &= ~0x07;    /*  ENET I/O config */
   LPC_IOCON->P1_0  |= 0x01;     /* ENET_TXD0 */
   LPC_IOCON->P1_1  &= ~0x07;
--- a/arch/TARGET_NXP/lwipopts_conf.h	Thu Feb 05 13:45:38 2015 +0000
+++ b/arch/TARGET_NXP/lwipopts_conf.h	Mon Feb 09 09:15:34 2015 +0000
@@ -21,7 +21,7 @@
 
 #define LWIP_TRANSPORT_ETHERNET       1
 
-#if defined(TARGET_LPC4088)
+#if defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM)
 #define MEM_SIZE                      15360
 #elif defined(TARGET_LPC1768)
 #define MEM_SIZE                      16362