2020-09-30 17:17:01 +02:00
|
|
|
/**
|
2021-08-17 17:48:51 +02:00
|
|
|
* @brief This file can be used to add preprocessor define for conditional
|
|
|
|
* code inclusion exclusion or various other project constants and
|
|
|
|
* properties in one place.
|
2020-09-30 17:17:01 +02:00
|
|
|
*/
|
2020-11-20 18:10:39 +01:00
|
|
|
#ifndef FSFWCONFIG_OBSWCONFIG_H_
|
|
|
|
#define FSFWCONFIG_OBSWCONFIG_H_
|
2020-09-30 17:17:01 +02:00
|
|
|
|
2021-08-23 20:38:18 +02:00
|
|
|
#cmakedefine RASPBERRY_PI
|
|
|
|
#cmakedefine XIPHOS_Q7S
|
|
|
|
#cmakedefine BEAGLEBONEBLACK
|
2021-07-29 16:31:04 +02:00
|
|
|
|
2021-03-05 12:57:42 +01:00
|
|
|
#ifdef RASPBERRY_PI
|
2021-06-08 17:04:28 +02:00
|
|
|
#include "rpiConfig.h"
|
2021-04-02 15:14:08 +02:00
|
|
|
#elif defined(XIPHOS_Q7S)
|
2021-06-08 17:04:28 +02:00
|
|
|
#include "q7sConfig.h"
|
2021-03-05 12:57:42 +01:00
|
|
|
#endif
|
|
|
|
#include "commonConfig.h"
|
|
|
|
#include "OBSWVersion.h"
|
2020-09-30 17:17:01 +02:00
|
|
|
|
2021-02-14 13:07:05 +01:00
|
|
|
/* These defines should be disabled for mission code but are useful for
|
|
|
|
debugging. */
|
2021-08-17 17:48:51 +02:00
|
|
|
#define OBSW_VERBOSE_LEVEL 1
|
2021-07-26 11:33:38 +02:00
|
|
|
|
2021-08-17 17:48:51 +02:00
|
|
|
//! Board defines
|
|
|
|
#define BOARD_TE0720 0
|
|
|
|
|
|
|
|
/*******************************************************************/
|
|
|
|
/** All of the following flags should be enabled for mission code */
|
|
|
|
/*******************************************************************/
|
2021-05-24 20:33:59 +02:00
|
|
|
|
2021-08-17 17:48:51 +02:00
|
|
|
//! Timers can mess up the code when debugging
|
|
|
|
//! All of this should be enabled for mission code!
|
2021-09-22 11:45:25 +02:00
|
|
|
#if defined XIPHOS_Q7S
|
|
|
|
|
2021-10-11 19:34:34 +02:00
|
|
|
#define OBSW_USE_CCSDS_IP_CORE 1
|
|
|
|
// Set to 1 if all telemetry should be sent to the PTME IP Core
|
|
|
|
#define OBSW_TM_TO_PTME 1
|
|
|
|
// Set to 1 if telecommands are received via the PDEC IP Core
|
2021-11-22 18:01:16 +01:00
|
|
|
#define OBSW_TC_FROM_PDEC 1
|
2021-10-11 19:34:34 +02:00
|
|
|
|
2021-11-24 15:55:25 +01:00
|
|
|
#define TMTC_TEST_SETUP 1
|
|
|
|
|
2021-08-17 17:48:51 +02:00
|
|
|
#define OBSW_ENABLE_TIMERS 1
|
|
|
|
#define OBSW_ADD_STAR_TRACKER 0
|
|
|
|
#define OBSW_ADD_PLOC_SUPERVISOR 0
|
|
|
|
#define OBSW_ADD_PLOC_MPSOC 0
|
2021-08-20 14:50:40 +02:00
|
|
|
#define OBSW_ADD_SUN_SENSORS 0
|
|
|
|
#define OBSW_ADD_ACS_BOARD 0
|
2021-08-22 20:25:05 +02:00
|
|
|
#define OBSW_ADD_GPS_0 0
|
|
|
|
#define OBSW_ADD_GPS_1 0
|
2021-09-22 11:45:25 +02:00
|
|
|
#define OBSW_ADD_RW 0
|
|
|
|
#define OBSW_ADD_RTD_DEVICES 0
|
|
|
|
#define OBSW_ADD_TMP_DEVICES 0
|
|
|
|
#define OBSW_ADD_RAD_SENSORS 0
|
|
|
|
#define OBSW_ADD_SYRLINKS 0
|
|
|
|
|
|
|
|
#elif defined RASPBERRY_PI
|
|
|
|
|
|
|
|
#define OBSW_ENABLE_TIMERS 1
|
|
|
|
#define OBSW_ADD_STAR_TRACKER 0
|
|
|
|
#define OBSW_ADD_PLOC_SUPERVISOR 0
|
|
|
|
#define OBSW_ADD_PLOC_MPSOC 0
|
|
|
|
#define OBSW_ADD_SUN_SENSORS 0
|
|
|
|
#define OBSW_ADD_ACS_BOARD 0
|
|
|
|
#define OBSW_ADD_GPS_0 0
|
|
|
|
#define OBSW_ADD_GPS_1 0
|
|
|
|
#define OBSW_ADD_RW 0
|
|
|
|
#define OBSW_ADD_RTD_DEVICES 0
|
|
|
|
#define OBSW_ADD_TMP_DEVICES 0
|
|
|
|
#define OBSW_ADD_RAD_SENSORS 0
|
|
|
|
#define OBSW_ADD_SYRLINKS 0
|
|
|
|
|
|
|
|
#endif
|
2021-08-17 17:48:51 +02:00
|
|
|
|
|
|
|
/*******************************************************************/
|
|
|
|
/** All of the following flags should be disabled for mission code */
|
|
|
|
/*******************************************************************/
|
|
|
|
|
|
|
|
//! /* Can be used to switch device to NORMAL mode immediately */
|
|
|
|
#define OBSW_SWITCH_TO_NORMAL_MODE_AFTER_STARTUP 1
|
|
|
|
#define OBSW_PRINT_MISSED_DEADLINES 1
|
2021-09-15 17:38:26 +02:00
|
|
|
// If this is enabled, all other SPI code should be disabled
|
2021-09-20 18:15:35 +02:00
|
|
|
#define OBSW_ADD_TEST_CODE 0
|
2021-09-15 17:38:26 +02:00
|
|
|
#define OBSW_ADD_SPI_TEST_CODE 0
|
2021-08-17 17:48:51 +02:00
|
|
|
#define OBSW_ADD_TEST_PST 0
|
2021-08-20 14:48:22 +02:00
|
|
|
#define OBSW_ADD_TEST_TASK 0
|
2021-08-17 17:48:51 +02:00
|
|
|
#define OBSW_TEST_LIBGPIOD 0
|
|
|
|
#define OBSW_TEST_RADIATION_SENSOR_HANDLER 0
|
|
|
|
#define OBSW_TEST_SUS_HANDLER 0
|
|
|
|
#define OBSW_TEST_PLOC_HANDLER 0
|
|
|
|
#define OBSW_TEST_CCSDS_BRIDGE 0
|
|
|
|
#define OBSW_TEST_CCSDS_PTME 0
|
|
|
|
#define OBSW_TEST_TE7020_HEATER 0
|
2021-09-23 10:51:47 +02:00
|
|
|
#define OBSW_TEST_GPIO_OPEN_BY_LABEL 0
|
|
|
|
#define OBSW_TEST_GPIO_OPEN_BY_LINE_NAME 0
|
2021-08-17 17:48:51 +02:00
|
|
|
|
|
|
|
#define OBSW_DEBUG_P60DOCK 0
|
|
|
|
#define OBSW_DEBUG_PDU1 0
|
|
|
|
#define OBSW_DEBUG_PDU2 0
|
2021-09-16 17:24:34 +02:00
|
|
|
#define OBSW_DEBUG_GPS 0
|
2021-08-17 17:48:51 +02:00
|
|
|
#define OBSW_DEBUG_ACU 0
|
|
|
|
#define OBSW_DEBUG_SYRLINKS 0
|
|
|
|
#define OBSW_DEBUG_IMQT 0
|
|
|
|
#define OBSW_DEBUG_ADIS16507 0
|
|
|
|
#define OBSW_DEBUG_RAD_SENSOR 0
|
|
|
|
#define OBSW_DEBUG_SUS 0
|
|
|
|
#define OBSW_DEBUG_RTD 0
|
|
|
|
#define OBSW_DEBUG_RW 0
|
|
|
|
#define OBSW_DEBUG_STARTRACKER 0
|
|
|
|
#define OBSW_DEBUG_PLOC_MPSOC 0
|
|
|
|
#define OBSW_DEBUG_PLOC_SUPERVISOR 0
|
2021-11-25 14:03:21 +01:00
|
|
|
#define OBSW_DEBUG_PDEC_HANDLER 0
|
2021-08-17 17:48:51 +02:00
|
|
|
|
|
|
|
/*******************************************************************/
|
|
|
|
/** Hardcoded */
|
|
|
|
/*******************************************************************/
|
2021-12-15 10:15:06 +01:00
|
|
|
// Leave at one as the BSP is linux. Used by the ADIS1650X device handler
|
|
|
|
#define OBSW_ADIS1650X_LINUX_COM_IF 1
|
2021-02-06 11:57:45 +01:00
|
|
|
|
2020-12-29 01:09:59 +01:00
|
|
|
#include "OBSWVersion.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
#include "objects/systemObjectList.h"
|
|
|
|
#include "events/subsystemIdRanges.h"
|
|
|
|
#include "returnvalues/classIds.h"
|
|
|
|
|
|
|
|
namespace config {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Add mission configuration flags here */
|
2021-07-22 11:51:58 +02:00
|
|
|
static constexpr uint32_t OBSW_FILESYSTEM_HANDLER_QUEUE_SIZE = 50;
|
2021-08-04 10:20:36 +02:00
|
|
|
static constexpr uint32_t PLOC_UPDATER_QUEUE_SIZE = 50;
|
2020-12-29 01:09:59 +01:00
|
|
|
|
2021-09-30 09:34:01 +02:00
|
|
|
static constexpr uint8_t LIVE_TM = 0;
|
|
|
|
|
2020-12-29 01:09:59 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2020-11-20 18:10:39 +01:00
|
|
|
#endif /* FSFWCONFIG_OBSWCONFIG_H_ */
|