Skip to content

Commit

Permalink
Merge pull request #166 from nasa/integration-candidate
Browse files Browse the repository at this point in the history
sch_lab Integration candidate: Equuleus-rc1+dev1
  • Loading branch information
dzbaker authored Jan 18, 2024
2 parents 2bc1e11 + e2f1493 commit dc58baf
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Development Build: equuleus-rc1+dev29
- updating sch_lab to use new versioning system
- See <https://github.com/nasa/sch_lab/pull/161>

## Development Build: v2.5.0-rc4+dev83
- SC_1HZ_WAKEUP_MID deprecated
- CFE_TIME_1HZ_CMD_MID deprecated
Expand Down
7 changes: 6 additions & 1 deletion fsw/src/sch_lab_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include "cfe.h"
#include "cfe_msgids.h"
#include "cfe_config.h"

#include "sch_lab_perfids.h"
#include "sch_lab_version.h"
Expand Down Expand Up @@ -159,6 +160,7 @@ CFE_Status_t SCH_LAB_AppInit(void)
SCH_LAB_ScheduleTableEntry_t *ConfigEntry;
SCH_LAB_StateEntry_t * LocalStateEntry;
void * TableAddr;
char VersionString[SCH_LAB_CFG_MAX_VERSION_STR_LEN];

memset(&SCH_LAB_Global, 0, sizeof(SCH_LAB_Global));

Expand Down Expand Up @@ -298,7 +300,10 @@ CFE_Status_t SCH_LAB_AppInit(void)
CFE_ES_WriteToSysLog("%s: OS_TimerSet failed:RC=%ld\n", __func__, (long)OsStatus);
}

OS_printf("SCH Lab Initialized.%s\n", SCH_LAB_VERSION_STRING);
CFE_Config_GetVersionString(VersionString, SCH_LAB_CFG_MAX_VERSION_STR_LEN, "SCH Lab",
SCH_LAB_VERSION, SCH_LAB_BUILD_CODENAME, SCH_LAB_LAST_OFFICIAL);

OS_printf("SCH Lab Initialized.%s\n", VersionString);

return CFE_SUCCESS;
}
26 changes: 16 additions & 10 deletions fsw/src/sch_lab_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,22 @@
*/

/* Development Build Macro Definitions */
#define SCH_LAB_BUILD_NUMBER 83 /*!< Development Build: Number of commits since baseline */
#define SCH_LAB_BUILD_BASELINE \
"v2.5.0-rc4" /*!< Development Build: git tag that is the base for the current development */
#define SCH_LAB_BUILD_NUMBER 29 /*!< Development Build: Number of commits since baseline */
#define SCH_LAB_BUILD_BASELINE "equuleus-rc1" /*!< Development Build: git tag that is the base for the current development */
#define SCH_LAB_BUILD_DEV_CYCLE "equuleus-rc2" /**< @brief Development: Release name for current development cycle */
#define SCH_LAB_BUILD_CODENAME "Equuleus" /**< @brief: Development: Code name for the current build */

/*
* Version Macros, see \ref cfsversions for definitions.
*/
#define SCH_LAB_MAJOR_VERSION 2 /*!< @brief Major version number */
#define SCH_LAB_MINOR_VERSION 3 /*!< @brief Minor version number */
#define SCH_LAB_REVISION 99 /*!< @brief Revision version number. Value of 99 indicates a development version.*/
#define SCH_LAB_REVISION 0 /*!< @brief Revision version number. Value of 0 indicates a development version.*/

/**
* @brief Last official release.
*/
#define SCH_LAB_LAST_OFFICIAL "v2.3.0"

/*!
* @brief Mission revision.
Expand All @@ -54,12 +60,12 @@
*/
#define SCH_LAB_VERSION SCH_LAB_BUILD_BASELINE "+dev" SCH_LAB_STR(SCH_LAB_BUILD_NUMBER)

/*! @brief Development Build Version String.
* @details Reports the current development build's baseline, number, and name. Also includes a note about the latest
* official version. @n See @ref cfsversions for format differences between development and release versions.
/**
* @brief Max Version String length.
*
* Maximum length that an SCH LAB version string can be.
*
*/
#define SCH_LAB_VERSION_STRING \
" SCH Lab DEVELOPMENT BUILD " SCH_LAB_VERSION \
", Last Official Release: v2.3.0" /* For full support please use this version */
#define SCH_LAB_CFG_MAX_VERSION_STR_LEN 256

#endif

0 comments on commit dc58baf

Please sign in to comment.