using cmake configure file now
This commit is contained in:
parent
82b752807f
commit
d165c7533a
@ -36,6 +36,8 @@ pre_project_config()
|
|||||||
# Project Name
|
# Project Name
|
||||||
project(fsfw_example ASM C CXX)
|
project(fsfw_example ASM C CXX)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Pre-Sources preparation
|
# Pre-Sources preparation
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -64,7 +66,16 @@ pre_source_hw_os_config()
|
|||||||
|
|
||||||
set(COMMON_CONFIG_PATH "${COMMON_PATH}/config")
|
set(COMMON_CONFIG_PATH "${COMMON_PATH}/config")
|
||||||
set(FSFW_CONFIG_PATH "${BSP_PATH}/fsfwconfig")
|
set(FSFW_CONFIG_PATH "${BSP_PATH}/fsfwconfig")
|
||||||
set(FSFW_ADDITIONAL_INC_PATH ${COMMON_CONFIG_PATH})
|
set(FSFW_ADDITIONAL_INC_PATHS
|
||||||
|
"${COMMON_CONFIG_PATH}"
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
|
CACHE STRING
|
||||||
|
"FSFW configuration paths"
|
||||||
|
)
|
||||||
|
|
||||||
|
configure_file(${COMMON_CONFIG_PATH}/commonConfig.h.in commonConfig.h)
|
||||||
|
configure_file(${FSFW_CONFIG_PATH}/FSFWConfig.h.in FSFWConfig.h)
|
||||||
|
configure_file(${FSFW_CONFIG_PATH}/OBSWConfig.h.in OBSWConfig.h)
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
set(WARNING_FLAGS
|
set(WARNING_FLAGS
|
||||||
@ -127,6 +138,7 @@ target_link_libraries(${TARGET_NAME} PRIVATE
|
|||||||
# Add include paths for all sources.
|
# Add include paths for all sources.
|
||||||
target_include_directories(${TARGET_NAME} PRIVATE
|
target_include_directories(${TARGET_NAME} PRIVATE
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${FSFW_CONFIG_PATH}
|
${FSFW_CONFIG_PATH}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#include <OBSWConfig.h>
|
#include "OBSWConfig.h"
|
||||||
|
|
||||||
#include <bsp_linux/core/ObjectFactory.h>
|
#include <bsp_linux/core/ObjectFactory.h>
|
||||||
#include <bsp_linux/fsfwconfig/objects/systemObjectList.h>
|
#include <bsp_linux/fsfwconfig/objects/systemObjectList.h>
|
||||||
#include <bsp_linux/fsfwconfig/OBSWConfig.h>
|
|
||||||
#include <bsp_linux/fsfwconfig/tmtc/apid.h>
|
#include <bsp_linux/fsfwconfig/tmtc/apid.h>
|
||||||
#include <bsp_linux/fsfwconfig/tmtc/pusIds.h>
|
#include <bsp_linux/fsfwconfig/tmtc/pusIds.h>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef FSFWCONFIG_RETURNVALUES_CLASSIDS_H_
|
#ifndef FSFWCONFIG_RETURNVALUES_CLASSIDS_H_
|
||||||
#define FSFWCONFIG_RETURNVALUES_CLASSIDS_H_
|
#define FSFWCONFIG_RETURNVALUES_CLASSIDS_H_
|
||||||
|
|
||||||
#include <commonConfig.h>
|
#include "commonConfig.h"
|
||||||
|
|
||||||
namespace CLASS_ID {
|
namespace CLASS_ID {
|
||||||
enum classIds: uint8_t {
|
enum classIds: uint8_t {
|
||||||
|
@ -17,3 +17,7 @@ ReturnValue_t STM32TestTask::performPeriodicAction() {
|
|||||||
}
|
}
|
||||||
return TestTask::performPeriodicAction();
|
return TestTask::performPeriodicAction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ReturnValue_t STM32TestTask::performOneShotAction() {
|
||||||
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
|
}
|
||||||
|
@ -8,6 +8,8 @@ public:
|
|||||||
STM32TestTask(object_id_t objectId, bool enablePrintout, bool blinkyLed = true);
|
STM32TestTask(object_id_t objectId, bool enablePrintout, bool blinkyLed = true);
|
||||||
|
|
||||||
ReturnValue_t performPeriodicAction() override;
|
ReturnValue_t performPeriodicAction() override;
|
||||||
|
ReturnValue_t performOneShotAction() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
bool blinkyLed = false;
|
bool blinkyLed = false;
|
||||||
|
2
fsfw
2
fsfw
@ -1 +1 @@
|
|||||||
Subproject commit 54e60f4ddc88a8e108588c5a8b69ae744686a295
|
Subproject commit ad820fbe99d2fa0fb49eb71ed70611bfea7efa99
|
Reference in New Issue
Block a user