refactoring
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user