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 Jun 09 15:00:19 2014 +0100
Parent:
13:409b1b671df2
Child:
15:82aaaa2f4d5c
Commit message:
Synchronized with git revision 6f498028bb40cc59185deef7578fe6788008b3ca

Full URL: https://github.com/mbedmicro/mbed/commit/6f498028bb40cc59185deef7578fe6788008b3ca/

[LPC4088] GCC: corrected alignment problem when setting up memory region...

Changed in this revision

arch/TARGET_NXP/lpc17_emac.c Show annotated file Show diff for this revision Revisions of this file
--- a/arch/TARGET_NXP/lpc17_emac.c	Fri May 23 05:45:26 2014 +0100
+++ b/arch/TARGET_NXP/lpc17_emac.c	Mon Jun 09 15:00:19 2014 +0100
@@ -138,7 +138,7 @@
 #  if defined (__ICCARM__)
 #     define ETHMEM_SECTION
 #  elif defined(TOOLCHAIN_GCC_CR)
-#     define ETHMEM_SECTION __attribute__((section(".data.$RamPeriph32")))
+#     define ETHMEM_SECTION __attribute__((section(".data.$RamPeriph32"), aligned))
 #  else
 #     define ETHMEM_SECTION __attribute__((section("AHBSRAM1"),aligned))
 #  endif