refactor: IWDG driver and EM trigger (#3846)
This commit is contained in:
@@ -56,24 +56,20 @@
|
||||
|
||||
#if defined(SIMU)
|
||||
#define __DMA
|
||||
#elif (defined(STM32F4) && !defined(BOOT)) || defined(SDRAM)
|
||||
#define __DMA __attribute__((section(".ram"), aligned(4)))
|
||||
#else
|
||||
#define __DMA __ALIGNED(4)
|
||||
#define __DMA __attribute__((section(".ram"), aligned(4)))
|
||||
#endif
|
||||
|
||||
#if defined(CCMRAM) && !defined(SIMU)
|
||||
#define __CCMRAM __attribute__((section(".ccm"), aligned(4)))
|
||||
#define __CCMRAM __attribute__((section(".ccm"), aligned(4)))
|
||||
#else
|
||||
#define __CCMRAM
|
||||
#endif
|
||||
|
||||
#if defined(SDRAM) && !defined(SIMU)
|
||||
#define __SDRAM __attribute__((section(".sdram"), aligned(4)))
|
||||
#define __NOINIT __attribute__((section(".noinit")))
|
||||
#else
|
||||
#define __SDRAM __DMA
|
||||
#define __NOINIT
|
||||
#endif
|
||||
|
||||
#if __GNUC__
|
||||
|
||||
Reference in New Issue
Block a user