85 lines
2.0 KiB
C++
85 lines
2.0 KiB
C++
/**
|
|
* @brief This file will contain configuration constants which are used across all BSPs
|
|
*/
|
|
#ifndef COMMON_COMMONCONFIG_H_
|
|
#define COMMON_COMMONCONFIG_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
//! Specify the debug output verbose level
|
|
#define OBSW_VERBOSE_LEVEL 1
|
|
|
|
#define OBSW_PRINT_MISSED_DEADLINES 1
|
|
|
|
//! Add core components for the FSFW and for TMTC communication
|
|
#define OBSW_ADD_CORE_COMPONENTS 1
|
|
|
|
//! 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
|
|
|
|
#include <fsfw/events/fwSubsystemIdRanges.h>
|
|
#include <fsfw/returnvalues/FwClassIds.h>
|
|
|
|
/**
|
|
* Enumerations for used PUS service IDs.
|
|
*/
|
|
namespace pus {
|
|
enum ServiceIds: uint8_t {
|
|
PUS_SERVICE_1 = 1,
|
|
PUS_SERVICE_2 = 2,
|
|
PUS_SERVICE_3 = 3,
|
|
PUS_SERVICE_5 = 5,
|
|
PUS_SERVICE_8 = 8,
|
|
PUS_SERVICE_9 = 9,
|
|
PUS_SERVICE_17 = 17,
|
|
PUS_SERVICE_20 = 20,
|
|
PUS_SERVICE_200 = 200
|
|
};
|
|
}
|
|
|
|
/**
|
|
* The subsystem IDs will be part of the event IDs used throughout the FSFW.
|
|
*/
|
|
namespace SUBSYSTEM_ID {
|
|
enum commonSubsystemId: uint8_t {
|
|
START_EVENT_ID = FW_SUBSYSTEM_ID_RANGE,
|
|
};
|
|
}
|
|
|
|
/**
|
|
* The subsystem IDs will be part of the returnvalues used throughout the FSFW.
|
|
*
|
|
*/
|
|
namespace CLASS_ID {
|
|
enum commonClassIds: uint8_t {
|
|
DUMMY_HANDLER = FW_CLASS_ID_COUNT, //DDH
|
|
COMMON_CLASS_ID_COUNT
|
|
};
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* COMMON_COMMONCONFIG_H_ */
|