Skip to content

Commit 167fe63

Browse files
committed
added default placement macro for all boards and toolchains
1 parent 9d8f33b commit 167fe63

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

net/LWIPInterface/lwip/core/mem.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,13 @@ struct mem {
189189
#elif defined(TARGET_LPC1768)
190190
# if defined (__ICCARM__)
191191
# define ETHMEM_SECTION
192-
# elif defined(TOOLCHAIN_GCC_CR)
192+
# elif defined(TOOLCHAIN_GCC_CR) || defined(TOOLCHAIN_GCC_ARM)
193193
# define ETHMEM_SECTION __attribute__((section(".data.$RamPeriph32")))
194194
# else
195195
# define ETHMEM_SECTION __attribute__((section("AHBSRAM0"),aligned))
196196
# endif
197+
#else
198+
#define ETHMEM_SECTION
197199
#endif
198200

199201
/** the heap. we need one struct mem at the end and some room for alignment */

net/LWIPInterface/lwip/core/memp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ static u8_t *const memp_bases[] = {
174174
# else
175175
# define ETHMEM_SECTION __attribute__((section("AHBSRAM1"),aligned))
176176
# endif
177+
#else
178+
#define ETHMEM_SECTION
177179
#endif
178180

179181
/** This is the actual memory used by the pools (all pools in one big block). */

0 commit comments

Comments
 (0)