Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration Candidate 20190906 #11

Merged
merged 4 commits into from
Sep 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 0 additions & 112 deletions fsw/for_build/Makefile

This file was deleted.

3 changes: 1 addition & 2 deletions fsw/mission_inc/sample_app_perfids.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
** See the License for the specific language governing permissions and
** limitations under the License.
**
** File:
** $Id: sample_app_perfids.h $
** File: sample_app_perfids.h
**
** Purpose:
** Define Sample App Performance IDs
Expand Down
3 changes: 1 addition & 2 deletions fsw/platform_inc/sample_app_msgids.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
** See the License for the specific language governing permissions and
** limitations under the License.
**
** File:
** $Id: sample_app_msgids.h $
** File: sample_app_msgids.h
**
** Purpose:
** Define Sample App Message IDs
Expand Down
25 changes: 13 additions & 12 deletions fsw/src/sample_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static CFE_EVS_BinFilter_t SAMPLE_EventFilters[] =
void SAMPLE_AppMain( void )
{
int32 status;
uint32 RunStatus = CFE_ES_APP_RUN;
uint32 RunStatus = CFE_ES_RunStatus_APP_RUN;

CFE_ES_PerfLogEntry(SAMPLE_APP_PERF_ID);

Expand All @@ -68,7 +68,7 @@ void SAMPLE_AppMain( void )
/*
** SAMPLE Runloop
*/
while (CFE_ES_RunLoop(&RunStatus) == TRUE)
while (CFE_ES_RunLoop(&RunStatus) == true)
{
CFE_ES_PerfLogExit(SAMPLE_APP_PERF_ID);

Expand Down Expand Up @@ -105,7 +105,7 @@ void SAMPLE_AppInit(void)
*/
CFE_EVS_Register(SAMPLE_EventFilters,
sizeof(SAMPLE_EventFilters)/sizeof(CFE_EVS_BinFilter_t),
CFE_EVS_BINARY_FILTER);
CFE_EVS_EventFilter_BINARY);

/*
** Create the Software Bus command pipe and subscribe to housekeeping
Expand All @@ -119,9 +119,9 @@ void SAMPLE_AppInit(void)

CFE_SB_InitMsg(&SAMPLE_HkTelemetryPkt,
SAMPLE_APP_HK_TLM_MID,
SAMPLE_APP_HK_TLM_LNGTH, TRUE);
SAMPLE_APP_HK_TLM_LNGTH, true);

CFE_EVS_SendEvent (SAMPLE_STARTUP_INF_EID, CFE_EVS_INFORMATION,
CFE_EVS_SendEvent (SAMPLE_STARTUP_INF_EID, CFE_EVS_EventType_INFORMATION,
"SAMPLE App Initialized. Version %d.%d.%d.%d",
SAMPLE_APP_MAJOR_VERSION,
SAMPLE_APP_MINOR_VERSION,
Expand Down Expand Up @@ -156,7 +156,7 @@ void SAMPLE_ProcessCommandPacket(void)

default:
SAMPLE_HkTelemetryPkt.sample_command_error_count++;
CFE_EVS_SendEvent(SAMPLE_COMMAND_ERR_EID,CFE_EVS_ERROR,
CFE_EVS_SendEvent(SAMPLE_COMMAND_ERR_EID,CFE_EVS_EventType_ERROR,
"SAMPLE: invalid command packet,MID = 0x%x", MsgId);
break;
}
Expand All @@ -182,7 +182,8 @@ void SAMPLE_ProcessGroundCommand(void)
{
case SAMPLE_APP_NOOP_CC:
SAMPLE_HkTelemetryPkt.sample_command_count++;
CFE_EVS_SendEvent(SAMPLE_COMMANDNOP_INF_EID,CFE_EVS_INFORMATION,
CFE_EVS_SendEvent(SAMPLE_COMMANDNOP_INF_EID,
CFE_EVS_EventType_INFORMATION,
"SAMPLE: NOOP command");
break;

Expand Down Expand Up @@ -229,7 +230,7 @@ void SAMPLE_ResetCounters(void)
SAMPLE_HkTelemetryPkt.sample_command_count = 0;
SAMPLE_HkTelemetryPkt.sample_command_error_count = 0;

CFE_EVS_SendEvent(SAMPLE_COMMANDRST_INF_EID, CFE_EVS_INFORMATION,
CFE_EVS_SendEvent(SAMPLE_COMMANDRST_INF_EID, CFE_EVS_EventType_INFORMATION,
"SAMPLE: RESET command");
return;

Expand All @@ -240,9 +241,9 @@ void SAMPLE_ResetCounters(void)
/* SAMPLE_VerifyCmdLength() -- Verify command packet length */
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * **/
boolean SAMPLE_VerifyCmdLength(CFE_SB_MsgPtr_t msg, uint16 ExpectedLength)
bool SAMPLE_VerifyCmdLength(CFE_SB_MsgPtr_t msg, uint16 ExpectedLength)
{
boolean result = TRUE;
bool result = true;

uint16 ActualLength = CFE_SB_GetTotalMsgLength(msg);

Expand All @@ -254,10 +255,10 @@ boolean SAMPLE_VerifyCmdLength(CFE_SB_MsgPtr_t msg, uint16 ExpectedLength)
CFE_SB_MsgId_t MessageID = CFE_SB_GetMsgId(msg);
uint16 CommandCode = CFE_SB_GetCmdCode(msg);

CFE_EVS_SendEvent(SAMPLE_LEN_ERR_EID, CFE_EVS_ERROR,
CFE_EVS_SendEvent(SAMPLE_LEN_ERR_EID, CFE_EVS_EventType_ERROR,
"Invalid msg length: ID = 0x%X, CC = %d, Len = %d, Expected = %d",
MessageID, CommandCode, ActualLength, ExpectedLength);
result = FALSE;
result = false;
SAMPLE_HkTelemetryPkt.sample_command_error_count++;
}

Expand Down
2 changes: 1 addition & 1 deletion fsw/src/sample_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ void SAMPLE_ProcessGroundCommand(void);
void SAMPLE_ReportHousekeeping(void);
void SAMPLE_ResetCounters(void);

boolean SAMPLE_VerifyCmdLength(CFE_SB_MsgPtr_t msg, uint16 ExpectedLength);
bool SAMPLE_VerifyCmdLength(CFE_SB_MsgPtr_t msg, uint16 ExpectedLength);

#endif /* _sample_app_h_ */
3 changes: 1 addition & 2 deletions fsw/src/sample_app_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
** See the License for the specific language governing permissions and
** limitations under the License.
**
** File:
** sample_app_events.h
** File: sample_app_events.h
**
** Purpose:
** Define SAMPLE App Events IDs
Expand Down
3 changes: 1 addition & 2 deletions fsw/src/sample_app_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
** See the License for the specific language governing permissions and
** limitations under the License.
**
** File:
** sample_app_msg.h
** File: sample_app_msg.h
**
** Purpose:
** Define SAMPLE App Messages and info
Expand Down
3 changes: 1 addition & 2 deletions fsw/src/sample_app_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
** See the License for the specific language governing permissions and
** limitations under the License.
**
** File:
** $Id: sample_app_version.h $
** File: sample_app_version.h
**
** Purpose:
** The Sample Application header file containing version number
Expand Down