@@ -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 ,
0 commit comments