stm32/eth: Make ETH DMA buffer attributes configurable.

Signed-off-by: Kwabena W. Agyeman <kwagyeman@live.com>
This commit is contained in:
Kwabena W. Agyeman
2025-01-23 23:17:00 -08:00
committed by Damien George
parent 990f50fbb8
commit 112f657765
2 changed files with 5 additions and 1 deletions

View File

@@ -121,7 +121,7 @@ typedef struct _eth_t {
int16_t (*phy_get_link_status)(uint32_t phy_addr);
} eth_t;
static eth_dma_t eth_dma __attribute__((aligned(16384)));
static eth_dma_t eth_dma MICROPY_HW_ETH_DMA_ATTRIBUTE;
eth_t eth_instance;

View File

@@ -669,3 +669,7 @@
#endif
#define MICROPY_HW_USES_BOOTLOADER (MICROPY_HW_VTOR != 0x08000000)
#ifndef MICROPY_HW_ETH_DMA_ATTRIBUTE
#define MICROPY_HW_ETH_DMA_ATTRIBUTE __attribute__((aligned(16384)));
#endif