mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #303 from sg-/master
LPC1768 IAR support for lwip
commit
a528da04e5
|
@ -8,6 +8,8 @@ MANIFEST
|
|||
|
||||
# Private settings
|
||||
private_settings.py
|
||||
test_spec.json
|
||||
projectfiles/
|
||||
|
||||
# Default Build Directory
|
||||
build/
|
||||
|
@ -74,4 +76,3 @@ cscope.*
|
|||
# vim swap files
|
||||
*.swp
|
||||
*~
|
||||
|
||||
|
|
2
mbed.lib
2
mbed.lib
|
@ -1 +1 @@
|
|||
https://github.com/mbedmicro/mbed/#52e93aebd083b679a8fe7b0e47039f138fa8c224
|
||||
https://github.com/mbedmicro/mbed/#df0c855df97688074545693f66bcca5cf9f42111
|
||||
|
|
|
@ -187,12 +187,21 @@ struct mem {
|
|||
# define ETHMEM_SECTION __attribute__((section("AHBSRAM1"),aligned))
|
||||
# endif
|
||||
#elif defined(TARGET_LPC1768)
|
||||
# define ETHMEM_SECTION __attribute((section("AHBSRAM0")))
|
||||
# if defined (__ICCARM__)
|
||||
# define ETHMEM_SECTION
|
||||
# elif defined(TOOLCHAIN_GCC_CR) || defined(TOOLCHAIN_GCC_ARM)
|
||||
# define ETHMEM_SECTION __attribute__((section(".data.$RamPeriph32")))
|
||||
# else
|
||||
# define ETHMEM_SECTION __attribute__((section("AHBSRAM0"),aligned))
|
||||
# endif
|
||||
#else
|
||||
#define ETHMEM_SECTION
|
||||
#endif
|
||||
|
||||
/** the heap. we need one struct mem at the end and some room for alignment */
|
||||
#if defined (__ICCARM__)
|
||||
#pragma location = ".ethusbram"
|
||||
#endif
|
||||
u8_t ram_heap[MEM_SIZE_ALIGNED + (2*SIZEOF_STRUCT_MEM) + MEM_ALIGNMENT] ETHMEM_SECTION;
|
||||
#define LWIP_RAM_HEAP_POINTER ram_heap
|
||||
#endif /* LWIP_RAM_HEAP_POINTER */
|
||||
|
|
|
@ -167,12 +167,21 @@ static u8_t *const memp_bases[] = {
|
|||
#else /* MEMP_SEPARATE_POOLS */
|
||||
|
||||
#if defined(TARGET_LPC1768)
|
||||
# define ETHMEM_SECTION __attribute((section("AHBSRAM1")))
|
||||
# if defined (__ICCARM__)
|
||||
# define ETHMEM_SECTION
|
||||
# elif defined(TOOLCHAIN_GCC_CR)
|
||||
# define ETHMEM_SECTION __attribute__((section(".data.$RamPeriph32")))
|
||||
# else
|
||||
# define ETHMEM_SECTION __attribute__((section("AHBSRAM1"),aligned))
|
||||
# endif
|
||||
#else
|
||||
#define ETHMEM_SECTION
|
||||
#endif
|
||||
|
||||
/** This is the actual memory used by the pools (all pools in one big block). */
|
||||
#if defined (__ICCARM__)
|
||||
#pragma location = ".ethusbram"
|
||||
#endif
|
||||
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"
|
||||
|
|
Loading…
Reference in New Issue