From fdc10c9f2506f638cde48785dc8b5641e333682c Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 16 Jul 2021 12:29:02 +0200 Subject: [PATCH] linking against lwip now --- CMakeLists.txt | 2 ++ .../boardconfig/NUCLEO-H743ZI/Src/hardware_init.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f80f33..622b36f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True) # Set names and variables set(TARGET_NAME ${CMAKE_PROJECT_NAME}) set(LIB_FSFW_NAME fsfw) +set(LIB_LWIP_NAME lwip) # Set path names set(FSFW_PATH fsfw) @@ -97,6 +98,7 @@ add_subdirectory(${COMMON_PATH}) # Add libraries for all sources. target_link_libraries(${TARGET_NAME} PRIVATE ${LIB_FSFW_NAME} + ${LIB_LWIP_NAME} ) # Add include paths for all sources. diff --git a/bsp_stm32h7_rtems/boardconfig/NUCLEO-H743ZI/Src/hardware_init.cpp b/bsp_stm32h7_rtems/boardconfig/NUCLEO-H743ZI/Src/hardware_init.cpp index e7ab06a..df30cef 100644 --- a/bsp_stm32h7_rtems/boardconfig/NUCLEO-H743ZI/Src/hardware_init.cpp +++ b/bsp_stm32h7_rtems/boardconfig/NUCLEO-H743ZI/Src/hardware_init.cpp @@ -1,5 +1,10 @@ #include "hardware_init.h" -void hardware_init() { +#include +#include +#include +#include +void hardware_init() { + rtems_lwip_init(NULL, ðernet_link_status_updated); }