Skip to content
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
8 changes: 8 additions & 0 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ name: Build and Deploy Documentation

on:
push:
branches:
- dev
- main
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:

jobs:
build-documentation:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/build-run-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ name: Build and Run

on:
push:
branches:
- dev
- main
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:

jobs:
build-run:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/codeql-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@ name: CodeQl Analysis

on:
push:
branches:
- dev
- main
pull_request:

types:
- opened
- reopened
- synchronize
workflow_dispatch:

jobs:
codeql:
name: Codeql Analysis
uses: nasa/cFS/.github/workflows/codeql-reusable.yml@main
with:
component-path: apps/md
component-path: apps/md
prep: 'make prep; make -C build/tools/elf2cfetbl'
make: 'make -C build/native/default_cpu1/apps/md'
setup: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: Format Check

# Run on all push and pull requests
on:
push:
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
format-check:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ name: Static Analysis
# Run on all push and pull requests
on:
push:
branches:
- dev
- main
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:

jobs:
static-analysis:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/unit-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ name: Unit Test and Coverage

on:
push:
branches:
- dev
- main
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:

jobs:
unit-test-coverage:
Expand Down
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ set(APP_SRC_FILES
fsw/src/md_app.c
)

if (CFE_EDS_ENABLED)
list(APPEND APP_SRC_FILES
fsw/src/md_eds_dispatch.c
)
else()
list(APPEND APP_SRC_FILES
fsw/src/md_dispatch.c
)
endif()

# Create the app module
add_cfe_app(md ${APP_SRC_FILES})

Expand Down
20 changes: 20 additions & 0 deletions arch_build.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
###########################################################
#
# MD platform build setup
#
# This file is evaluated as part of the "prepare" stage
# and can be used to set up prerequisites for the build,
# such as generating header files
#
###########################################################

# The list of header files that control the MD configuration
set(MD_PLATFORM_CONFIG_FILE_LIST
md_internal_cfg_values.h
md_platform_cfg.h
md_perfids.h
md_msgids.h
md_msgid_values.h
)

generate_configfile_set(${MD_PLATFORM_CONFIG_FILE_LIST})
60 changes: 60 additions & 0 deletions config/default_md_extern_typedefs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/************************************************************************
* NASA Docket No. GSC-19,200-1, and identified as "cFS Draco"
*
* Copyright (c) 2023 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
************************************************************************/

/**
* @file
* Specification for the CFS Memory Dwell external type definitions.
*/

#ifndef DEFAULT_MD_EXTERN_TYPEDEFS_H
#define DEFAULT_MD_EXTERN_TYPEDEFS_H

/* ======== */
/* Includes */
/* ======== */

#include "md_mission_cfg.h"
#include "md_platform_cfg.h"
#include "cfe.h"

/************************************************************************
* Type Definitions
************************************************************************/

/**
* \brief Symbolic Address Type
*/
typedef struct
{
cpuaddr Offset; /**< \brief Optional offset that is used as the
absolute address if the SymName string is NUL */
char SymName[CFE_MISSION_MAX_PATH_LEN]; /**< \brief Symbol name string */
} MD_SymAddr_t;


/**
* \brief MD enum used for representing values for enable state
*/
typedef enum
{
MD_Dwell_States_DISABLED, /**< \brief MD Dwell Stream Disabled */
MD_Dwell_States_ENABLED /**< \brief MD Dwell Stream Enabled */
} MD_Dwell_States;


#endif /* DEFAULT_MD_EXTERN_TYPEDEFS_H */
47 changes: 47 additions & 0 deletions config/default_md_fcncode_values.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/************************************************************************
* NASA Docket No. GSC-19,200-1, and identified as "cFS Draco"
*
* Copyright (c) 2023 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
************************************************************************/

/**
* @file
* Specification for the CFS Memory Dwell (MD) command function codes
*
* @note
* This file should be strictly limited to the command/function code (CC)
* macro definitions. Other definitions such as enums, typedefs, or other
* macros should be placed in the msgdefs.h or msg.h files.
*/
#ifndef DEFAULT_MD_FCNCODE_VALUES_H
#define DEFAULT_MD_FCNCODE_VALUES_H

/************************************************************************
* Macro Definitions
************************************************************************/

#define MD_CCVAL(x) MD_FunctionCode_##x

Check notice

Code scanning / CodeQL

Undisciplined macro Note

The macro MD_CCVAL(x) uses token pasting and is not allowed.

enum MD_FunctionCode_
{
MD_FunctionCode_NOOP = 0,
MD_FunctionCode_RESET_COUNTERS = 1,
MD_FunctionCode_START_DWELL = 2,
MD_FunctionCode_STOP_DWELL = 3,
MD_FunctionCode_JAM_DWELL = 4,
MD_FunctionCode_SET_SIGNATURE = 5,
};

#endif /* DEFAULT_MD_FCNCODE_VALUES_H */
25 changes: 25 additions & 0 deletions config/default_md_interface_cfg_values.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/************************************************************************
* NASA Docket No. GSC-19,200-1, and identified as "cFS Draco"
*
* Copyright (c) 2023 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
************************************************************************/

#ifndef DEFAULT_MD_INTERFACE_CFG_VALUES_H
#define DEFAULT_MD_INTERFACE_CFG_VALUES_H

/* Use the default configuration value for all */
#define MD_INTERFACE_CFGVAL(x) DEFAULT_MD_INTERFACE_##x

Check notice

Code scanning / CodeQL

Undisciplined macro Note

The macro MD_INTERFACE_CFGVAL(x) uses token pasting and is not allowed.

#endif /* DEFAULT_MD_INTERFACE_CFG_VALUES_H */
25 changes: 25 additions & 0 deletions config/default_md_internal_cfg_values.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/************************************************************************
* NASA Docket No. GSC-19,200-1, and identified as "cFS Draco"
*
* Copyright (c) 2023 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
************************************************************************/

#ifndef DEFAULT_MD_INTERNAL_CFG_VALUES_H
#define DEFAULT_MD_INTERNAL_CFG_VALUES_H

/* Use the default configuration value for all */
#define MD_INTERNAL_CFGVAL(x) DEFAULT_MD_INTERNAL_##x

Check notice

Code scanning / CodeQL

Undisciplined macro Note

The macro MD_INTERNAL_CFGVAL(x) uses token pasting and is not allowed.

#endif /* DEFAULT_MD_INTERNAL_CFG_VALUES_H */
37 changes: 37 additions & 0 deletions config/default_md_mission_cfg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/************************************************************************
* NASA Docket No. GSC-19,200-1, and identified as "cFS Draco"
*
* Copyright (c) 2023 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
************************************************************************/

/**
* @file
*
* MD Application Mission Configuration Header File
*
* 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 definitions
* either by overriding this header or by generating definitions from a command/data
* dictionary tool.
*/

#ifndef DEFAULT_MD_MISSION_CFG_H
#define DEFAULT_MD_MISSION_CFG_H

#include "md_interface_cfg.h"

#endif /* DEFAULT_MD_MISSION_CFG_H */
34 changes: 34 additions & 0 deletions config/default_md_msg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/************************************************************************
* NASA Docket No. GSC-19,200-1, and identified as "cFS Draco"
*
* Copyright (c) 2023 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
************************************************************************/

/**
* @file
* Specification for the CFS Memory Dwell command and telemetry
* messages.
*/
#ifndef DEFAULT_MD_MSG_H
#define DEFAULT_MD_MSG_H

/* ======== */
/* Includes */
/* ======== */

#include "md_msgdefs.h"
#include "md_msgstruct.h"

#endif /* DEFAULT_MD_MSG_H */
Loading
Loading