mirror of https://github.com/ARMmbed/mbed-os.git
Changed definition structure of ETHMEM_SECTION
This structure makes it easier to add more targets/toolchains in the future and it's (arguably) a bit easier to read.pull/34/head^2
parent
1e4c9bed66
commit
6744f47359
|
@ -138,12 +138,14 @@ struct lpc_enetdata {
|
|||
# else
|
||||
# define ETHMEM_SECTION __attribute__((section("AHBSRAM1"),aligned))
|
||||
# endif
|
||||
#else
|
||||
#if defined(TARGET_LPC1768) && defined(TOOLCHAIN_GCC_ARM)
|
||||
#elif defined(TARGET_LPC1768)
|
||||
# if defined(TOOLCHAIN_GCC_ARM)
|
||||
# define ETHMEM_SECTION __attribute__((section("AHBSRAM1"),aligned))
|
||||
#else
|
||||
# define ETHMEM_SECTION ALIGNED(8)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef ETHMEM_SECTION
|
||||
#define ETHMEM_SECTION ALIGNED(8)
|
||||
#endif
|
||||
|
||||
/** \brief LPC EMAC driver work data
|
||||
|
|
Loading…
Reference in New Issue