-
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.
Fix nasa#2320, reorganize SB header files
Organize SB header file contents according to the convention
- Loading branch information
Showing
13 changed files
with
1,042 additions
and
352 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,32 @@ | ||
########################################################### | ||
# | ||
# SB Core Module 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 SB configuration | ||
set(SB_PLATFORM_CONFIG_FILE_LIST | ||
cfe_sb_internal_cfg.h | ||
cfe_sb_msgids.h | ||
cfe_sb_platform_cfg.h | ||
) | ||
|
||
# Create wrappers around the all the config header files | ||
# This makes them individually overridable by the missions, without modifying | ||
# the distribution default copies | ||
foreach(SB_CFGFILE ${SB_PLATFORM_CONFIG_FILE_LIST}) | ||
get_filename_component(CFGKEY "${SB_CFGFILE}" NAME_WE) | ||
if (DEFINED SB_CFGFILE_SRC_${CFGKEY}) | ||
set(DEFAULT_SOURCE "${SB_CFGFILE_SRC_${CFGKEY}}") | ||
else() | ||
set(DEFAULT_SOURCE "${CMAKE_CURRENT_LIST_DIR}/config/default_${SB_CFGFILE}") | ||
endif() | ||
generate_config_includefile( | ||
FILE_NAME "${SB_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
349 changes: 9 additions & 340 deletions
349
modules/sb/fsw/inc/cfe_sb_msg.h → modules/sb/config/default_cfe_sb_fcncodes.h
Large diffs are not rendered by default.
Oops, something went wrong.
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,69 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes” | ||
* | ||
* Copyright (c) 2020 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 WARRANTISB OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
************************************************************************/ | ||
|
||
/** | ||
* @file | ||
* CFE Software Bus (CFE_SB) 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 CFE_SB_INTERFACE_CFG_H | ||
#define CFE_SB_INTERFACE_CFG_H | ||
|
||
/** | ||
** \cfesbcfg Maximum SB Message Size | ||
** | ||
** \par Description: | ||
** The following definition dictates the maximum message size allowed on | ||
** the software bus. SB checks the pkt length field in the header of all | ||
** messages sent. If the pkt length field indicates the message is larger | ||
** than this define, SB sends an event and rejects the send. | ||
** | ||
** \par Limits | ||
** This parameter has a lower limit of 6 (CCSDS primary header size). There | ||
** are no restrictions on the upper limit however, the maximum message size is | ||
** system dependent and should be verified. Total message size values that are | ||
** checked against this configuration are defined by a 16 bit data word. | ||
*/ | ||
#define CFE_MISSION_SB_MAX_SB_MSG_SIZE 32768 | ||
|
||
/** | ||
** \cfesbcfg Maximum Number of pipes that SB command/telemetry messages may hold | ||
** | ||
** \par Description: | ||
** Dictates the maximum number of unique Pipes the SB message definitions will hold. | ||
** | ||
** This affects the layout of command/telemetry messages but does not affect run | ||
** time behavior or internal allocation. | ||
** | ||
** \par Limits | ||
** All CPUs within the same SB domain (mission) must share the same definition | ||
** Note this affects the size of messages, so it must not cause any message | ||
** to exceed the max length. | ||
** | ||
*/ | ||
#define CFE_MISSION_SB_MAX_PIPES 64 | ||
|
||
#endif |
Oops, something went wrong.