refactoring
This commit is contained in:
parent
8db76a967e
commit
6abcd7305a
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user