minor derivative to reduce compiler warnings and tag read-only parameters as const.
Fork of lwip by
Diff: core/memp.c
- Revision:
- 10:42a34d63b218
- Parent:
- 6:00bf89892c76
- Child:
- 15:c486879eba14
--- 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 */