eive-obsw/linux/fsfwconfig/OBSWConfig.h.in

209 lines
8.6 KiB
C
Raw Normal View History

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
2022-02-05 13:19:20 +01:00
#cmakedefine EGSE
#cmakedefine TE0720_1CFA
2021-07-29 16:31:04 +02:00
#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
2022-03-27 10:56:40 +02:00
2022-03-26 14:08:34 +01:00
#define Q7S_EM 0
2021-08-17 17:48:51 +02:00
/*******************************************************************/
/** 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
2022-03-13 16:32:40 +01:00
#define Q7S_EM 0
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 0
2021-10-11 19:34:34 +02:00
// Set to 1 if telecommands are received via the PDEC IP Core
#define OBSW_TC_FROM_PDEC 0
2021-10-11 19:34:34 +02:00
2021-08-17 17:48:51 +02:00
#define OBSW_ENABLE_TIMERS 1
2022-01-27 15:26:07 +01:00
#define OBSW_ADD_MGT 1
2022-02-02 17:36:40 +01:00
#define OBSW_ADD_BPX_BATTERY_HANDLER 1
2022-03-26 13:54:05 +01:00
#define OBSW_ADD_STAR_TRACKER @OBSW_ADD_STAR_TRACKER@
2021-08-17 17:48:51 +02:00
#define OBSW_ADD_PLOC_SUPERVISOR 0
#define OBSW_ADD_PLOC_MPSOC 0
2022-03-17 19:59:47 +01:00
#define OBSW_ADD_SUN_SENSORS 1
#define OBSW_ADD_SUS_BOARD_ASS 1
2022-01-19 18:05:17 +01:00
#define OBSW_ADD_ACS_BOARD 1
2022-03-04 16:03:57 +01:00
#define OBSW_ADD_ACS_HANDLERS 1
2021-09-22 11:45:25 +02:00
#define OBSW_ADD_RW 0
#define OBSW_ADD_RTD_DEVICES 1
2021-09-22 11:45:25 +02:00
#define OBSW_ADD_TMP_DEVICES 0
2022-03-17 10:48:35 +01:00
#define OBSW_ADD_RAD_SENSORS 1
2022-03-31 14:40:42 +02:00
#define OBSW_ADD_PL_PCDU 1
2021-09-22 11:45:25 +02:00
#define OBSW_ADD_SYRLINKS 0
2022-01-19 14:39:39 +01:00
#define OBSW_ENABLE_SYRLINKS_TRANSMIT_TIMEOUT 0
2022-02-01 11:45:22 +01:00
#define OBSW_STAR_TRACKER_GROUND_CONFIG 1
2022-03-26 14:08:34 +01:00
#endif // XIPHOS_Q7S
// This is a really tricky switch.. It initializes the PCDU switches to their default states
// at powerup. I think it would be better
// to leave it off for now. It makes testing a lot more difficult and it might mess with
// something the operators might want to do by giving the software too much intelligence
// at the wrong place. The system component might command all the Switches accordingly anyway
#define OBSW_INITIALIZE_SWITCHES 0
2022-03-26 14:08:34 +01:00
#define OBSW_ENABLE_PERIODIC_HK 0
2022-02-05 15:39:16 +01:00
#ifdef TE0720_1CFA
#define OBSW_USE_CCSDS_IP_CORE 0
// Set to 1 if all telemetry should be sent to the PTME IP Core
#define OBSW_TM_TO_PTME 0
// Set to 1 if telecommands are received via the PDEC IP Core
#define OBSW_TC_FROM_PDEC 0
#define OBSW_ENABLE_TIMERS 1
#define OBSW_ADD_MGT 0
#define OBSW_ADD_BPX_BATTERY_HANDLER 0
#define OBSW_ADD_STAR_TRACKER 0
#define OBSW_ADD_PLOC_SUPERVISOR 0
#define OBSW_ADD_PLOC_MPSOC 1
#define OBSW_ADD_SUN_SENSORS 0
#define OBSW_ADD_ACS_BOARD 1
#define OBSW_ADD_ACS_HANDLERS 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_PL_PCDU 0
#define OBSW_ADD_SYRLINKS 0
#define OBSW_ENABLE_SYRLINKS_TRANSMIT_TIMEOUT 0
2022-03-31 14:40:42 +02:00
#define OBSW_SYRLINKS_SIMULATED 1
#define OBSW_STAR_TRACKER_GROUND_CONFIG 1
#define OBSW_ENABLE_PERIODIC_HK 0
2022-03-31 14:40:42 +02:00
#define OBSW_PRINT_CORE_HK 0
2022-03-26 20:47:25 +01:00
#define OBSW_INITIALIZE_SWITCHES 0
#endif
2021-08-17 17:48:51 +02:00
/*******************************************************************/
/** All of the following flags should be disabled for mission code */
/*******************************************************************/
2022-02-23 19:26:02 +01:00
// Can be used to switch device to NORMAL mode immediately
2021-08-17 17:48:51 +02:00
#define OBSW_SWITCH_TO_NORMAL_MODE_AFTER_STARTUP 1
#define OBSW_PRINT_MISSED_DEADLINES 1
2022-01-19 14:29:03 +01:00
2022-02-03 15:31:18 +01:00
#define OBSW_SYRLINKS_SIMULATED 1
2021-09-20 18:15:35 +02:00
#define OBSW_ADD_TEST_CODE 0
2022-02-04 17:48:05 +01:00
#define OBSW_ADD_TEST_TASK 0
#define OBSW_ADD_TEST_PST 0
2022-02-03 13:37:48 +01:00
// If this is enabled, all other SPI code should be disabled
2021-09-15 17:38:26 +02:00
#define OBSW_ADD_SPI_TEST_CODE 0
2022-02-03 13:37:48 +01:00
// If this is enabled, all other I2C code should be disabled
#define OBSW_ADD_I2C_TEST_CODE 0
2022-02-04 17:48:05 +01:00
#define OBSW_ADD_UART_TEST_CODE 0
2022-02-23 19:26:02 +01:00
#define OBSW_TEST_ACS 0
#define OBSW_DEBUG_ACS 0
#define OBSW_TEST_SUS 0
#define OBSW_DEBUG_SUS 0
#define OBSW_TEST_RTD 0
#define OBSW_DEBUG_RTD 0
2022-03-22 14:31:24 +01:00
#define OBSW_TEST_RAD_SENSOR 0
2022-02-23 19:26:02 +01:00
#define OBSW_DEBUG_RAD_SENSOR 0
#define OBSW_TEST_PL_PCDU 0
#define OBSW_DEBUG_PL_PCDU 0
#define OBSW_TEST_BPX_BATT 0
#define OBSW_DEBUG_BPX_BATT 0
2021-08-17 17:48:51 +02:00
#define OBSW_TEST_LIBGPIOD 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_PRINT_CORE_HK 0
2021-08-17 17:48:51 +02:00
#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
2022-01-27 15:26:07 +01:00
#define OBSW_DEBUG_IMTQ 0
2021-08-17 17:48:51 +02:00
#define OBSW_DEBUG_RW 0
2022-01-11 10:55:26 +01:00
#define OBSW_DEBUG_PDEC_HANDLER 0
2021-08-17 17:48:51 +02:00
2022-03-26 20:47:25 +01:00
#ifdef TE0720_1CFA
#define OBSW_DEBUG_PLOC_SUPERVISOR 1
#define OBSW_DEBUG_PLOC_MPSOC 1
#else
#define OBSW_DEBUG_PLOC_SUPERVISOR 0
#define OBSW_DEBUG_PLOC_MPSOC 0
#endif
2022-02-08 13:09:50 +01:00
#ifdef EGSE
2022-02-05 15:39:16 +01:00
#define OBSW_DEBUG_STARTRACKER 1
#else
#define OBSW_DEBUG_STARTRACKER 0
#endif
2022-01-27 15:26:07 +01:00
#ifdef 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
2022-03-26 14:08:34 +01:00
#define OBSW_ADD_MGT 0
2022-01-27 15:26:07 +01:00
#define OBSW_ADD_ACS_BOARD 0
2022-03-26 16:38:42 +01:00
#define OBSW_ADD_ACS_HANDLERS 0
2022-01-27 15:26:07 +01:00
#define OBSW_ADD_GPS_0 0
#define OBSW_ADD_GPS_1 0
#define OBSW_ADD_RW 0
2022-03-26 14:08:34 +01:00
#define OBSW_ADD_BPX_BATTERY_HANDLER 0
2022-01-27 15:26:07 +01:00
#define OBSW_ADD_RTD_DEVICES 0
2022-03-26 14:08:34 +01:00
#define OBSW_ADD_PL_PCDU 0
2022-01-27 15:26:07 +01:00
#define OBSW_ADD_TMP_DEVICES 0
#define OBSW_ADD_RAD_SENSORS 0
#define OBSW_ADD_SYRLINKS 0
2022-03-26 14:08:34 +01:00
#define OBSW_STAR_TRACKER_GROUND_CONFIG 1
2022-01-27 15:26:07 +01:00
2022-03-26 13:54:05 +01:00
#endif // RASPBERRY_PI
2022-01-27 15:26:07 +01:00
#define TCP_SERVER_WIRETAPPING 0
2021-08-17 17:48:51 +02:00
/*******************************************************************/
/** CMake Defines */
2021-08-17 17:48:51 +02:00
/*******************************************************************/
#cmakedefine EIVE_BUILD_GPSD_GPS_HANDLER
2021-02-06 11:57:45 +01:00
2022-03-26 13:54:05 +01:00
#ifdef RASPBERRY_PI
#include "rpiConfig.h"
#elif defined(XIPHOS_Q7S)
#include "q7sConfig.h"
#endif
2020-12-29 01:09:59 +01:00
#ifdef __cplusplus
#include "objects/systemObjectList.h"
#include "events/subsystemIdRanges.h"
#include "returnvalues/classIds.h"
#endif
2020-11-20 18:10:39 +01:00
#endif /* FSFWCONFIG_OBSWCONFIG_H_ */