eive-obsw/common/config/commonConfig.h.in

50 lines
1.5 KiB
C
Raw Normal View History

2021-03-04 18:29:28 +01:00
#ifndef COMMON_CONFIG_COMMONCONFIG_H_
#define COMMON_CONFIG_COMMONCONFIG_H_
2021-09-28 14:58:12 +02:00
#include <cstdint>
2022-04-22 14:09:08 +02:00
#include "fsfw/version.h"
2021-09-28 14:58:12 +02:00
2022-04-29 15:47:54 +02:00
#cmakedefine RASPBERRY_PI
#cmakedefine XIPHOS_Q7S
#cmakedefine BEAGLEBONEBLACK
#cmakedefine EGSE
#cmakedefine TE0720_1CFA
2022-04-26 10:37:25 +02:00
/* These defines should be disabled for mission code but are useful for
debugging. */
#define OBSW_VERBOSE_LEVEL 1
#define OBSW_ADD_LWGPS_TEST 0
2021-03-04 18:29:28 +01:00
2021-09-28 14:58:12 +02:00
// Disable this for mission code. It allows exchanging TMTC packets via the Ethernet port
2022-12-02 13:55:19 +01:00
#define OBSW_ADD_TCPIP_SERVERS 1
2021-10-11 19:34:34 +02:00
2022-09-16 12:35:10 +02:00
#define OBSW_ADD_CFDP_COMPONENTS 1
2021-09-28 14:58:12 +02:00
namespace common {
2022-04-22 14:09:08 +02:00
static constexpr uint8_t OBSW_VERSION_MAJOR = @OBSW_VERSION_MAJOR@;
static constexpr uint8_t OBSW_VERSION_MINOR = @OBSW_VERSION_MINOR@;
static constexpr uint8_t OBSW_VERSION_REVISION = @OBSW_VERSION_REVISION@;
// CST: Commits since tag
static const char OBSW_VERSION_CST_GIT_SHA1[] = "@OBSW_VERSION_CST_GIT_SHA1@";
2022-05-24 15:21:37 +02:00
static constexpr uint32_t OBSW_MAX_SCHEDULED_TCS = @OBSW_MAX_SCHEDULED_TCS@;
2022-05-17 13:40:19 +02:00
extern const fsfw::Version OBSW_VERSION;
2022-04-22 14:09:08 +02:00
2021-10-18 18:23:26 +02:00
extern const uint16_t PUS_PACKET_ID;
2022-09-16 18:10:23 +02:00
extern const uint16_t CFDP_PACKET_ID;
2021-10-11 19:34:34 +02:00
static constexpr uint32_t CCSDS_HANDLER_QUEUE_SIZE = 50;
static constexpr uint8_t NUMBER_OF_VIRTUAL_CHANNELS = 4;
static constexpr uint8_t VC0_QUEUE_SIZE = 50;
static constexpr uint8_t VC1_QUEUE_SIZE = 50;
static constexpr uint8_t VC2_QUEUE_SIZE = 50;
static constexpr uint8_t VC3_QUEUE_SIZE = 50;
2021-09-28 14:58:12 +02:00
}
2021-07-26 13:51:00 +02:00
2021-03-04 18:29:28 +01:00
#endif /* COMMON_CONFIG_COMMONCONFIG_H_ */