fsfw-example-common/config/commonConfig.h.in

57 lines
1.5 KiB
C
Raw Normal View History

2021-06-08 13:46:45 +02:00
/**
* @brief This file will contain configuration constants which are used across all BSPs
*/
#ifndef COMMON_COMMONCONFIG_H_
#define COMMON_COMMONCONFIG_H_
2022-05-08 02:11:57 +02:00
#include <cstdint>
#cmakedefine01 FSFW_ADD_FMT_TESTS
2021-06-08 13:46:45 +02:00
//! Specify the debug output verbose level
#define OBSW_VERBOSE_LEVEL 1
#define OBSW_TCPIP_UDP_WIRETAPPING 0
2021-06-08 13:46:45 +02:00
#define OBSW_PRINT_MISSED_DEADLINES 0
2021-07-14 10:24:24 +02:00
//! Perform internal unit testd at application startup
#define OBSW_PERFORM_INTERNAL_UNITTEST 1
2021-06-08 13:46:45 +02:00
//! Add core components for the FSFW and for TMTC communication
#define OBSW_ADD_CORE_COMPONENTS 1
2022-09-08 17:39:16 +02:00
#define OBSW_ADD_CFDP_COMPONENTS 1
2021-06-08 13:46:45 +02:00
//! Add the PUS service stack
#define OBSW_ADD_PUS_STACK 1
#define OBSW_PUS_PRINTOUT 0
//! Add the task examples
#define OBSW_ADD_TASK_EXAMPLE 1
#define OBSW_TASK_EXAMPLE_PRINTOUT 0
//! Add the demo device handler object
#define OBSW_ADD_DEVICE_HANDLER_DEMO 1
#define OBSW_DEVICE_HANDLER_PRINTOUT 1
//! Add the demo controller object
#define OBSW_ADD_CONTROLLER_DEMO 1
#define OBSW_CONTROLLER_PRINTOUT 1
/**
* The APID is a 14 bit identifier which can be used to distinguish processes and applications
* on a spacecraft. For more details, see the related ECSS/CCSDS standards.
* For this example, we are going to use a constant APID
*/
static const uint16_t COMMON_APID = 0xEF;
#ifdef __cplusplus
namespace cfg {
static constexpr uint32_t OBSW_MAX_SCHEDULED_TCS = @OBSW_MAX_SCHEDULED_TCS@;
}
2021-06-08 13:46:45 +02:00
#endif /* __cplusplus */
#endif /* COMMON_COMMONCONFIG_H_ */