You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2026/03/23 08:25:45 UTC
(mynewt-core) 03/03: drivers/stm32_eth: Fix build for STM32H7
This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 64af870f2c5b07669afc86031644c78687db9669
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Mon Mar 23 08:21:33 2026 +0100
drivers/stm32_eth: Fix build for STM32H7
Function HAL_ETH_SetMACFilterConfig() has different
prototype in STM32H7 then on other series.
STM32H7 does not have filtering config paramter
as const.
This just drops const from local variable.
Signed-off-by: Jerzy Kasenberg <je...@codecoup.pl>
---
hw/drivers/lwip/stm32_eth/src/stm32_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/drivers/lwip/stm32_eth/src/stm32_eth.c b/hw/drivers/lwip/stm32_eth/src/stm32_eth.c
index 34503f6a8..9208b7275 100644
--- a/hw/drivers/lwip/stm32_eth/src/stm32_eth.c
+++ b/hw/drivers/lwip/stm32_eth/src/stm32_eth.c
@@ -302,7 +302,7 @@ stm32_lwip_init(struct netif *nif)
int i, j;
const struct stm32_eth_cfg *cfg;
uint32_t reg;
- const ETH_MACFilterConfigTypeDef filterConfig = {
+ ETH_MACFilterConfigTypeDef filterConfig = {
.PassAllMulticast = ENABLE,
};