Skip to content

Commit 48ce261

Browse files
author
Jake Hageman
committed
CCB 2019-09-04: Merge #3 #4 #6
Reviewed and approved at 2019-09-04 CCB
2 parents b47a8d2 + 1c3e92a commit 48ce261

File tree

8 files changed

+19
-135
lines changed

8 files changed

+19
-135
lines changed

fsw/for_build/Makefile

Lines changed: 0 additions & 112 deletions
This file was deleted.

fsw/mission_inc/sample_app_perfids.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
** See the License for the specific language governing permissions and
1919
** limitations under the License.
2020
**
21-
** File:
22-
** $Id: sample_app_perfids.h $
21+
** File: sample_app_perfids.h
2322
**
2423
** Purpose:
2524
** Define Sample App Performance IDs

fsw/platform_inc/sample_app_msgids.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
** See the License for the specific language governing permissions and
1919
** limitations under the License.
2020
**
21-
** File:
22-
** $Id: sample_app_msgids.h $
21+
** File: sample_app_msgids.h
2322
**
2423
** Purpose:
2524
** Define Sample App Message IDs

fsw/src/sample_app.c

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static CFE_EVS_BinFilter_t SAMPLE_EventFilters[] =
5959
void 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

fsw/src/sample_app.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ void SAMPLE_ProcessGroundCommand(void);
6464
void SAMPLE_ReportHousekeeping(void);
6565
void SAMPLE_ResetCounters(void);
6666

67-
boolean SAMPLE_VerifyCmdLength(CFE_SB_MsgPtr_t msg, uint16 ExpectedLength);
67+
bool SAMPLE_VerifyCmdLength(CFE_SB_MsgPtr_t msg, uint16 ExpectedLength);
6868

6969
#endif /* _sample_app_h_ */

fsw/src/sample_app_events.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
** See the License for the specific language governing permissions and
1919
** limitations under the License.
2020
**
21-
** File:
22-
** sample_app_events.h
21+
** File: sample_app_events.h
2322
**
2423
** Purpose:
2524
** Define SAMPLE App Events IDs

fsw/src/sample_app_msg.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
** See the License for the specific language governing permissions and
1919
** limitations under the License.
2020
**
21-
** File:
22-
** sample_app_msg.h
21+
** File: sample_app_msg.h
2322
**
2423
** Purpose:
2524
** Define SAMPLE App Messages and info

fsw/src/sample_app_version.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
** See the License for the specific language governing permissions and
1919
** limitations under the License.
2020
**
21-
** File:
22-
** $Id: sample_app_version.h $
21+
** File: sample_app_version.h
2322
**
2423
** Purpose:
2524
** The Sample Application header file containing version number

0 commit comments

Comments
 (0)