linking against lwip now
This commit is contained in:
parent
40ddaf1b40
commit
fdc10c9f25
@ -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.
|
||||
|
@ -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, ðernet_link_status_updated);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user