Skip to content
Open
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
41 changes: 41 additions & 0 deletions .github/workflows/snapshot-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Snapshot CFS module

on:
workflow_dispatch:
inputs:
base-branch:
description: 'The base branch to merge into'
type: string
required: false
default: 'main'
ic-branch:
description: 'The temporary integration branch to create (ic)'
type: string
required: false
default: 'ic-snapshot-dev'
dev-branch:
description: 'The branch to pull in'
type: string
required: false
default: 'dev'
pr-label:
description: 'The label(s) to apply to the generated PR'
type: string
required: false
default: ''
version-numbers:
description: 'The pending version/tag info, as a JSON object'
type: string
required: false
default: '{}'

jobs:
snapshot-module:
name: Snapshot module
uses: nasa/cFS/.github/workflows/snapshot-module-reusable.yml@dev
with:
base-branch: ${{ inputs.base-branch }}
ic-branch: ${{ inputs.ic-branch }}
dev-branch: ${{ inputs.dev-branch }}
pr-label: ${{ inputs.pr-label }}
version-numbers: ${{ inputs.version-numbers }}
2 changes: 1 addition & 1 deletion config/default_hs_fcncode_values.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
enum HS_FunctionCode_
{
HS_FunctionCode_NOOP = 0,
HS_FunctionCode_RESET = 1,
HS_FunctionCode_RESET_COUNTERS = 1,
HS_FunctionCode_ENABLE_APP_MON = 2,
HS_FunctionCode_DISABLE_APP_MON = 3,
HS_FunctionCode_ENABLE_EVENT_MON = 4,
Expand Down
6 changes: 3 additions & 3 deletions config/default_hs_msgdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ typedef struct
*/
typedef struct
{
uint8 CmdCount; /**< \brief HS Application Command Counter */
uint8 CmdErrCount; /**< \brief HS Application Command Error Counter */
uint8 CommandCounter; /**< \brief HS Application Command Counter */
uint8 CommandErrCounter; /**< \brief HS Application Command Error Counter */
uint8 CurrentAppMonState; /**< \brief Status of HS Application Monitor */
uint8 CurrentEventMonState; /**< \brief Status of HS Event Monitor */
uint8 CurrentAlivenessState; /**< \brief Status of HS Aliveness Indicator */
uint8 CurrentCPUHogState; /**< \brief Status of HS Hogging Indicator */
uint8 StatusFlags; /**< \brief Internal HS Error States */
uint8 SpareBytes; /**< \brief Alignment Spares */
uint8 Padding; /**< \brief Alignment Spares */
uint16 ResetsPerformed; /**< \brief HS Performed Processor Reset Count */
uint16 MaxResets; /**< \brief HS Maximum Processor Reset Count */
uint32 EventsMonitoredCount; /**< \brief Total count of Event Messages Monitored */
Expand Down
4 changes: 2 additions & 2 deletions config/default_hs_msgstruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ typedef struct
/**
* \brief No Arguments Command
*
* For command details see #HS_RESET_CC
* For command details see #HS_RESET_COUNTERS_CC
*/
typedef struct
{
CFE_MSG_CommandHeader_t CommandHeader; /**< \brief Command header */
} HS_ResetCmd_t;
} HS_ResetCountersCmd_t;

/**
* \brief No Arguments Command
Expand Down
10 changes: 5 additions & 5 deletions eds/HS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@

<ContainerDataType name="HkTlm_Payload" shortDescription="HK housekeeping">
<EntryList>
<Entry name="CmdCount" type="BASE_TYPES/uint8" shortDescription="Count of valid commands received" />
<Entry name="CmdErrCount" type="BASE_TYPES/uint8" shortDescription="Count of invalid commands received" />
<Entry name="CommandCounter" type="BASE_TYPES/uint8" shortDescription="Count of valid commands received" />
<Entry name="CommandErrCounter" type="BASE_TYPES/uint8" shortDescription="Count of invalid commands received" />

<Entry name="CurrentAppMonState" type="State" />
<Entry name="CurrentEventMonState" type="State" />
<Entry name="CurrentAlivenessState" type="State" />
<Entry name="CurrentCPUHogState" type="State" />
<Entry name="StatusFlags" type="BASE_TYPES/uint8" />
<Entry name="SpareBytes" type="BASE_TYPES/uint8" />
<PaddingEntry sizeInBits="8" shortDescription="Padding for 32-bit alignment"/>
<Entry name="ResetsPerformed" type="BASE_TYPES/uint16" />
<Entry name="MaxResets" type="BASE_TYPES/uint16" />
<Entry name="EventsMonitoredCount" type="BASE_TYPES/uint32" />
Expand All @@ -100,7 +100,7 @@
<ContainerDataType name="SetMaxResets_Payload">
<EntryList>
<Entry name="MaxResets" type="BASE_TYPES/uint16" />
<Entry name="Padding" type="BASE_TYPES/uint16" />
<PaddingEntry sizeInBits="16" shortDescription="Padding for 32-bit alignment"/>
</EntryList>
</ContainerDataType>

Expand All @@ -116,7 +116,7 @@
</ConstraintSet>
</ContainerDataType>

<ContainerDataType name="ResetCmd" baseType="CMD">
<ContainerDataType name="ResetCountersCmd" baseType="CMD">
<ConstraintSet>
<ValueConstraint entry="Sec.FunctionCode" value="1" />
</ConstraintSet>
Expand Down
54 changes: 27 additions & 27 deletions fsw/inc/hs_fcncodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will increment
* - #HS_HkTlm_Payload_t.CommandCounter will increment
* - The #HS_NOOP_INF_EID informational event message will be
* generated when the command is received
*
Expand All @@ -60,13 +60,13 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
* None
*
* \sa #HS_RESET_CC
* \sa #HS_RESET_COUNTERS_CC
*/
#define HS_NOOP_CC HS_CCVAL(NOOP)

Expand All @@ -77,12 +77,12 @@
* Resets the HS housekeeping counters
*
* \par Command Structure
* #HS_ResetCmd_t
* #HS_ResetCountersCmd_t
*
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will be cleared
* - #HS_HkTlm_Payload_t.CommandCounter will be cleared
* - The #HS_RESET_INF_EID informational event message will be
* generated when the command is executed
*
Expand All @@ -91,15 +91,15 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
* None
*
* \sa #HS_NOOP_CC
*/
#define HS_RESET_CC HS_CCVAL(RESET)
#define HS_RESET_COUNTERS_CC HS_CCVAL(RESET_COUNTERS)

/**
* \brief Enable Applications Monitor
Expand All @@ -113,7 +113,7 @@
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will increment
* - #HS_HkTlm_Payload_t.CommandCounter will increment
* - #HS_HkTlm_Payload_t.CurrentAppMonState will be set to Enabled
* - The #HS_ENABLE_APPMON_INF_EID informational event message will be
* generated when the command is executed
Expand All @@ -123,7 +123,7 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
Expand All @@ -145,7 +145,7 @@
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will increment
* - #HS_HkTlm_Payload_t.CommandCounter will increment
* - #HS_HkTlm_Payload_t.CurrentAppMonState will be set to Disabled
* - The #HS_DISABLE_APPMON_INF_EID informational event message will be
* generated when the command is executed
Expand All @@ -155,7 +155,7 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
Expand All @@ -177,7 +177,7 @@
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will increment
* - #HS_HkTlm_Payload_t.CommandCounter will increment
* - #HS_HkTlm_Payload_t.CurrentEventMonState will be set to Enabled
* - The #HS_ENABLE_EVENTMON_INF_EID informational event message will be
* generated when the command is executed
Expand All @@ -187,7 +187,7 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
Expand All @@ -209,7 +209,7 @@
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will increment
* - #HS_HkTlm_Payload_t.CommandCounter will increment
* - #HS_HkTlm_Payload_t.CurrentEventMonState will be set to Disabled
* - The #HS_DISABLE_EVENTMON_INF_EID informational event message will be
* generated when the command is executed
Expand All @@ -219,7 +219,7 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
Expand All @@ -241,7 +241,7 @@
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will increment
* - #HS_HkTlm_Payload_t.CommandCounter will increment
* - #HS_HkTlm_Payload_t.CurrentAlivenessState will be set to Enabled
* - The #HS_ENABLE_ALIVENESS_INF_EID informational event message will be
* generated when the command is executed
Expand All @@ -251,7 +251,7 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
Expand All @@ -273,7 +273,7 @@
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will increment
* - #HS_HkTlm_Payload_t.CommandCounter will increment
* - #HS_HkTlm_Payload_t.CurrentAlivenessState will be set to Disabled
* - The #HS_DISABLE_ALIVENESS_INF_EID informational event message will be
* generated when the command is executed
Expand All @@ -283,7 +283,7 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
Expand All @@ -305,7 +305,7 @@
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will increment
* - #HS_HkTlm_Payload_t.CommandCounter will increment
* - #HS_HkTlm_Payload_t.ResetsPerformed will be set to 0
* - The #HS_RESET_RESETS_INF_EID informational event message will be
* generated when the command is executed
Expand All @@ -315,7 +315,7 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
Expand All @@ -337,7 +337,7 @@
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will increment
* - #HS_HkTlm_Payload_t.CommandCounter will increment
* - #HS_HkTlm_Payload_t.MaxResets will be set to the provided value
* - The #HS_SET_MAX_RESETS_INF_EID informational event message will be
* generated when the command is executed
Expand All @@ -347,7 +347,7 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
Expand All @@ -369,7 +369,7 @@
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will increment
* - #HS_HkTlm_Payload_t.CommandCounter will increment
* - #HS_HkTlm_Payload_t.CurrentCPUHogState will be set to Enabled
* - The #HS_ENABLE_CPUHOG_INF_EID informational event message will be
* generated when the command is executed
Expand All @@ -379,7 +379,7 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
Expand All @@ -401,7 +401,7 @@
* \par Command Verification
* Successful execution of this command may be verified with
* the following telemetry:
* - #HS_HkTlm_Payload_t.CmdCount will increment
* - #HS_HkTlm_Payload_t.CommandCounter will increment
* - #HS_HkTlm_Payload_t.CurrentCPUHogState will be set to Disabled
* - The #HS_DISABLE_CPUHOG_INF_EID informational event message will be
* generated when the command is executed
Expand All @@ -411,7 +411,7 @@
* - Command packet length not as expected
*
* \par Evidence of failure may be found in the following telemetry:
* - #HS_HkTlm_Payload_t.CmdErrCount will increment
* - #HS_HkTlm_Payload_t.CommandErrCounter will increment
* - Error specific event message #HS_CMD_LEN_ERR_EID
*
* \par Criticality
Expand Down
6 changes: 2 additions & 4 deletions fsw/src/hs_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,6 @@ CFE_Status_t HS_AppInit(void)
*/
HS_SetCDSData(0, HS_MAX_RESTART_ACTIONS);
}

