lwIP compiling

This commit is contained in:
Robin Müller 2021-07-13 09:15:36 +02:00
parent 20842a26af
commit 1176959a93
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
3 changed files with 13 additions and 11 deletions

View File

@ -5,10 +5,11 @@
#include "app_dhcp.h"
#include <hardware_init.h>
#include <fsfw/ipc/MutexGuard.h>
#include <fsfw/serviceinterface/ServiceInterface.h>
#include "fsfw/ipc/MutexGuard.h"
#include "fsfw/serviceinterface/ServiceInterface.h"
#include "fsfw/objectmanager/ObjectManager.h"
#include <lwip/timeouts.h>
#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<TmTcLwIpUdpBridge>(bridgeId);
udpBridge = ObjectManager::instance()->get<TmTcLwIpUdpBridge>(bridgeId);
if(udpBridge == nullptr) {
return ObjectManagerIF::CHILD_INIT_FAILED;
}

View File

@ -1,11 +1,12 @@
#include "app_dhcp.h"
#include "app_ethernet.h"
#include <common/stm32_nucleo/networking/udp_config.h>
#include <common/stm32_nucleo/networking/ethernetif.h>
#include <OBSWConfig.h>
#include "OBSWConfig.h"
#include <lwip/dhcp.h>
#include <stm32h7xx_nucleo.h>
#include "example_common/stm32h7/networking/udp_config.h"
#include "example_common/stm32h7/networking/ethernetif.h"
#include "lwip/dhcp.h"
#include "stm32h7xx_nucleo.h"
#include <stdbool.h>

View File

@ -5,11 +5,11 @@
extern "C" {
#endif
#include <lwipopts.h>
#include "lwipopts.h"
#if LWIP_DHCP == 1
#include <lwip/netif.h>
#include "lwip/netif.h"
/* DHCP process states */
#define DHCP_OFF (uint8_t) 0