linking against lwip now

This commit is contained in:
Robin Müller 2021-07-16 12:29:02 +02:00
parent 40ddaf1b40
commit fdc10c9f25
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -1,5 +1,10 @@
#include "hardware_init.h"
void hardware_init() {
#include <rtems_lwip/rtems_lwip.h>
#include <rtems_lwip/ethernetif.h>
#include <rtems_lwip/app_ethernet.h>
#include <rtems_lwip/app_dhcp.h>
void hardware_init() {
rtems_lwip_init(NULL, &ethernet_link_status_updated);
}