Skip to content

Commit

Permalink
stm32/eth: Make ETH DMA buffer attributes configurable.
Browse files Browse the repository at this point in the history
Signed-off-by: Kwabena W. Agyeman <[email protected]>
  • Loading branch information
kwagyeman authored and dpgeorge committed Feb 4, 2025
1 parent 990f50f commit 112f657
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ports/stm32/eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 4 additions & 0 deletions ports/stm32/mpconfigboard_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 112f657

Please sign in to comment.