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
Bogdan Marinescu 2013-08-15 15:55:47 +03:00
parent 1e4c9bed66
commit 6744f47359
1 changed files with 6 additions and 4 deletions

View File

@ -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