refactoring

This commit is contained in:
Robin Müller 2021-07-16 13:40:07 +02:00
parent 8db76a967e
commit 6abcd7305a
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
4 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
target_sources(${TARGET_NAME} PRIVATE
freertos.c
hardware_init.c
hardware_init.cpp
stm32h7xx_hal_timebase_tim.c
stm32h7xx_nucleo.c
lan8742.c

View File

@ -8,6 +8,7 @@
#if OBSW_ADD_LWIP_COMPONENTS == 1
#include <app_ethernet.h>
#include "example_common/stm32h7/networking/ethernetif.h"
#include "example_common/stm32h7/networking/app_ethernet.h"
#include <lwip/netif.h>
#include <lwip/init.h>
#include <lwip/ip_addr.h>
@ -263,10 +264,10 @@ void Netif_Config(void)
/* Registers the default network interface */
netif_set_default(&gnetif);
ethernet_link_status_updated(&gnetif);
networking::ethernetLinkStatusUpdated(&gnetif);
#if LWIP_NETIF_LINK_CALLBACK
netif_set_link_callback(&gnetif, ethernet_link_status_updated);
netif_set_link_callback(&gnetif, networking::ethernetLinkStatusUpdated);
#endif
}

View File

@ -2,6 +2,7 @@
#include "OBSWConfig.h"
#include "devices/devAddresses.h"
#include "objects/systemObjectList.h"
#include "hardware_init.h"
#include "mission/utility/TmFunnel.h"
#include "mission/core/GenericFactory.h"
@ -57,7 +58,7 @@ void ObjectFactory::produce(void* args) {
/* UDP Server */
new TmTcLwIpUdpBridge(objects::UDP_BRIDGE,
objects::CCSDS_DISTRIBUTOR, objects::TM_STORE, objects::TC_STORE);
new UdpTcLwIpPollingTask(objects::UDP_POLLING_TASK, objects::UDP_BRIDGE);
new UdpTcLwIpPollingTask(objects::UDP_POLLING_TASK, objects::UDP_BRIDGE, &gnetif);
#endif /* OBSW_ADD_CORE_COMPONENTS == 1 */
ObjectFactory::produceGenericObjects();

@ -1 +1 @@
Subproject commit 0ad5c91fc7ce64b04b1d9742a54929d79acfc722
Subproject commit 253780d5d40c08284788b74e5964f6210ab4d641