Skip to content

Commit 23fe3c6

Browse files
authored
Merge pull request #102 from nasa/integration-candidate
Integration Candidate: 2020-11-03
2 parents 427cae8 + de7a6ad commit 23fe3c6

File tree

8 files changed

+268
-258
lines changed

8 files changed

+268
-258
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ sample_app is an example for how to build and link an application in cFS. See al
88

99
## Version History
1010

11+
### Development Build: 1.2.0-rc1+dev18
12+
13+
- No behavior changes. All identifiers now use the prefix `SAMPLE_APP_`. Changes the name of the main function from SAMPLE_AppMain to SAMPLE_APP_Main which affects the CFE startup script.
14+
- Set REVISION to "99" to indicate development version status
15+
- See <https://github.com/nasa/sample_app/pull/102>
16+
1117
### Development Build: 1.2.0-rc1+dev13
1218

1319
- Unit test MID string format now 32bit
@@ -35,7 +41,7 @@ sample_app is an example for how to build and link an application in cFS. See al
3541
### Development Build: 1.1.10
3642

3743
- Test cases now compare an expected event string with a string derived from the spec string and arguments that were output by the unit under test.
38-
- Replace references to `ccsds.h` types with the `cfe_sb.h`-provided type.
44+
- Replace references to `ccsds.h` types with the `cfe_sb.h`-provided type.
3945
- See <https://github.com/nasa/sample_app/pull/71>
4046

4147
### Development Build: 1.1.9

fsw/src/sample_app.c

Lines changed: 102 additions & 100 deletions
Large diffs are not rendered by default.

fsw/src/sample_app.h

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
#include "sample_app_msg.h"
4444

4545
/***********************************************************************/
46-
#define SAMPLE_PIPE_DEPTH 32 /* Depth of the Command Pipe for Application */
46+
#define SAMPLE_APP_PIPE_DEPTH 32 /* Depth of the Command Pipe for Application */
4747

48-
#define SAMPLE_NUMBER_OF_TABLES 1 /* Number of Table(s) */
48+
#define SAMPLE_APP_NUMBER_OF_TABLES 1 /* Number of Table(s) */
4949

5050
/* Define filenames of default data images for tables */
5151
#define SAMPLE_APP_TABLE_FILE "/cf/sample_app_tbl.tbl"
@@ -63,9 +63,9 @@
6363
*/
6464
typedef union
6565
{
66-
CFE_SB_Msg_t MsgHdr;
67-
SAMPLE_HkTlm_t HkTlm;
68-
} SAMPLE_HkBuffer_t;
66+
CFE_SB_Msg_t MsgHdr;
67+
SAMPLE_APP_HkTlm_t HkTlm;
68+
} SAMPLE_APP_HkBuffer_t;
6969

7070
/*
7171
** Global Data
@@ -81,7 +81,7 @@ typedef struct
8181
/*
8282
** Housekeeping telemetry packet...
8383
*/
84-
SAMPLE_HkBuffer_t HkBuf;
84+
SAMPLE_APP_HkBuffer_t HkBuf;
8585

8686
/*
8787
** Run Status variable used in the main processing loop
@@ -97,33 +97,33 @@ typedef struct
9797
/*
9898
** Initialization data (not reported in housekeeping)...
9999
*/
100-
char PipeName[16];
100+
char PipeName[CFE_MISSION_MAX_API_LEN];
101101
uint16 PipeDepth;
102102

103-
CFE_EVS_BinFilter_t EventFilters[SAMPLE_EVENT_COUNTS];
104-
CFE_TBL_Handle_t TblHandles[SAMPLE_NUMBER_OF_TABLES];
103+
CFE_EVS_BinFilter_t EventFilters[SAMPLE_APP_EVENT_COUNTS];
104+
CFE_TBL_Handle_t TblHandles[SAMPLE_APP_NUMBER_OF_TABLES];
105105

106-
} SAMPLE_AppData_t;
106+
} SAMPLE_APP_Data_t;
107107

