-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow the header file convention documented in CFE
- Loading branch information
Showing
24 changed files
with
826 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
########################################################### | ||
# | ||
# SC App 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 SC configuration | ||
set(SC_PLATFORM_CONFIG_FILE_LIST | ||
sc_internal_cfg.h | ||
sc_msgids.h | ||
sc_perfids.h | ||
sc_platform_cfg.h | ||
) | ||
|
||
if (CFE_EDS_ENABLED_BUILD) | ||
|
||
# In an EDS-based build, msgids come generated from the EDS tool | ||
set(SC_CFGFILE_SRC_sc_msgids "${CMAKE_CURRENT_LIST_DIR}/config/sc_eds_msg_topicids.h") | ||
|
||
endif(CFE_EDS_ENABLED_BUILD) | ||
|
||
# Create wrappers around the all the config header files | ||
# This makes them individually overridable by the missions, without modifying | ||
# the distribution default copies | ||
foreach(SC_CFGFILE ${SC_PLATFORM_CONFIG_FILE_LIST}) | ||
get_filename_component(CFGKEY "${SC_CFGFILE}" NAME_WE) | ||
if (DEFINED SC_CFGFILE_SRC_${CFGKEY}) | ||
set(DEFAULT_SOURCE "${SC_CFGFILE_SRC_${CFGKEY}}") | ||
else() | ||
set(DEFAULT_SOURCE "${CMAKE_CURRENT_LIST_DIR}/config/default_${SC_CFGFILE}") | ||
endif() | ||
generate_config_includefile( | ||
FILE_NAME "${SC_CFGFILE}" | ||
FALLBACK_FILE ${DEFAULT_SOURCE} | ||
) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,924-1, and identified as “Core Flight | ||
* System (cFS) Stored Command Application version 3.1.1” | ||
* | ||
* Copyright (c) 2021 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 | ||
* CFS Stored Command (SC) Application Public Definitions | ||
* | ||
* This provides default values for configurable items that affect | ||
* the interface(s) of this module. This includes the CMD/TLM message | ||
* 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 | ||
* either by overriding this header or by generating definitions from a command/data | ||
* dictionary tool. | ||
*/ | ||
#ifndef SC_INTERFACE_CFG_H | ||
#define SC_INTERFACE_CFG_H | ||
|
||
/** | ||
* \brief Minimum Packet Size | ||
* | ||
* \par Description: | ||
* This parameter specifies the minumum size in bytes for an ATS or RTS command. | ||
* \par Limits: | ||
* This parameter must be greater than or equal to CFE_SB_CMD_HDR_SIZE and | ||
* less than or equal to CFE_MISSION_SB_MAX_SB_MSG_SIZE. | ||
*/ | ||
#define SC_PACKET_MIN_SIZE 8 | ||
|
||
/** | ||
* \brief Maximum Packet Size | ||
* | ||
* \par Description: | ||
* This parameter specifies the maximum size in bytes for an ATS or RTS command. | ||
* \par Limits: | ||
* This parameter must be greater than or equal to SC_PACKET_MIN_SIZE and | ||
* less than or equal to CFE_MISSION_SB_MAX_SB_MSG_SIZE. | ||
*/ | ||
#define SC_PACKET_MAX_SIZE 256 | ||
|
||
#define SC_NUMBER_OF_ATS 2 /**< \brief the number of Absolute Time Sequences */ | ||
|
||
/** | ||
* \brief Number of RTS's | ||
* | ||
* \par Description: | ||
* The number of RTS's allowed in the system | ||
* | ||
* \par Limits: | ||
* This parameter can't be larger than 999.This parameter will dicate the size of | ||
* The RTS Info Table. | ||
*/ | ||
#define SC_NUMBER_OF_RTS 64 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,924-1, and identified as “Core Flight | ||
* System (cFS) Stored Command Application version 3.1.1” | ||
* | ||
* Copyright (c) 2021 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 | ||
* | ||
* CFS Stored Command (SC) 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 defintions | ||
* either by overriding this header or by generating definitions from a command/data | ||
* dictionary tool. | ||
*/ | ||
#ifndef SC_MISSION_CFG_H | ||
#define SC_MISSION_CFG_H | ||
|
||
#include "sc_interface_cfg.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,924-1, and identified as “Core Flight | ||
* System (cFS) Stored Command Application version 3.1.1” | ||
* | ||
* Copyright (c) 2021 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 Stored Command (SC) command and telemetry | ||
* message data types. | ||
* | ||
* This is a compatibility header for the "sc_msg.h" file that has | ||
* traditionally provided the message definitions for cFS apps. | ||
* | ||
* @note This file may be overridden/superceded by mission-provided defintions | ||
* either by overriding this header or by generating definitions from a command/data | ||
* dictionary tool. | ||
*/ | ||
#ifndef SC_MSG_H | ||
#define SC_MSG_H | ||
|
||
#include "sc_interface_cfg.h" | ||
#include "sc_msgdefs.h" | ||
#include "sc_msgstruct.h" | ||
|
||
#endif |
Oops, something went wrong.