Status = CFE_SUCCESS;
}
else if (Status == CFE_SUCCESS)
{
Expand Down Expand Up @@ -451,7 +449,7 @@ CFE_Status_t HS_SbInit(void)
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
CFE_Status_t HS_TblInit(void)
{
size_t TableSize = 0;
size_t TableSize;
CFE_Status_t Status;

/* Register The HS Applications Monitor Table */
Expand Down Expand Up @@ -592,7 +590,7 @@ CFE_Status_t HS_TblInit(void)
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
CFE_Status_t HS_ProcessMain(void)
{
CFE_Status_t Status = CFE_SUCCESS;
CFE_Status_t Status;
const char *AliveString = HS_CPU_ALIVE_STRING;

/*
Expand Down
4 changes: 2 additions & 2 deletions fsw/src/hs_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ typedef struct

uint8 SpareBytes[3]; /**< \brief Spare bytes for 32 bit alignment padding */

uint8 CmdCount; /**< \brief Number of valid commands received */
uint8 CmdErrCount; /**< \brief Number of invalid commands received */
uint8 CommandCounter; /**< \brief Number of valid commands received */
uint8 CommandErrCounter; /**< \brief Number of invalid commands received */

uint32 EventsMonitoredCount; /**< \brief Total count of event messages monitored */
uint32 InactiveEventMonCount; /**< \brief Count of event monitors for which the target is not active */
Expand Down
Loading