Skip to content

Commit

Permalink
Fix nasa#43, Comments and empty lines cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Oct 13, 2022
1 parent 09d8a1b commit bdcbbad
Show file tree
Hide file tree
Showing 20 changed files with 293 additions and 619 deletions.
19 changes: 5 additions & 14 deletions fsw/src/lc_action.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ void LC_SampleAPs(uint16 StartIndex, uint16 EndIndex)
}

return;

} /* end LC_SampleAP */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -270,8 +269,7 @@ void LC_SampleSingleAP(uint16 APNumber)
} /* end CurrentAPState if */

return;

} /* end LC_SampleSingleAP */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -474,8 +472,7 @@ uint8 LC_EvaluateRPN(uint16 APNumber)
}

return (EvalResult);

} /* end LC_EvaluateRPN */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -604,8 +601,7 @@ int32 LC_ValidateADT(void *TableData)
(int)UnusedCount);

return (TableResult);

} /* end LC_ValidateADT */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -704,9 +700,4 @@ int32 LC_ValidateRPN(const uint16 *RPNPtr, int32 *IndexValue, int32 *StackDepthV
}

return (Result);

} /* end LC_ValidateRPN */

/************************/
/* End of File Comment */
/************************/
}
31 changes: 9 additions & 22 deletions fsw/src/lc_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ void LC_AppMain(void)
** Exit the application
*/
CFE_ES_ExitApp(RunStatus);

} /* end LC_AppMain */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -221,8 +220,7 @@ int32 LC_AppInit(void)
}

return (Status);

} /* end LC_AppInit */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -250,8 +248,7 @@ int32 LC_EvsInit(void)
}

return (Status);

} /* end LC_EvsInit */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -320,8 +317,7 @@ int32 LC_SbInit(void)
}

return (Status);

} /* end LC_SbInit */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -489,8 +485,7 @@ int32 LC_TableInit(void)
}

return (CFE_SUCCESS);

} /* LC_TableInit() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -566,8 +561,7 @@ int32 LC_CreateResultTables(void)
}

return (Result);

} /* LC_CreateResultTables() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -723,8 +717,7 @@ int32 LC_CreateDefinitionTables(void)
}

return (Result);

} /* LC_CreateDefinitionTables() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -851,8 +844,7 @@ int32 LC_CreateTaskCDS(void)
}

return (CFE_SUCCESS);

} /* LC_CreateTaskCDS() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -971,9 +963,4 @@ int32 LC_LoadDefaultTables(void)
}

return (Result);

} /* LC_LoadDefaultTables() */

/************************/
/* End of File Comment */
/************************/
}
2 changes: 0 additions & 2 deletions fsw/src/lc_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ typedef struct LC_WListTag

uint16 WatchIndex; /**< \brief Watchpoint table index */
uint16 Spare; /**< \brief Structure alignment pad */

} LC_WatchPtList_t;

/** \brief Linked list of MessageID's with same hash function result */
Expand All @@ -132,7 +131,6 @@ typedef struct LC_MListTag
uint16 Spare; /**< \brief Structure alignment pad */

LC_WatchPtList_t *WatchPtList; /**< \brief Watchpoint list for this MessageID */

} LC_MessageList_t;

/************************************************************************
Expand Down
43 changes: 13 additions & 30 deletions fsw/src/lc_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ int32 LC_AppPipe(const CFE_SB_Buffer_t *BufPtr)
} /* end MessageID switch */

return (Status);

} /* End LC_AppPipe */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -200,8 +199,7 @@ void LC_SampleAPReq(const CFE_SB_Buffer_t *BufPtr)
}

return;

} /* end LC_SampleAPReq */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -487,8 +485,7 @@ int32 LC_HousekeepingReq(const CFE_MSG_CommandHeader_t *MsgPtr)
Result = LC_PerformMaintenance();

return Result;

} /* end LC_HousekeepingReq */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -511,8 +508,7 @@ void LC_NoopCmd(const CFE_SB_Buffer_t *BufPtr)
}

return;

} /* end LC_NoopCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -534,8 +530,7 @@ void LC_ResetCmd(const CFE_SB_Buffer_t *BufPtr)
}

return;

} /* end LC_ResetCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand All @@ -553,8 +548,7 @@ void LC_ResetCounters(void)
LC_AppData.PassiveRTSExecCount = 0;

return;

} /* end LC_ResetCounters */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -595,8 +589,7 @@ void LC_SetLCStateCmd(const CFE_SB_Buffer_t *BufPtr)
}

return;

} /* end LC_SetLCStateCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -726,8 +719,7 @@ void LC_SetAPStateCmd(const CFE_SB_Buffer_t *BufPtr)
} /* end LC_VerifyMsgLength if */

return;

} /* end LC_SetAPStateCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -794,8 +786,7 @@ void LC_SetAPPermOffCmd(const CFE_SB_Buffer_t *BufPtr)
} /* end LC_VerifyMsgLength if */

return;

} /* end LC_SetAPPermOffCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -841,8 +832,7 @@ void LC_ResetAPStatsCmd(const CFE_SB_Buffer_t *BufPtr)
}

return;

} /* end LC_ResetAPStatsCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -874,8 +864,7 @@ void LC_ResetResultsAP(uint32 StartIndex, uint32 EndIndex, bool ResetStatsCmd)
}

return;

} /* end LC_ResetResultsAP */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -921,8 +910,7 @@ void LC_ResetWPStatsCmd(const CFE_SB_Buffer_t *BufPtr)
}

return;

} /* end LC_ResetWPStatsCmd */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -958,9 +946,4 @@ void LC_ResetResultsWP(uint32 StartIndex, uint32 EndIndex, bool ResetStatsCmd)
}

return;

} /* end LC_ResetResultsWP */

/************************/
/* End of File Comment */
/************************/
}
10 changes: 2 additions & 8 deletions fsw/src/lc_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ void LC_ExecuteRTS(uint16 RTSId)
CFE_SB_TransmitMsg(&RTSRequest.CmdHeader.Msg, true);

return;

} /* end LC_ExecuteRTS */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -91,9 +90,4 @@ uint8 LC_CustomFunction(uint16 WatchIndex, uint32 ProcessedWPData, const CFE_SB_
} /* end WatchIndex switch */

return (EvalResult);

} /* end LC_CustomFunction */

/************************/
/* End of File Comment */
/************************/
}
2 changes: 0 additions & 2 deletions fsw/src/lc_tbl.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ typedef struct
uint8 Padding[3]; /**< \brief Structure padding */

CFE_TIME_SysTime_t Timestamp; /**< \brief Timstamp when the transition was detected */

} LC_WRTTransition_t;

/**
Expand All @@ -157,7 +156,6 @@ typedef struct
has evaluated to TRUE */
LC_WRTTransition_t LastFalseToTrue; /**< \brief Last transition from FALSE to TRUE */
LC_WRTTransition_t LastTrueToFalse; /**< \brief Last transition from TRUE to FALSE */

} LC_WRTEntry_t;

/**
Expand Down
9 changes: 3 additions & 6 deletions fsw/src/lc_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ bool LC_VerifyMsgLength(const CFE_MSG_Message_t *MsgPtr, size_t ExpectedLength)
}

return (result);

} /* End of LC_VerifyMsgLength */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -165,8 +164,7 @@ int32 LC_ManageTables(void)
}

return (CFE_SUCCESS);

} /* LC_ManageTables() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -220,8 +218,7 @@ int32 LC_UpdateTaskCDS(void)
}

return (CFE_SUCCESS);

} /* LC_UpdateTaskCDS() */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down
Loading

0 comments on commit bdcbbad

Please sign in to comment.