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

Fix #119, Clean up out-of-date verification macros #120

Merged
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
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A clear and concise description of what the contribution is.
**Testing performed**
Steps taken to test the contribution:
1. Build steps '...'
1. Execution steps '...'
2. Execution steps '...'

**Expected behavior changes**
A clear and concise description of how this contribution will change behavior and level of impact.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CodeQl Analysis
on:
push:
pull_request:


jobs:
codeql:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ jobs:
format-check:
name: Run format check
uses: nasa/cFS/.github/workflows/format-check.yml@main

2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
name: Run cppcheck
uses: nasa/cFS/.github/workflows/static-analysis.yml@main
with:
strict-dir-list: './fsw'
strict-dir-list: './fsw'
2 changes: 1 addition & 1 deletion config/default_hs_interface_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* interface, tables definitions, and any other data products that
* serve to exchange information with other entities.
*
* @note This file may be overridden/superceded by mission-provided defintions
* @note This file may be overridden/superceded by mission-provided definitions
* either by overriding this header or by generating definitions from a command/data
* dictionary tool.
*/
Expand Down
2 changes: 1 addition & 1 deletion config/default_hs_internal_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* to items in this file only affect the local module and will be transparent
* to external entities that are using the public interface(s).
*
* @note This file may be overridden/superceded by mission-provided defintions
* @note This file may be overridden/superceded by mission-provided definitions
* either by overriding this header or by generating definitions from a command/data
* dictionary tool.
*/
Expand Down
2 changes: 1 addition & 1 deletion config/default_hs_mission_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* This is a compatibility header for the "mission_cfg.h" file that has
* traditionally provided public config definitions for each CFS app.
*
* @note This file may be overridden/superceded by mission-provided defintions
* @note This file may be overridden/superceded by mission-provided definitions
* either by overriding this header or by generating definitions from a command/data
* dictionary tool.
*/
Expand Down
2 changes: 1 addition & 1 deletion config/default_hs_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* This is a compatibility header for the "hs_msg.h" file that has
* traditionally provided the message definitions for cFS apps.
*
* @note This file may be overridden/superceded by mission-provided defintions
* @note This file may be overridden/superceded by mission-provided definitions
* either by overriding this header or by generating definitions from a command/data
* dictionary tool.
*/
Expand Down
2 changes: 1 addition & 1 deletion config/default_hs_platform_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* These definitions are now provided in two separate files, one for
* the public/mission scope and one for internal scope.
*
* @note This file may be overridden/superceded by mission-provided defintions
* @note This file may be overridden/superceded by mission-provided definitions
* either by overriding this header or by generating definitions from a command/data
* dictionary tool.
*/
Expand Down
2 changes: 1 addition & 1 deletion config/default_hs_tblstruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*
* Provides default definitions for HK table structures
*
* @note This file may be overridden/superceded by mission-provided defintions
* @note This file may be overridden/superceded by mission-provided definitions
* either by overriding this header or by generating definitions from a command/data
* dictionary tool.
*/
Expand Down
2 changes: 1 addition & 1 deletion docs/dox_src/cfs_hs.dox
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

This document provides a complete specification for the commands and telemetry associated
with the Health and Safety (HS) application software. The document is intended primarily
for users of the software (operations personal, test engineers, and maintenance personnel).
for users of the software (operations personnel, test engineers, and maintenance personnel).
The last section of the document, the deployment guide section, is intended for mission
developers when deploying and configuring the HS application software for a mission
flight software build environment.
Expand Down
1 change: 0 additions & 1 deletion fsw/inc/hs_perfids.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
* \{
*/

#define HS_IDLETASK_PERF_ID 37 /**< \brief Idle task performance ID */
#define HS_APPMAIN_PERF_ID 40 /**< \brief Main task performance ID */

/**\}*/
Expand Down
36 changes: 2 additions & 34 deletions fsw/src/hs_verify.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,13 @@
* Macro Definitions
*************************************************************************/

/*
* Idle Task Priority
*/
#if HS_IDLE_TASK_PRIORITY < 0
#error HS_IDLE_TASK_PRIORITY cannot be less than 0
#elif HS_IDLE_TASK_PRIORITY > 255
#error HS_IDLE_TASK_PRIORITY can not exceed 255
#endif

/*
* Maximum number execution counters
*/
#if HS_MAX_EXEC_CNT_SLOTS < 1
#error HS_MAX_MSG_ACT_TYPES cannot be less than 1
#error HS_MAX_EXEC_CNT_SLOTS cannot be less than 1
#elif HS_MAX_EXEC_CNT_SLOTS > 4294967295
#error HS_MAX_MSG_ACT_TYPES can not exceed 4294967295
#error HS_MAX_EXEC_CNT_SLOTS can not exceed 4294967295
#endif

/*
Expand Down Expand Up @@ -220,20 +211,6 @@
#error HS_CPUHOG_DEFAULT_STATE not defined as a supported enumerated type
#endif

/*
* Utilization Calls Per Mark
*/
#if HS_UTIL_CALLS_PER_MARK > 4294967295
#error HS_UTIL_CALLS_PER_MARK can not exceed 4294967295
#endif

/*
* Utilization Cycles per Interval
*/
#if HS_UTIL_CALLS_PER_MARK > 4294967295
#error HS_UTIL_CYCLES_PER_INTERVAL can not exceed 4294967295
#endif

/*
* Total number of Utils per Interval
*/
Expand Down Expand Up @@ -279,15 +256,6 @@
#error HS_UTIL_AVERAGE_NUM_INTERVAL can not exceed HS_UTIL_PEAK_NUM_INTERVAL
#endif

/*
* Utilization Average Number of Intervals
*/
#if HS_UTIL_TIME_DIAG_ARRAY_POWER < 0
#error HS_UTIL_TIME_DIAG_ARRAY_POWER cannot be less than 0
#elif HS_UTIL_TIME_DIAG_ARRAY_POWER > 31
#error HS_UTIL_TIME_DIAG_ARRAY_POWER can not exceed 31
#endif

#ifndef HS_MISSION_REV
#error HS_MISSION_REV must be defined!
#elif (HS_MISSION_REV < 0)
Expand Down
3 changes: 2 additions & 1 deletion unit-test/hs_app_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -1881,6 +1881,7 @@ void HS_ProcessCommands_Test(void)
uint8 call_count_CFE_SB_ReceiveBuffer = 0;
uint8 call_count_HS_AppPipe = 0;
HS_EMTEntry_t EMTable[HS_MAX_MONITORED_EVENTS];
uint8 call_count_HS_MonitorEvent;

HS_AppData.CurrentEventMonState = HS_STATE_ENABLED;
HS_AppData.EMTablePtr = EMTable;
Expand Down Expand Up @@ -1927,7 +1928,7 @@ void HS_ProcessCommands_Test(void)

UtAssert_True(call_count_HS_AppPipe == 1, "HS_AppPipe was called %u time(s), expected 1", call_count_HS_AppPipe);

uint8 call_count_HS_MonitorEvent = UT_GetStubCount(UT_KEY(HS_MonitorEvent));
call_count_HS_MonitorEvent = UT_GetStubCount(UT_KEY(HS_MonitorEvent));

UtAssert_True(call_count_HS_MonitorEvent == 1, "HS_MonitorEvent was called %u time(s), expected 1",
call_count_HS_MonitorEvent);
Expand Down
Loading