Skip to content

Commit 7c40c28

Browse files
authored
Merge pull request #44 from nasa/ic-20200226
Integration Candidate 20200226
2 parents 1bc145d + ca27f9c commit 7c40c28

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ This sample application is a non-flight example application implementation for t
77
sample_app is an example for how to build and link an application in cFS.
88

99
## Version Notes
10-
10+
- 1.1.4
11+
- Fix for a clean build with OMIT_DEPRECATED
12+
- Minor updates (see https://github.com/nasa/sample_app/pull/44)
1113
- 1.1.3
1214
- Minor updates (see https://github.com/nasa/sample_app/pull/34)
1315
- 1.1.2
@@ -30,4 +32,3 @@ As a sample application, extensive testing is not performed prior to release and
3032
For best results, submit issues:questions or issues:help wanted requests at https://github.com/nasa/cFS.
3133

3234
Official cFS page: http://cfs.gsfc.nasa.gov
33-

fsw/src/sample_app.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,18 @@ void SAMPLE_AppMain( void )
6464
/*
6565
** Perform application specific initialization
6666
** If the Initialization fails, set the RunStatus to
67-
** CFE_ES_APP_ERROR and the App will not enter the RunLoop
67+
** CFE_ES_RunStatus_APP_ERROR and the App will not enter the RunLoop
6868
*/
6969
status = SAMPLE_AppInit();
7070
if (status != CFE_SUCCESS)
7171
{
72-
Sample_AppData.RunStatus = CFE_ES_APP_ERROR;
72+
Sample_AppData.RunStatus = CFE_ES_RunStatus_APP_ERROR;
7373
}
7474

7575
/*
7676
** SAMPLE Runloop
7777
*/
78-
while (CFE_ES_RunLoop(&Sample_AppData.RunStatus) == TRUE)
78+
while (CFE_ES_RunLoop(&Sample_AppData.RunStatus) == true)
7979
{
8080
/*
8181
** Performance Log Exit Stamp
@@ -99,10 +99,10 @@ void SAMPLE_AppMain( void )
9999
else
100100
{
101101
CFE_EVS_SendEvent(SAMPLE_PIPE_ERR_EID,
102-
CFE_EVS_ERROR,
102+
CFE_EVS_EventType_ERROR,
103103
"SAMPLE APP: SB Pipe Read Error, App Will Exit");
104104

105-
Sample_AppData.RunStatus = CFE_ES_APP_ERROR;
105+
Sample_AppData.RunStatus = CFE_ES_RunStatus_APP_ERROR;
106106
}
107107

108108
}
@@ -125,7 +125,7 @@ int32 SAMPLE_AppInit( void )
125125
{
126126
int32 status;
127127

128-
Sample_AppData.RunStatus = CFE_ES_APP_RUN;
128+
Sample_AppData.RunStatus = CFE_ES_RunStatus_APP_RUN;
129129

130130
/*
131131
** Initialize app command execution counters
@@ -163,7 +163,7 @@ int32 SAMPLE_AppInit( void )
163163
*/
164164
status = CFE_EVS_Register(Sample_AppData.SAMPLE_EventFilters,
165165
SAMPLE_EVENT_COUNTS,
166-
CFE_EVS_BINARY_FILTER);
166+
CFE_EVS_EventFilter_BINARY);
167167
if (status != CFE_SUCCESS)
168168
{
169169
CFE_ES_WriteToSysLog("Sample App: Error Registering Events, RC = 0x%08lX\n",
@@ -240,7 +240,7 @@ int32 SAMPLE_AppInit( void )
240240
}
241241

242242
CFE_EVS_SendEvent (SAMPLE_STARTUP_INF_EID,
243-
CFE_EVS_INFORMATION,
243+
CFE_EVS_EventType_INFORMATION,
244244
"SAMPLE App Initialized. Version %d.%d.%d.%d",
245245
SAMPLE_APP_MAJOR_VERSION,
246246
SAMPLE_APP_MINOR_VERSION,
@@ -277,7 +277,7 @@ void SAMPLE_ProcessCommandPacket( CFE_SB_MsgPtr_t Msg )
277277

278278
default:
279279
CFE_EVS_SendEvent(SAMPLE_INVALID_MSGID_ERR_EID,
280-
CFE_EVS_ERROR,
280+
CFE_EVS_EventType_ERROR,
281281
"SAMPLE: invalid command packet,MID = 0x%x",
282282
MsgId);
283283
break;
@@ -330,7 +330,7 @@ void SAMPLE_ProcessGroundCommand( CFE_SB_MsgPtr_t Msg )
330330
/* default case already found during FC vs length test */
331331
default:
332332
CFE_EVS_SendEvent(SAMPLE_COMMAND_ERR_EID,
333-
CFE_EVS_ERROR,
333+
CFE_EVS_EventType_ERROR,
334334
"Invalid ground command code: CC = %d",
335335
CommandCode);
336336
break;
@@ -388,7 +388,7 @@ void SAMPLE_NoopCmd( const SAMPLE_Noop_t *Msg )
388388
Sample_AppData.CmdCounter++;
389389

390390
CFE_EVS_SendEvent(SAMPLE_COMMANDNOP_INF_EID,
391-
CFE_EVS_INFORMATION,
391+
CFE_EVS_EventType_INFORMATION,
392392
"SAMPLE: NOOP command Version %d.%d.%d.%d",
393393
SAMPLE_APP_MAJOR_VERSION,
394394
SAMPLE_APP_MINOR_VERSION,
@@ -414,7 +414,7 @@ void SAMPLE_ResetCounters( const SAMPLE_ResetCounters_t *Msg )
414414
Sample_AppData.ErrCounter = 0;
415415

416416
CFE_EVS_SendEvent(SAMPLE_COMMANDRST_INF_EID,
417-
CFE_EVS_INFORMATION,
417+
CFE_EVS_EventType_INFORMATION,
418418
"SAMPLE: RESET command");
419419

420420
return;
@@ -479,7 +479,7 @@ bool SAMPLE_VerifyCmdLength( CFE_SB_MsgPtr_t Msg, uint16 ExpectedLength )
479479
uint16 CommandCode = CFE_SB_GetCmdCode(Msg);
480480

481481
CFE_EVS_SendEvent(SAMPLE_LEN_ERR_EID,
482-
CFE_EVS_ERROR,
482+
CFE_EVS_EventType_ERROR,
483483
"Invalid Msg length: ID = 0x%X, CC = %d, Len = %d, Expected = %d",
484484
MessageID,
485485
CommandCode,

fsw/src/sample_app_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
#define SAMPLE_APP_MAJOR_VERSION 1
3535
#define SAMPLE_APP_MINOR_VERSION 1
36-
#define SAMPLE_APP_REVISION 3
36+
#define SAMPLE_APP_REVISION 4
3737
#define SAMPLE_APP_MISSION_REV 0
3838

3939

0 commit comments

Comments
 (0)