Skip to content

Commit

Permalink
Fix #128, Standardize macro/function names
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Oct 16, 2022
1 parent 7bb3342 commit 1633247
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fsw/mission_inc/sch_lab_perfids.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
#ifndef SCH_LAB_PERFIDS_H
#define SCH_LAB_PERFIDS_H

#define SCH_MAIN_TASK_PERF_ID 36
#define SCH_LAB_MAIN_TASK_PERF_ID 36

#endif
2 changes: 1 addition & 1 deletion fsw/platform_inc/sch_lab_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/
#define SCH_LAB_END_OF_TABLE 0
#define SCH_LAB_MAX_SCHEDULE_ENTRIES 32
#define SCH_TBL_DEFAULT_FILE "/cf/sch_lab_table.tbl"
#define SCH_LAB_TBL_DEFAULT_FILE "/cf/sch_lab_table.tbl"

/*
** Typedefs
Expand Down
10 changes: 5 additions & 5 deletions fsw/src/sch_lab_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int32 SCH_LAB_AppInit(void);
/*
** AppMain
*/
void SCH_Lab_AppMain(void)
void SCH_LAB_AppMain(void)
{
int i;
uint32 SCH_OneHzPktsRcvd = 0;
Expand All @@ -82,7 +82,7 @@ void SCH_Lab_AppMain(void)
SCH_LAB_StateEntry_t *LocalStateEntry;
CFE_SB_Buffer_t * SBBufPtr;

CFE_ES_PerfLogEntry(SCH_MAIN_TASK_PERF_ID);
CFE_ES_PerfLogEntry(SCH_LAB_MAIN_TASK_PERF_ID);

Status = SCH_LAB_AppInit();
if (Status != CFE_SUCCESS)
Expand All @@ -94,7 +94,7 @@ void SCH_Lab_AppMain(void)
/* Loop Forever */
while (CFE_ES_RunLoop(&RunStatus) == true)
{
CFE_ES_PerfLogExit(SCH_MAIN_TASK_PERF_ID);
CFE_ES_PerfLogExit(SCH_LAB_MAIN_TASK_PERF_ID);

/* Pend on timing sem */
OsStatus = OS_CountSemTake(SCH_LAB_Global.TimingSem);
Expand All @@ -108,7 +108,7 @@ void SCH_Lab_AppMain(void)
Status = CFE_STATUS_EXTERNAL_RESOURCE_FAIL;
}

CFE_ES_PerfLogEntry(SCH_MAIN_TASK_PERF_ID);
CFE_ES_PerfLogEntry(SCH_LAB_MAIN_TASK_PERF_ID);

if (Status == CFE_SUCCESS)
{
Expand Down Expand Up @@ -206,7 +206,7 @@ int32 SCH_LAB_AppInit(void)
/*
** Loading Table
*/
Status = CFE_TBL_Load(SCH_LAB_Global.TblHandle, CFE_TBL_SRC_FILE, SCH_TBL_DEFAULT_FILE);
Status = CFE_TBL_Load(SCH_LAB_Global.TblHandle, CFE_TBL_SRC_FILE, SCH_LAB_TBL_DEFAULT_FILE);
if (Status != CFE_SUCCESS)
{
CFE_ES_WriteToSysLog("SCH_LAB: Error Loading Table SCH_LAB_SchTbl, RC = 0x%08lX\n", (unsigned long)Status);
Expand Down

0 comments on commit 1633247

Please sign in to comment.