From 8ca619144d364cb7e9442bce0f244f15897ff477 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Mon, 11 Oct 2021 12:35:09 -0700 Subject: [PATCH] misc ethernet config parameters (#3343) * various cfg * this has to be 1522 Co-authored-by: Matthew Kennedy --- firmware/config/boards/f429-discovery/mcuconf.h | 2 +- firmware/console/lwipopts.h | 2 +- firmware/hw_layer/ports/stm32/stm32h7/cfg/chconf.h | 2 +- firmware/hw_layer/ports/stm32/stm32h7/cfg/mcuconf.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/config/boards/f429-discovery/mcuconf.h b/firmware/config/boards/f429-discovery/mcuconf.h index 2004a6f983..eae8515134 100644 --- a/firmware/config/boards/f429-discovery/mcuconf.h +++ b/firmware/config/boards/f429-discovery/mcuconf.h @@ -212,7 +212,7 @@ #define STM32_MAC_PHY_TIMEOUT 100 #define STM32_MAC_ETH1_CHANGE_PHY_STATE TRUE #define STM32_MAC_ETH1_IRQ_PRIORITY 13 -#define STM32_MAC_IP_CHECKSUM_OFFLOAD 0 +#define STM32_MAC_IP_CHECKSUM_OFFLOAD 3 /* * PWM driver system settings. diff --git a/firmware/console/lwipopts.h b/firmware/console/lwipopts.h index b293e94288..618aada2c1 100644 --- a/firmware/console/lwipopts.h +++ b/firmware/console/lwipopts.h @@ -55,7 +55,7 @@ #endif #define LWIP_LINK_POLL_INTERVAL TIME_S2I(1) -#define LWIP_IPADDR(p) IP4_ADDR(p, 192, 168, 10, 14) +#define LWIP_IPADDR(p) IP4_ADDR(p, 192, 168, 10, 1) #define LWIP_GATEWAY(p) IP4_ADDR(p, 192, 168, 10, 1) #define LWIP_COMPAT_SOCKETS 0 diff --git a/firmware/hw_layer/ports/stm32/stm32h7/cfg/chconf.h b/firmware/hw_layer/ports/stm32/stm32h7/cfg/chconf.h index ff92626020..2b5be39033 100644 --- a/firmware/hw_layer/ports/stm32/stm32h7/cfg/chconf.h +++ b/firmware/hw_layer/ports/stm32/stm32h7/cfg/chconf.h @@ -308,7 +308,7 @@ * @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS. */ #if !defined(CH_CFG_USE_DYNAMIC) -#define CH_CFG_USE_DYNAMIC FALSE +#define CH_CFG_USE_DYNAMIC TRUE #endif /** @} */ diff --git a/firmware/hw_layer/ports/stm32/stm32h7/cfg/mcuconf.h b/firmware/hw_layer/ports/stm32/stm32h7/cfg/mcuconf.h index b484e49595..b773add4a2 100644 --- a/firmware/hw_layer/ports/stm32/stm32h7/cfg/mcuconf.h +++ b/firmware/hw_layer/ports/stm32/stm32h7/cfg/mcuconf.h @@ -322,7 +322,7 @@ /* * MAC driver system settings. */ -#define STM32_MAC_TRANSMIT_BUFFERS 2 +#define STM32_MAC_TRANSMIT_BUFFERS 4 #define STM32_MAC_RECEIVE_BUFFERS 4 #define STM32_MAC_BUFFERS_SIZE 1522 #define STM32_MAC_PHY_TIMEOUT 100