108108
/****************************************************************************/
109109
/*
110110
** Local function prototypes.
111111
**
112-
** Note: Except for the entry point (SAMPLE_AppMain), these
112+
** Note: Except for the entry point (SAMPLE_APP_Main), these
113113
** functions are not called from any other source module.
114114
*/
115-
void SAMPLE_AppMain(void);
116-
int32 SAMPLE_AppInit(void);
117-
void SAMPLE_ProcessCommandPacket(CFE_SB_MsgPtr_t Msg);
118-
void SAMPLE_ProcessGroundCommand(CFE_SB_MsgPtr_t Msg);
119-
int32 SAMPLE_ReportHousekeeping(const CFE_SB_CmdHdr_t *Msg);
120-
int32 SAMPLE_ResetCounters(const SAMPLE_ResetCounters_t *Msg);
121-
int32 SAMPLE_Process(const SAMPLE_Process_t *Msg);
122-
int32 SAMPLE_Noop(const SAMPLE_Noop_t *Msg);
123-
void SAMPLE_GetCrc(const char *TableName);
124-
125-
int32 SAMPLE_TblValidationFunc(void *TblData);
126-
127-
bool SAMPLE_VerifyCmdLength(CFE_SB_MsgPtr_t Msg, uint16 ExpectedLength);
115+
void SAMPLE_APP_Main(void);
116+
int32 SAMPLE_APP_Init(void);
117+
void SAMPLE_APP_ProcessCommandPacket(CFE_SB_MsgPtr_t Msg);
118+
void SAMPLE_APP_ProcessGroundCommand(CFE_SB_MsgPtr_t Msg);
119+
int32 SAMPLE_APP_ReportHousekeeping(const CFE_SB_CmdHdr_t *Msg);
120+
int32 SAMPLE_APP_ResetCounters(const SAMPLE_APP_ResetCounters_t *Msg);
121+
int32 SAMPLE_APP_Process(const SAMPLE_APP_Process_t *Msg);
122+
int32 SAMPLE_APP_Noop(const SAMPLE_APP_Noop_t *Msg);
123+
void SAMPLE_APP_GetCrc(const char *TableName);
124+
125+
int32 SAMPLE_APP_TblValidationFunc(void *TblData);
126+
127+
bool SAMPLE_APP_VerifyCmdLength(CFE_SB_MsgPtr_t Msg, uint16 ExpectedLength);
128128

129129
#endif /* _sample_app_h_ */

fsw/src/sample_app_events.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
#ifndef _sample_app_events_h_
3030
#define _sample_app_events_h_
3131

32-
#define SAMPLE_RESERVED_EID 0
33-
#define SAMPLE_STARTUP_INF_EID 1
34-
#define SAMPLE_COMMAND_ERR_EID 2
35-
#define SAMPLE_COMMANDNOP_INF_EID 3
36-
#define SAMPLE_COMMANDRST_INF_EID 4
37-
#define SAMPLE_INVALID_MSGID_ERR_EID 5
38-
#define SAMPLE_LEN_ERR_EID 6
39-
#define SAMPLE_PIPE_ERR_EID 7
32+
#define SAMPLE_APP_RESERVED_EID 0
33+
#define SAMPLE_APP_STARTUP_INF_EID 1
34+
#define SAMPLE_APP_COMMAND_ERR_EID 2
35+
#define SAMPLE_APP_COMMANDNOP_INF_EID 3
36+
#define SAMPLE_APP_COMMANDRST_INF_EID 4
37+
#define SAMPLE_APP_INVALID_MSGID_ERR_EID 5
38+
#define SAMPLE_APP_LEN_ERR_EID 6
39+
#define SAMPLE_APP_PIPE_ERR_EID 7
4040

41-
#define SAMPLE_EVENT_COUNTS 7
41+
#define SAMPLE_APP_EVENT_COUNTS 7
4242

4343
#endif /* _sample_app_events_h_ */
4444

