We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 990f50f commit 112f657Copy full SHA for 112f657
ports/stm32/eth.c
@@ -121,7 +121,7 @@ typedef struct _eth_t {
121
int16_t (*phy_get_link_status)(uint32_t phy_addr);
122
} eth_t;
123
124
-static eth_dma_t eth_dma __attribute__((aligned(16384)));
+static eth_dma_t eth_dma MICROPY_HW_ETH_DMA_ATTRIBUTE;
125
126
eth_t eth_instance;
127
ports/stm32/mpconfigboard_common.h
@@ -669,3 +669,7 @@
669
#endif
670
671
#define MICROPY_HW_USES_BOOTLOADER (MICROPY_HW_VTOR != 0x08000000)
672
+
673
+#ifndef MICROPY_HW_ETH_DMA_ATTRIBUTE
674
+#define MICROPY_HW_ETH_DMA_ATTRIBUTE __attribute__((aligned(16384)));
675
+#endif
0 commit comments