minor derivative to reduce compiler warnings and tag read-only parameters as const.

Dependents:   EthernetInterface

Fork of lwip-eth by mbed official

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