fsw/src/sample_app_msg.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ typedef struct
4646
{
4747
uint8 CmdHeader[CFE_SB_CMD_HDR_SIZE];
4848

49-
} SAMPLE_NoArgsCmd_t;
49+
} SAMPLE_APP_NoArgsCmd_t;
5050

5151
/*
5252
** The following commands all share the "NoArgs" format
@@ -55,9 +55,9 @@ typedef struct
5555
** allows them to change independently in the future without changing the prototype
5656
** of the handler function
5757
*/
58-
typedef SAMPLE_NoArgsCmd_t SAMPLE_Noop_t;
59-
typedef SAMPLE_NoArgsCmd_t SAMPLE_ResetCounters_t;
60-
typedef SAMPLE_NoArgsCmd_t SAMPLE_Process_t;
58+
typedef SAMPLE_APP_NoArgsCmd_t SAMPLE_APP_Noop_t;
59+
typedef SAMPLE_APP_NoArgsCmd_t SAMPLE_APP_ResetCounters_t;
60+
typedef SAMPLE_APP_NoArgsCmd_t SAMPLE_APP_Process_t;
6161

6262
/*************************************************************************/
6363
/*
@@ -69,14 +69,14 @@ typedef struct
6969
uint8 CommandErrorCounter;
7070
uint8 CommandCounter;
7171
uint8 spare[2];
72-
} SAMPLE_HkTlm_Payload_t;
72+
} SAMPLE_APP_HkTlm_Payload_t;
7373

7474
typedef struct
7575
{
76-
uint8 TlmHeader[CFE_SB_TLM_HDR_SIZE];
77-
SAMPLE_HkTlm_Payload_t Payload;
76+
uint8 TlmHeader[CFE_SB_TLM_HDR_SIZE];
77+
SAMPLE_APP_HkTlm_Payload_t Payload;
7878

79-
} OS_PACK SAMPLE_HkTlm_t;
79+
} OS_PACK SAMPLE_APP_HkTlm_t;
8080

8181
#endif /* _sample_app_msg_h_ */
8282

fsw/src/sample_app_version.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232

3333
/* Development Build Macro Definitions */
3434

35-
#define SAMPLE_APP_BUILD_NUMBER 13 /*!< Development Build: Number of commits since baseline */
35+
#define SAMPLE_APP_BUILD_NUMBER 18 /*!< Development Build: Number of commits since baseline */
3636
#define SAMPLE_APP_BUILD_BASELINE \
3737
"v1.2.0-rc1" /*!< Development Build: git tag that is the base for the current development */
3838

3939
/* Version Macro Definitions */
4040

41-
#define SAMPLE_APP_MAJOR_VERSION 1 /*!< @brief ONLY APPLY for OFFICIAL releases. Major version number. */
42-
#define SAMPLE_APP_MINOR_VERSION 1 /*!< @brief ONLY APPLY for OFFICIAL releases. Minor version number. */
43-
#define SAMPLE_APP_REVISION 0 /*!< @brief ONLY APPLY for OFFICIAL releases. Revision version number. */
44-
#define SAMPLE_APP_MISSION_REV 0 /*!< @brief ONLY USED by MISSION Implementations. Mission revision */
41+
#define SAMPLE_APP_MAJOR_VERSION 1 /*!< @brief ONLY APPLY for OFFICIAL releases. Major version number. */
42+
#define SAMPLE_APP_MINOR_VERSION 1 /*!< @brief ONLY APPLY for OFFICIAL releases. Minor version number. */
43+
#define SAMPLE_APP_REVISION 99 /*!< @brief ONLY APPLY for OFFICIAL releases. The value "99" indicates a development version. Revision version number. */
44+
#define SAMPLE_APP_MISSION_REV 0 /*!< @brief ONLY USED by MISSION Implementations. Mission revision */
4545

4646
#define SAMPLE_APP_STR_HELPER(x) #x /*!< @brief Helper function to concatenate strings from integer macros */
4747
#define SAMPLE_APP_STR(x) \

0 commit comments

Comments
 (0)