From 9309562716da79a49e9d04a4f9081eb730216581 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Tue, 20 Oct 2020 17:24:53 +0200 Subject: [PATCH] defaultcfg folder added --- defaultcfg/FSFWConfig.h | 41 +++++++++++++++++++++++++++++++++++++++++ defaultcfg/version.h | 11 +++++++++++ 2 files changed, 52 insertions(+) create mode 100644 defaultcfg/FSFWConfig.h create mode 100644 defaultcfg/version.h diff --git a/defaultcfg/FSFWConfig.h b/defaultcfg/FSFWConfig.h new file mode 100644 index 00000000..2001f306 --- /dev/null +++ b/defaultcfg/FSFWConfig.h @@ -0,0 +1,41 @@ +#ifndef CONFIG_FSFWCONFIG_H_ +#define CONFIG_FSFWCONFIG_H_ + +#include "version.h" + +//! Used to determine whether C++ ostreams are used +//! Those can lead to code bloat. +#define FSFW_CPP_OSTREAM_ENABLED 1 + +//! Reduced printout to further decrese code size +//! Be careful, this also turns off most diagnostic prinouts! +#define FSFW_REDUCED_PRINTOUT 0 + +//! Can be used to enable debugging printouts for developing the FSFW +#define FSFW_DEBUGGING 0 + +//! Defines the FIFO depth of each commanding service base which +//! also determines how many commands a CSB service can handle in one cycle +//! simulataneously. This will increase the required RAM for +//! each CSB service ! +#define FSFW_CSB_FIFO_DEPTH 6 + +//! If -DDEBUG is supplied in the build defines, there will be +//! additional output which requires the translation files translateObjects +//! and translateEvents (and their compiles source files) +#ifdef DEBUG +#define FSFW_DEBUG_OUTPUT 1 +//! Specify whether info events are printed too. +#define FSFW_DEBUG_INFO 1 +#include +#include +#else +#define FSFW_DEBUG_OUTPUT 0 +#endif + +//! When using the newlib nano library, C99 support for stdio facilities +//! will not be provided. This define should be set to 1 if this is the case. +#define FSFW_NO_C99_IO 1 + + +#endif /* CONFIG_FSFWCONFIG_H_ */ diff --git a/defaultcfg/version.h b/defaultcfg/version.h new file mode 100644 index 00000000..b3ef8318 --- /dev/null +++ b/defaultcfg/version.h @@ -0,0 +1,11 @@ +#ifndef FSFW_DEFAULTCFG_VERSION_H_ +#define FSFW_DEFAULTCFG_VERSION_H_ + +static const char* FSFW_VERSION_NAME = "fsfw"; + +#define FSFW_VERSION 0 +#define FSFW_SUBVERSION 0 + + + +#endif /* FSFW_DEFAULTCFG_VERSION_H_ */