Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: EthernetInterface_ccx
Fork of lwip by
Diff: core/memp.c
- Revision:
- 10:42a34d63b218
- Parent:
- 6:00bf89892c76
--- a/core/memp.c Fri Mar 01 15:35:46 2013 +0000 +++ b/core/memp.c Thu May 30 17:11:58 2013 +0100 @@ -166,11 +166,17 @@ #else /* MEMP_SEPARATE_POOLS */ +#if defined(TARGET_LPC1768) +# define ETHMEM_SECTION __attribute((section("AHBSRAM1"))) +#elif defined(TARGET_LPC4088) +# define ETHMEM_SECTION +#endif + /** This is the actual memory used by the pools (all pools in one big block). */ static u8_t memp_memory[MEM_ALIGNMENT - 1 #define LWIP_MEMPOOL(name,num,size,desc) + ( (num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size) ) ) #include "lwip/memp_std.h" -] __attribute((section("AHBSRAM1"))); +] ETHMEM_SECTION; #endif /* MEMP_SEPARATE_POOLS */