VC++ compilation fix
This commit is contained in:
@@ -27,11 +27,8 @@
|
|||||||
#define UNUSED(x) ((void)(x)) /* to avoid warnings */
|
#define UNUSED(x) ((void)(x)) /* to avoid warnings */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SIMU) && __GNUC__
|
#if defined(SIMU)
|
||||||
#define __ALIGNED(x) __attribute__((aligned(x)))
|
#define __ALIGNED(x)
|
||||||
#define __SECTION_USED(s) __attribute__((used))
|
|
||||||
#elif defined(SIMU)
|
|
||||||
#define __ALIGNED(x) __declspec(align(x))
|
|
||||||
#define __SECTION_USED(s)
|
#define __SECTION_USED(s)
|
||||||
#else
|
#else
|
||||||
#define __ALIGNED(x) __attribute__((aligned(x)))
|
#define __ALIGNED(x) __attribute__((aligned(x)))
|
||||||
@@ -41,9 +38,9 @@
|
|||||||
#if defined(SIMU)
|
#if defined(SIMU)
|
||||||
#define __DMA
|
#define __DMA
|
||||||
#elif (defined(STM32F4) && !defined(BOOT)) || defined(SDRAM)
|
#elif (defined(STM32F4) && !defined(BOOT)) || defined(SDRAM)
|
||||||
#define __DMA __attribute__((section(".ram"), aligned(4)))
|
#define __DMA __attribute__((section(".ram"), aligned(4)))
|
||||||
#else
|
#else
|
||||||
#define __DMA __ALIGNED(4)
|
#define __DMA __ALIGNED(4)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SDRAM) && !defined(SIMU)
|
#if defined(SDRAM) && !defined(SIMU)
|
||||||
|
|||||||
Reference in New Issue
Block a user