stm32/eth: Make ETH DMA buffer attributes configurable.
Signed-off-by: Kwabena W. Agyeman <kwagyeman@live.com>
This commit is contained in:
committed by
Damien George
parent
990f50fbb8
commit
112f657765
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user