8000 ports/stm32: Make ETH DMA buffer attributes configurable. by kwagyeman · Pull Request #16633 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading
0