From 1176959a938d9e41d3805f1e6abcfb124ee5953f Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 13 Jul 2021 09:15:36 +0200 Subject: [PATCH] lwIP compiling --- stm32h7/networking/UdpTcLwIpPollingTask.cpp | 9 +++++---- stm32h7/networking/app_dhcp.c | 11 ++++++----- stm32h7/networking/app_dhcp.h | 4 ++-- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/stm32h7/networking/UdpTcLwIpPollingTask.cpp b/stm32h7/networking/UdpTcLwIpPollingTask.cpp index 4972976..68820eb 100644 --- a/stm32h7/networking/UdpTcLwIpPollingTask.cpp +++ b/stm32h7/networking/UdpTcLwIpPollingTask.cpp @@ -5,10 +5,11 @@ #include "app_dhcp.h" #include -#include -#include +#include "fsfw/ipc/MutexGuard.h" +#include "fsfw/serviceinterface/ServiceInterface.h" +#include "fsfw/objectmanager/ObjectManager.h" -#include +#include "lwip/timeouts.h" UdpTcLwIpPollingTask::UdpTcLwIpPollingTask(object_id_t objectId, object_id_t bridgeId): SystemObject(objectId), periodicHandleCounter(0), bridgeId(bridgeId) { @@ -18,7 +19,7 @@ UdpTcLwIpPollingTask::~UdpTcLwIpPollingTask() { } ReturnValue_t UdpTcLwIpPollingTask::initialize() { - udpBridge = objectManager->get(bridgeId); + udpBridge = ObjectManager::instance()->get(bridgeId); if(udpBridge == nullptr) { return ObjectManagerIF::CHILD_INIT_FAILED; } diff --git a/stm32h7/networking/app_dhcp.c b/stm32h7/networking/app_dhcp.c index 6209c86..7c990ad 100644 --- a/stm32h7/networking/app_dhcp.c +++ b/stm32h7/networking/app_dhcp.c @@ -1,11 +1,12 @@ #include "app_dhcp.h" #include "app_ethernet.h" -#include -#include -#include +#include "OBSWConfig.h" -#include -#include +#include "example_common/stm32h7/networking/udp_config.h" +#include "example_common/stm32h7/networking/ethernetif.h" + +#include "lwip/dhcp.h" +#include "stm32h7xx_nucleo.h" #include diff --git a/stm32h7/networking/app_dhcp.h b/stm32h7/networking/app_dhcp.h index 8f58b81..d077275 100644 --- a/stm32h7/networking/app_dhcp.h +++ b/stm32h7/networking/app_dhcp.h @@ -5,11 +5,11 @@ extern "C" { #endif -#include +#include "lwipopts.h" #if LWIP_DHCP == 1 -#include +#include "lwip/netif.h" /* DHCP process states */ #define DHCP_OFF (uint8_t) 0