@@ -59,7 +59,7 @@ static CFE_EVS_BinFilter_t SAMPLE_EventFilters[] =
5959void SAMPLE_AppMain ( void )
6060{
6161 int32 status ;
62- uint32 RunStatus = CFE_ES_APP_RUN ;
62+ uint32 RunStatus = CFE_ES_RunStatus_APP_RUN ;
6363
6464 CFE_ES_PerfLogEntry (SAMPLE_APP_PERF_ID );
6565
@@ -68,7 +68,7 @@ void SAMPLE_AppMain( void )
6868 /*
6969 ** SAMPLE Runloop
7070 */
71- while (CFE_ES_RunLoop (& RunStatus ) == TRUE )
71+ while (CFE_ES_RunLoop (& RunStatus ) == true )
7272 {
7373 CFE_ES_PerfLogExit (SAMPLE_APP_PERF_ID );
7474
@@ -105,7 +105,7 @@ void SAMPLE_AppInit(void)
105105 */
106106 CFE_EVS_Register (SAMPLE_EventFilters ,
107107 sizeof (SAMPLE_EventFilters )/sizeof (CFE_EVS_BinFilter_t ),
108- CFE_EVS_BINARY_FILTER );
108+ CFE_EVS_EventFilter_BINARY );
109109
110110 /*
111111 ** Create the Software Bus command pipe and subscribe to housekeeping
@@ -119,9 +119,9 @@ void SAMPLE_AppInit(void)
119119
120120 CFE_SB_InitMsg (& SAMPLE_HkTelemetryPkt ,
121121 SAMPLE_APP_HK_TLM_MID ,
122- SAMPLE_APP_HK_TLM_LNGTH , TRUE );
122+ SAMPLE_APP_HK_TLM_LNGTH , true );
123123
124- CFE_EVS_SendEvent (SAMPLE_STARTUP_INF_EID , CFE_EVS_INFORMATION ,
124+ CFE_EVS_SendEvent (SAMPLE_STARTUP_INF_EID , CFE_EVS_EventType_INFORMATION ,
125125 "SAMPLE App Initialized. Version %d.%d.%d.%d" ,
126126 SAMPLE_APP_MAJOR_VERSION ,
127127 SAMPLE_APP_MINOR_VERSION ,
@@ -156,7 +156,7 @@ void SAMPLE_ProcessCommandPacket(void)
156156
157157 default :
158158 SAMPLE_HkTelemetryPkt .sample_command_error_count ++ ;
159- CFE_EVS_SendEvent (SAMPLE_COMMAND_ERR_EID ,CFE_EVS_ERROR ,
159+ CFE_EVS_SendEvent (SAMPLE_COMMAND_ERR_EID ,CFE_EVS_EventType_ERROR ,
160160 "SAMPLE: invalid command packet,MID = 0x%x" , MsgId );
161161 break ;
162162 }
@@ -182,7 +182,8 @@ void SAMPLE_ProcessGroundCommand(void)
182182 {
183183 case SAMPLE_APP_NOOP_CC :
184184 SAMPLE_HkTelemetryPkt .sample_command_count ++ ;
185- CFE_EVS_SendEvent (SAMPLE_COMMANDNOP_INF_EID ,CFE_EVS_INFORMATION ,
185+ CFE_EVS_SendEvent (SAMPLE_COMMANDNOP_INF_EID ,
186+ CFE_EVS_EventType_INFORMATION ,
186187 "SAMPLE: NOOP command" );
187188 break ;
188189
@@ -229,7 +230,7 @@ void SAMPLE_ResetCounters(void)
229230 SAMPLE_HkTelemetryPkt .sample_command_count = 0 ;
230231 SAMPLE_HkTelemetryPkt .sample_command_error_count = 0 ;
231232
232- CFE_EVS_SendEvent (SAMPLE_COMMANDRST_INF_EID , CFE_EVS_INFORMATION ,
233+ CFE_EVS_SendEvent (SAMPLE_COMMANDRST_INF_EID , CFE_EVS_EventType_INFORMATION ,
233234 "SAMPLE: RESET command" );
234235 return ;
235236
@@ -240,9 +241,9 @@ void SAMPLE_ResetCounters(void)
240241/* SAMPLE_VerifyCmdLength() -- Verify command packet length */
241242/* */
242243/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * **/
243- boolean SAMPLE_VerifyCmdLength (CFE_SB_MsgPtr_t msg , uint16 ExpectedLength )
244+ bool SAMPLE_VerifyCmdLength (CFE_SB_MsgPtr_t msg , uint16 ExpectedLength )
244245{
245- boolean result = TRUE ;
246+ bool result = true ;
246247
247248 uint16 ActualLength = CFE_SB_GetTotalMsgLength (msg );
248249
@@ -254,10 +255,10 @@ boolean SAMPLE_VerifyCmdLength(CFE_SB_MsgPtr_t msg, uint16 ExpectedLength)
254255 CFE_SB_MsgId_t MessageID = CFE_SB_GetMsgId (msg );
255256 uint16 CommandCode = CFE_SB_GetCmdCode (msg );
256257
257- CFE_EVS_SendEvent (SAMPLE_LEN_ERR_EID , CFE_EVS_ERROR ,
258+ CFE_EVS_SendEvent (SAMPLE_LEN_ERR_EID , CFE_EVS_EventType_ERROR ,
258259 "Invalid msg length: ID = 0x%X, CC = %d, Len = %d, Expected = %d" ,
259260 MessageID , CommandCode , ActualLength , ExpectedLength );
260- result = FALSE ;
261+ result = false ;
261262 SAMPLE_HkTelemetryPkt .sample_command_error_count ++ ;
262263 }
263264
0 commit comments