Skip to content

Commit 112f657

Browse files
kwagyemandpgeorge
authored andcommitted
stm32/eth: Make ETH DMA buffer attributes configurable.
Signed-off-by: Kwabena W. Agyeman <[email protected]>
1 parent 990f50f commit 112f657

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ports/stm32/eth.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ typedef struct _eth_t {
121121
int16_t (*phy_get_link_status)(uint32_t phy_addr);
122122
} eth_t;
123123

124-
static eth_dma_t eth_dma __attribute__((aligned(16384)));
124+
static eth_dma_t eth_dma MICROPY_HW_ETH_DMA_ATTRIBUTE;
125125

126126
eth_t eth_instance;
127127

ports/stm32/mpconfigboard_common.h

+4
Original file line numberDiff line numberDiff line change
@@ -669,3 +669,7 @@
669669
#endif
670670

671671
#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

Comments
 (0)