eive-obsw/bsp_q7s/OBSWConfig.h.in

148 lines
7.1 KiB
C
Raw Permalink 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
#include "commonConfig.h"
2022-04-29 15:47:54 +02:00
#include "q7sConfig.h"
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
2023-03-26 15:28:00 +02:00
// This enables a lot of periodically generated telemetry, so it can make sense to
// disable this for debugging purposes.
#define OBSW_ENABLE_PERIODIC_HK @OBSW_ENABLE_PERIODIC_HK@
2023-02-12 21:34:55 +01:00
// This switch will cause the SW to command the EIVE system object to safe mode. This will
2023-03-26 15:28:00 +02:00
// trigger a lot of events, so it can make sense to disable this for debugging purposes.
2023-02-12 21:34:55 +01:00
#define OBSW_COMMAND_SAFE_MODE_AT_STARTUP 1
2022-04-29 15:47:54 +02:00
#define OBSW_ADD_GOMSPACE_PCDU @OBSW_ADD_GOMSPACE_PCDU@
// This define is necessary because the EM setup has the P60 dock module, but no ACU on the P60
// module because it broke.
#define OBSW_ADD_GOMSPACE_ACU @OBSW_ADD_GOMSPACE_ACU@
2022-04-29 15:47:54 +02:00
#define OBSW_ADD_MGT @OBSW_ADD_MGT@
#define OBSW_ADD_BPX_BATTERY_HANDLER @OBSW_ADD_BPX_BATTERY_HANDLER@
2022-03-26 13:54:05 +01:00
#define OBSW_ADD_STAR_TRACKER @OBSW_ADD_STAR_TRACKER@
2022-10-26 15:47:23 +02:00
#define OBSW_ADD_PLOC_SUPERVISOR @OBSW_ADD_PLOC_SUPERVISOR@
#define OBSW_ADD_PLOC_MPSOC @OBSW_ADD_PLOC_MPSOC@
2022-04-29 15:47:54 +02:00
#define OBSW_ADD_SUN_SENSORS @OBSW_ADD_SUN_SENSORS@
#define OBSW_ADD_SUS_BOARD_ASS @OBSW_ADD_SUS_BOARD_ASS@
#define OBSW_ADD_ACS_BOARD @OBSW_ADD_ACS_BOARD@
2022-10-10 09:43:52 +02:00
#define OBSW_ADD_ACS_CTRL 1
2023-03-26 15:28:00 +02:00
#define OBSW_ADD_TCS_CTRL 1
2022-09-15 13:03:22 +02:00
#define OBSW_ADD_GPS_CTRL @OBSW_ADD_GPS_CTRL@
2022-05-03 11:54:48 +02:00
#define OBSW_ADD_RW @OBSW_ADD_RW@
2022-04-29 15:47:54 +02:00
#define OBSW_ADD_RTD_DEVICES @OBSW_ADD_RTD_DEVICES@
2022-10-27 09:01:09 +02:00
#define OBSW_ADD_SA_DEPL @OBSW_ADD_SA_DEPL@
#define OBSW_ADD_SCEX_DEVICE @OBSW_ADD_SCEX_DEVICE@
2022-10-27 09:01:09 +02:00
#define OBSW_ADD_HEATERS @OBSW_ADD_HEATERS@
2022-04-29 15:47:54 +02:00
#define OBSW_ADD_TMP_DEVICES @OBSW_ADD_TMP_DEVICES@
#define OBSW_ADD_RAD_SENSORS @OBSW_ADD_RAD_SENSORS@
#define OBSW_ADD_PL_PCDU @OBSW_ADD_PL_PCDU@
#define OBSW_ADD_SYRLINKS @OBSW_ADD_SYRLINKS@
#define OBSW_ADD_CCSDS_IP_CORES @OBSW_ADD_CCSDS_IP_CORES@
2023-04-06 13:24:16 +02:00
// Only relevant for EM for TCS tests.
2023-04-06 12:13:24 +02:00
#define OBSW_ADD_THERMAL_TEMP_INSERTER @OBSW_ADD_THERMAL_TEMP_INSERTER@
2023-04-06 13:24:16 +02:00
// Set to 1 if all telemetry should be sent to the PTME IP Core
#define OBSW_TM_TO_PTME @OBSW_TM_TO_PTME@
// Set to 1 if telecommands are received via the PDEC IP Core
#define OBSW_TC_FROM_PDEC @OBSW_TC_FROM_PDEC@
2022-10-14 15:33:34 +02:00
// Configuration parameter which causes the core controller to try to keep at least one SD card
// working
#define OBSW_SD_CARD_MUST_BE_ON 1
#define OBSW_ENABLE_TIMERS 1
2021-08-17 17:48:51 +02:00
/*******************************************************************/
/** All of the following flags should be disabled for mission code */
/*******************************************************************/
2023-02-12 21:34:55 +01:00
// Use TCP instead of UDP for the TMTC bridge. This allows using the TMTC client locally
// because UDP packets are not allowed in the VPN
// This will cause the OBSW to initialize the TMTC bridge responsible for exchanging data with the
// CCSDS IP Cores.
2023-06-09 13:51:10 +02:00
#define OBSW_ADD_TMTC_TCP_SERVER @OBSW_ADD_TMTC_TCP_SERVER@
#define OBSW_ADD_TMTC_UDP_SERVER @OBSW_ADD_TMTC_UDP_SERVER@
2023-02-12 21:34:55 +01:00
2022-02-23 19:26:02 +01:00
// Can be used to switch device to NORMAL mode immediately
2022-10-27 14:09:55 +02:00
#define OBSW_SWITCH_TO_NORMAL_MODE_AFTER_STARTUP 0
#define OBSW_PRINT_MISSED_DEADLINES 0
2022-01-19 14:29:03 +01:00
2022-10-14 15:33:34 +02:00
#define OBSW_MPSOC_JTAG_BOOT 0
2023-03-06 16:52:58 +01:00
#define OBSW_STAR_TRACKER_GROUND_CONFIG @OBSW_STAR_TRACKER_GROUND_CONFIG@
2022-10-27 14:04:55 +02:00
#define OBSW_SYRLINKS_SIMULATED @OBSW_SYRLINKS_SIMULATED@
2021-09-20 18:15:35 +02:00
#define OBSW_ADD_TEST_CODE 0
#define OBSW_ADD_TEST_TASK 0
2022-02-04 17:48:05 +01:00
#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
#define OBSW_TEST_RAD_SENSOR 0
#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
#define OBSW_TEST_IMTQ 0
#define OBSW_DEBUG_IMTQ 0
2022-04-22 11:09:06 +02:00
#define OBSW_TEST_RW 0
#define OBSW_DEBUG_RW 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
2022-11-11 17:01:19 +01:00
#define OBSW_DEBUG_TMP1075 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-04-22 11:09:06 +02:00
#define OBSW_DEBUG_PDEC_HANDLER 0
2022-03-26 20:47:25 +01:00
#define OBSW_DEBUG_PLOC_SUPERVISOR 0
#define OBSW_DEBUG_PLOC_MPSOC 0
2022-02-05 15:39:16 +01:00
#define OBSW_DEBUG_STARTRACKER 0
2021-08-17 17:48:51 +02:00
2022-04-26 10:37:25 +02:00
#define OBSW_TCP_SERVER_WIRETAPPING 0
2021-08-17 17:48:51 +02:00
/*******************************************************************/
/** CMake Defines */
2021-08-17 17:48:51 +02:00
/*******************************************************************/
2022-11-15 16:44:07 +01:00
#cmakedefine EIVE_BUILD_GPSD_GPS_HANDLER
2021-02-06 11:57:45 +01:00
2022-04-19 17:47:05 +02:00
#cmakedefine LIBGPS_VERSION_MAJOR @LIBGPS_VERSION_MAJOR@
#cmakedefine LIBGPS_VERSION_MINOR @LIBGPS_VERSION_MINOR@
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_ */