diff --git a/stm32h7/CMakeLists.txt b/stm32h7/CMakeLists.txt index 43a0b7c..7ac82fe 100644 --- a/stm32h7/CMakeLists.txt +++ b/stm32h7/CMakeLists.txt @@ -2,4 +2,8 @@ target_sources(${TARGET_NAME} PRIVATE STM32TestTask.cpp ) -add_subdirectory(networking) \ No newline at end of file +option(STM32_ADD_NETWORKING_CODE "Add networking code requiring lwIP" OFF) + +if(STM32_ADD_NETWORKING_CODE) + add_subdirectory(networking) +endif() \ No newline at end of file diff --git a/stm32h7/STM32TestTask.cpp b/stm32h7/STM32TestTask.cpp index 9d70e3c..375c4ec 100644 --- a/stm32h7/STM32TestTask.cpp +++ b/stm32h7/STM32TestTask.cpp @@ -1,6 +1,6 @@ -#include -#include -#include +#include "STM32TestTask.h" +#include "stm32h7xx_nucleo.h" +#include "OBSWConfig.h" STM32TestTask::STM32TestTask(object_id_t objectId, bool enablePrintout, bool blinkyLed): TestTask(objectId, enablePrintout), diff --git a/stm32h7/STM32TestTask.h b/stm32h7/STM32TestTask.h index 260170d..e67b546 100644 --- a/stm32h7/STM32TestTask.h +++ b/stm32h7/STM32TestTask.h @@ -1,7 +1,7 @@ #ifndef BSP_STM32_BOARDTEST_STM32TESTTASK_H_ #define BSP_STM32_BOARDTEST_STM32TESTTASK_H_ -#include +#include "../test/TestTask.h" class STM32TestTask: public TestTask { public: