diff --git a/.clang-format b/.clang-format index b1c8cdf8..d6837a71 100755 --- a/.clang-format +++ b/.clang-format @@ -1,45 +1,85 @@ --- -Language: Cpp -AccessModifierOffset: -4 +BasedOnStyle: Google +AccessModifierOffset: '-4' AlignAfterOpenBracket: Align -AlignConsecutiveAssignments: true -AlignConsecutiveDeclarations: true -AlignConsecutiveMacros: true +AlignArrayOfStructures: Left +AlignConsecutiveAssignments: + Enabled: true + AcrossEmptyLines: false + AcrossComments: true + AlignCompound: true + PadOperators: true +AlignConsecutiveDeclarations: + Enabled: true + AcrossEmptyLines: false + AcrossComments: true + AlignCompound: true + PadOperators: true +AlignConsecutiveMacros: + Enabled: true + AcrossEmptyLines: false + AcrossComments: true + AlignCompound: true + PadOperators: true AlignEscapedNewlines: Left -AlignOperands: true +AlignConsecutiveBitFields: true +AlignOperands: true AlignTrailingComments: true -AllowAllParametersOfDeclarationOnNextLine: true -AllowShortBlocksOnASingleLine: Empty +AllowAllArgumentsOnNextLine: false +AllowAllConstructorInitializersOnNextLine: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: Never AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: Empty +AllowShortFunctionsOnASingleLine: InlineOnly AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false -BinPackArguments: true -BinPackParameters: true -BreakBeforeBinaryOperators: None +AlwaysBreakTemplateDeclarations: 'Yes' +BinPackArguments: false +BinPackParameters: false +BraceWrapping: + AfterCaseLabel: true + AfterClass: true + AfterControlStatement: Always + AfterEnum: true + AfterFunction: true + AfterNamespace: false + AfterObjCDeclaration: true + AfterStruct: true + AfterUnion: true + AfterExternBlock: false + BeforeCatch: true + BeforeElse: true + BeforeLambdaBody: false + BeforeWhile: true + IndentBraces: false + SplitEmptyFunction: true + SplitEmptyRecord: false + SplitEmptyNamespace: false +BreakBeforeBinaryOperators: NonAssignment BreakBeforeBraces: Allman BreakBeforeTernaryOperators: true +BreakConstructorInitializers: AfterColon +BreakInheritanceList: AfterColon BreakStringLiterals: true -ColumnLimit: 120 -CommentPragmas: '' -ContinuationIndentWidth: 4 -Cpp11BracedListStyle: true +ColumnLimit: '120' +CompactNamespaces: false +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ConstructorInitializerIndentWidth: '4' +ContinuationIndentWidth: '4' +Cpp11BracedListStyle: false DerivePointerAlignment: false -DisableFormat: false ExperimentalAutoDetectBinPacking: false -ForEachMacros: [] -IncludeBlocks: Preserve -IncludeCategories: [] -IncludeIsMainRegex: '$' +FixNamespaceComments: true +IncludeBlocks: Preserve IndentCaseLabels: true IndentPPDirectives: None -IndentWidth: 4 -KeepEmptyLinesAtTheStartOfBlocks: true -MacroBlockBegin: '' -MacroBlockEnd: '' +IndentWidth: '4' +KeepEmptyLinesAtTheStartOfBlocks: false +Language: Cpp MaxEmptyLinesToKeep: 1 +NamespaceIndentation: None PenaltyBreakAssignment: 2 PenaltyBreakBeforeFirstCallParameter: 19 PenaltyBreakComment: 300 @@ -48,19 +88,26 @@ PenaltyBreakString: 1000 PenaltyExcessCharacter: 1000000 PenaltyReturnTypeOnItsOwnLine: 60 PointerAlignment: Right -ReflowComments: true -SortIncludes: false +ReflowComments: true +SortIncludes: false +SortUsingDeclarations: false SpaceAfterCStyleCast: false +SpaceAfterTemplateKeyword: false SpaceBeforeAssignmentOperators: true +SpaceBeforeCpp11BracedList: true +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: false SpaceInEmptyParentheses: false -SpaceBeforeCpp11BracedList: true -SpacesBeforeTrailingComments: 1 +SpacesBeforeTrailingComments: '1' +SpacesInAngles: false SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false SpacesInParentheses: false SpacesInSquareBrackets: false -Standard: c++11 -TabWidth: 8 -UseTab: Never -... +Standard: Cpp11 +TabWidth: '4' +UseTab: Never +... diff --git a/.github/workflows/format-check-internal.yml b/.github/workflows/format-check-internal.yml new file mode 100644 index 00000000..4661ec96 --- /dev/null +++ b/.github/workflows/format-check-internal.yml @@ -0,0 +1,17 @@ +name: Internal Format Check + +# Run on all push and pull requests +on: + pull_request: + types: + - opened + - reopened + - synchronize + workflow_dispatch: + +jobs: + format-check: + name: Run format check + # do not run on integration candidate branches + if: ${{ !startsWith(github.head_ref != '' && github.head_ref || github.ref_name, 'ic-') }} + uses: cFS/workflows/.github/workflows/format-check-reusable-internal.yml@dev diff --git a/Core Flight System (CFS) NOSA GSC-16917-1.pdf b/Core Flight System (CFS) NOSA GSC-16917-1.pdf deleted file mode 100644 index 96af1f91..00000000 Binary files a/Core Flight System (CFS) NOSA GSC-16917-1.pdf and /dev/null differ diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + 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. diff --git a/README.md b/README.md index 78790a1a..9cb3d69c 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,4 @@ The cFS is a platform and project independent reusable software framework and se The SBN application connects the cFE Software Bus (SB) to other buses, bridging the publish/subscribe messaging service to separate cFS instances in separate partitions, processes, processors, and/or networks. ## License -This software is licensed under the [NASA Open Source Agreement](Core%20Flight%20System%20(CFS)%20NOSA%20GSC-16917-1.pdf). +This software is licensed under the [Apache 2.0 License](LICENSE). diff --git a/config/default_sbn_msgids.h b/config/default_sbn_msgids.h index b3dc0518..f5678043 100644 --- a/config/default_sbn_msgids.h +++ b/config/default_sbn_msgids.h @@ -46,11 +46,11 @@ */ #define SBN_CMD_MID 0x18FA -#define SBN_HK_TLM_MID 0x08FB -#define SBN_HKNET_TLM_MID 0x08FC -#define SBN_HKPEER_TLM_MID 0x08FD -#define SBN_HKMYSUBS_TLM_MID 0x08FE -#define SBN_HKPEERSUBS_TLM_MID 0x08FF +#define SBN_HK_TLM_MID 0x08FB +#define SBN_HKNET_TLM_MID 0x08FC +#define SBN_HKPEER_TLM_MID 0x08FD +#define SBN_HKMYSUBS_TLM_MID 0x08FE +#define SBN_HKPEERSUBS_TLM_MID 0x08FF /* ** Include Files diff --git a/examples/cFS/install b/examples/cFS/install index 0a75aebd..8c254855 100755 --- a/examples/cFS/install +++ b/examples/cFS/install @@ -1,14 +1,15 @@ #!/bin/bash +SCRIPT_DIR="$(dirname "$(realpath "$0")")" + if [ $# -lt 1 ]; then echo "Usage: $0 " exit 1 fi CFS_ROOT="$1" -pushd ../.. -export SBN_ROOT=$(pwd) -popd + +SBN_ROOT="$(realpath "$SCRIPT_DIR/../..")" for app in to_lab sch_lab; do if [ ! -r "${CFS_ROOT}/apps/${app}" ]; then diff --git a/examples/cFS/sample_defs/cpu1_msgids.h b/examples/cFS/sample_defs/cpu1_msgids.h index be965ca1..035b6dae 100644 --- a/examples/cFS/sample_defs/cpu1_msgids.h +++ b/examples/cFS/sample_defs/cpu1_msgids.h @@ -44,56 +44,54 @@ /* ** cFE Command Message Id's */ -#define CFE_EVS_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_EVS_CMD_MSG /* 0x1801 */ - /* Message ID 0x1802 is available */ -#define CFE_SB_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_SB_CMD_MSG /* 0x1803 */ -#define CFE_TBL_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TBL_CMD_MSG /* 0x1804 */ -#define CFE_TIME_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TIME_CMD_MSG /* 0x1805 */ -#define CFE_ES_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_ES_CMD_MSG /* 0x1806 */ - -#define CFE_ES_SEND_HK_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_ES_SEND_HK_MSG /* 0x1808 */ -#define CFE_EVS_SEND_HK_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_EVS_SEND_HK_MSG /* 0x1809 */ - /* Message ID 0x180A is available */ -#define CFE_SB_SEND_HK_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_SB_SEND_HK_MSG /* 0x180B */ -#define CFE_TBL_SEND_HK_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TBL_SEND_HK_MSG /* 0x180C */ -#define CFE_TIME_SEND_HK_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TIME_SEND_HK_MSG /* 0x180D */ +#define CFE_EVS_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_EVS_CMD_MSG /* 0x1801 */ + /* Message ID 0x1802 is available */ +#define CFE_SB_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_SB_CMD_MSG /* 0x1803 */ +#define CFE_TBL_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TBL_CMD_MSG /* 0x1804 */ +#define CFE_TIME_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TIME_CMD_MSG /* 0x1805 */ +#define CFE_ES_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_ES_CMD_MSG /* 0x1806 */ + +#define CFE_ES_SEND_HK_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_ES_SEND_HK_MSG /* 0x1808 */ +#define CFE_EVS_SEND_HK_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_EVS_SEND_HK_MSG /* 0x1809 */ +/* Message ID 0x180A is available */ +#define CFE_SB_SEND_HK_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_SB_SEND_HK_MSG /* 0x180B */ +#define CFE_TBL_SEND_HK_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TBL_SEND_HK_MSG /* 0x180C */ +#define CFE_TIME_SEND_HK_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TIME_SEND_HK_MSG /* 0x180D */ #define CFE_SB_SUB_RPT_CTRL_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_SB_SUB_RPT_CTRL_MSG /* 0x180E */ -#define CFE_TIME_TONE_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TIME_TONE_CMD_MSG /* 0x1810 */ -#define CFE_TIME_1HZ_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TIME_1HZ_CMD_MSG /* 0x1811 */ - +#define CFE_TIME_TONE_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TIME_TONE_CMD_MSG /* 0x1810 */ +#define CFE_TIME_1HZ_CMD_MID CFE_MISSION_CMD_MID_BASE1 + CFE_MISSION_TIME_1HZ_CMD_MSG /* 0x1811 */ /* ** cFE Global Command Message Id's */ -#define CFE_TIME_DATA_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_DATA_CMD_MSG /* 0x1860 */ -#define CFE_TIME_SEND_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_SEND_CMD_MSG /* 0x1862 */ - +#define CFE_TIME_DATA_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_DATA_CMD_MSG /* 0x1860 */ +#define CFE_TIME_SEND_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_SEND_CMD_MSG /* 0x1862 */ /* ** CFE Telemetry Message Id's */ -#define CFE_ES_HK_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_ES_HK_TLM_MSG /* 0x0800 */ -#define CFE_EVS_HK_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_EVS_HK_TLM_MSG /* 0x0801 */ - /* Message ID 0x0802 is available */ -#define CFE_SB_HK_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_SB_HK_TLM_MSG /* 0x0803 */ -#define CFE_TBL_HK_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_TBL_HK_TLM_MSG /* 0x0804 */ -#define CFE_TIME_HK_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_TIME_HK_TLM_MSG /* 0x0805 */ -#define CFE_TIME_DIAG_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_TIME_DIAG_TLM_MSG /* 0x0806 */ -#define CFE_EVS_LONG_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_EVS_LONG_EVENT_MSG_MSG /* 0x0808 */ -#define CFE_EVS_SHORT_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_EVS_SHORT_EVENT_MSG_MSG /* 0x0809 */ -#define CFE_SB_STATS_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_SB_STATS_TLM_MSG /* 0x080A */ -#define CFE_ES_APP_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_ES_APP_TLM_MSG /* 0x080B */ -#define CFE_TBL_REG_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_TBL_REG_TLM_MSG /* 0x080C */ -#define CFE_SB_ALLSUBS_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_SB_ALLSUBS_TLM_MSG /* 0x080D */ -#define CFE_SB_ONESUB_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_SB_ONESUB_TLM_MSG /* 0x080E */ +#define CFE_ES_HK_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_ES_HK_TLM_MSG /* 0x0800 */ +#define CFE_EVS_HK_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_EVS_HK_TLM_MSG /* 0x0801 */ +/* Message ID 0x0802 is available */ +#define CFE_SB_HK_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_SB_HK_TLM_MSG /* 0x0803 */ +#define CFE_TBL_HK_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_TBL_HK_TLM_MSG /* 0x0804 */ +#define CFE_TIME_HK_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_TIME_HK_TLM_MSG /* 0x0805 */ +#define CFE_TIME_DIAG_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_TIME_DIAG_TLM_MSG /* 0x0806 */ +#define CFE_EVS_LONG_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_EVS_LONG_EVENT_MSG_MSG /* 0x0808 */ +#define CFE_EVS_SHORT_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_EVS_SHORT_EVENT_MSG_MSG /* 0x0809 */ +#define CFE_SB_STATS_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_SB_STATS_TLM_MSG /* 0x080A */ +#define CFE_ES_APP_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_ES_APP_TLM_MSG /* 0x080B */ +#define CFE_TBL_REG_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_TBL_REG_TLM_MSG /* 0x080C */ +#define CFE_SB_ALLSUBS_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_SB_ALLSUBS_TLM_MSG /* 0x080D */ +#define CFE_SB_ONESUB_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_SB_ONESUB_TLM_MSG /* 0x080E */ #ifndef CFE_OMIT_DEPRECATED_6_7 - #define CFE_ES_SHELL_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_ES_SHELL_TLM_MSG /* 0x080F */ +#define CFE_ES_SHELL_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_ES_SHELL_TLM_MSG /* 0x080F */ #endif -#define CFE_ES_MEMSTATS_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_ES_MEMSTATS_TLM_MSG /* 0x0810 */ +#define CFE_ES_MEMSTATS_TLM_MID CFE_MISSION_TLM_MID_BASE1 + CFE_MISSION_ES_MEMSTATS_TLM_MSG /* 0x0810 */ /* * MID definitions by these older names are required to make some existing apps compile @@ -101,7 +99,7 @@ */ #ifndef CFE_OMIT_DEPRECATED_6_6 -#define CFE_EVS_EVENT_MSG_MID CFE_EVS_LONG_EVENT_MSG_MID +#define CFE_EVS_EVENT_MSG_MID CFE_EVS_LONG_EVENT_MSG_MID #endif diff --git a/examples/cFS/sample_defs/cpu1_platform_cfg.h b/examples/cFS/sample_defs/cpu1_platform_cfg.h index 6784f7aa..17976532 100644 --- a/examples/cFS/sample_defs/cpu1_platform_cfg.h +++ b/examples/cFS/sample_defs/cpu1_platform_cfg.h @@ -65,8 +65,7 @@ ** This parameter has a lower limit of 1 and an upper limit of 1024. ** */ -#define CFE_PLATFORM_SB_MAX_MSG_IDS 256 - +#define CFE_PLATFORM_SB_MAX_MSG_IDS 256 /** ** \cfesbcfg Maximum Number of Unique Pipes SB Routing Table can hold @@ -83,8 +82,7 @@ ** or equal to OS_MAX_QUEUES. ** */ -#define CFE_PLATFORM_SB_MAX_PIPES 64 - +#define CFE_PLATFORM_SB_MAX_PIPES 64 /** ** \cfesbcfg Maximum Number of unique local destinations a single MsgId can have @@ -100,8 +98,7 @@ ** configuration are defined by a 16 bit data word. ** */ -#define CFE_PLATFORM_SB_MAX_DEST_PER_PKT 16 - +#define CFE_PLATFORM_SB_MAX_DEST_PER_PKT 16 /** ** \cfesbcfg Default Subscription Message Limit @@ -116,8 +113,7 @@ ** This parameter has a lower limit of 4 and an upper limit of 65535. ** */ -#define CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT 4 - +#define CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT 4 /** ** \cfesbcfg Size of the SB buffer memory pool @@ -139,8 +135,7 @@ ** This parameter has a lower limit of 512 and an upper limit of UINT_MAX (4 Gigabytes). ** */ -#define CFE_PLATFORM_SB_BUF_MEMORY_BYTES 524288 - +#define CFE_PLATFORM_SB_BUF_MEMORY_BYTES 524288 /** ** \cfesbcfg Maximum depth allowed when creating an SB pipe @@ -156,8 +151,7 @@ ** be verified. Pipe Depth values that are checked against this configuration ** are defined by a 16 bit data word. */ -#define CFE_PLATFORM_SB_MAX_PIPE_DEPTH 256 - +#define CFE_PLATFORM_SB_MAX_PIPE_DEPTH 256 /** ** \cfesbcfg Highest Valid Message Id @@ -185,7 +179,7 @@ ** below to it's maximum of 0xFFFF. ** The allocated message table is this size + 1 (could change based on implementaiton). */ -#define CFE_PLATFORM_SB_HIGHEST_VALID_MSGID 0x1FFF +#define CFE_PLATFORM_SB_HIGHEST_VALID_MSGID 0x1FFF /** ** \cfesbcfg Platform Endian Indicator @@ -210,8 +204,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME "/ram/cfe_sb_route.dat" - +#define CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME "/ram/cfe_sb_route.dat" /** ** \cfesbcfg Default Pipe Information Filename @@ -225,8 +218,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME "/ram/cfe_sb_pipe.dat" - +#define CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME "/ram/cfe_sb_pipe.dat" /** ** \cfesbcfg Default Message Map Filename @@ -243,8 +235,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME "/ram/cfe_sb_msgmap.dat" - +#define CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME "/ram/cfe_sb_msgmap.dat" /** ** \cfesbcfg SB Event Filtering @@ -261,30 +252,29 @@ ** This filtering applies only to SB events. ** These parameters have a lower limit of 0 and an upper limit of 65535. */ -#define CFE_PLATFORM_SB_FILTERED_EVENT1 CFE_SB_SEND_NO_SUBS_EID -#define CFE_PLATFORM_SB_FILTER_MASK1 CFE_EVS_FIRST_4_STOP - -#define CFE_PLATFORM_SB_FILTERED_EVENT2 CFE_SB_DUP_SUBSCRIP_EID -#define CFE_PLATFORM_SB_FILTER_MASK2 CFE_EVS_FIRST_4_STOP +#define CFE_PLATFORM_SB_FILTERED_EVENT1 CFE_SB_SEND_NO_SUBS_EID +#define CFE_PLATFORM_SB_FILTER_MASK1 CFE_EVS_FIRST_4_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT3 CFE_SB_MSGID_LIM_ERR_EID -#define CFE_PLATFORM_SB_FILTER_MASK3 CFE_EVS_FIRST_16_STOP +#define CFE_PLATFORM_SB_FILTERED_EVENT2 CFE_SB_DUP_SUBSCRIP_EID +#define CFE_PLATFORM_SB_FILTER_MASK2 CFE_EVS_FIRST_4_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT4 CFE_SB_Q_FULL_ERR_EID -#define CFE_PLATFORM_SB_FILTER_MASK4 CFE_EVS_FIRST_16_STOP +#define CFE_PLATFORM_SB_FILTERED_EVENT3 CFE_SB_MSGID_LIM_ERR_EID +#define CFE_PLATFORM_SB_FILTER_MASK3 CFE_EVS_FIRST_16_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT5 0 -#define CFE_PLATFORM_SB_FILTER_MASK5 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT4 CFE_SB_Q_FULL_ERR_EID +#define CFE_PLATFORM_SB_FILTER_MASK4 CFE_EVS_FIRST_16_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT6 0 -#define CFE_PLATFORM_SB_FILTER_MASK6 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT5 0 +#define CFE_PLATFORM_SB_FILTER_MASK5 CFE_EVS_NO_FILTER -#define CFE_PLATFORM_SB_FILTERED_EVENT7 0 -#define CFE_PLATFORM_SB_FILTER_MASK7 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT6 0 +#define CFE_PLATFORM_SB_FILTER_MASK6 CFE_EVS_NO_FILTER -#define CFE_PLATFORM_SB_FILTERED_EVENT8 0 -#define CFE_PLATFORM_SB_FILTER_MASK8 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT7 0 +#define CFE_PLATFORM_SB_FILTER_MASK7 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT8 0 +#define CFE_PLATFORM_SB_FILTER_MASK8 CFE_EVS_NO_FILTER /** ** \cfeescfg Define SB Memory Pool Block Sizes @@ -297,23 +287,23 @@ ** The number of block sizes defined cannot exceed ** #CFE_PLATFORM_ES_POOL_MAX_BUCKETS */ -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 8 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 16 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 20 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 36 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 64 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 96 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 128 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 160 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 256 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 512 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 1024 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 2048 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 4096 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 8192 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 16384 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 32768 -#define CFE_PLATFORM_SB_MAX_BLOCK_SIZE (CFE_MISSION_SB_MAX_SB_MSG_SIZE + 40) +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 8 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 16 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 20 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 36 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 64 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 96 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 128 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 160 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 256 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 512 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 1024 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 2048 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 4096 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 8192 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 16384 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 32768 +#define CFE_PLATFORM_SB_MAX_BLOCK_SIZE (CFE_MISSION_SB_MAX_SB_MSG_SIZE + 40) /** ** \cfesbcfg Define Default Sender Information Storage Mode @@ -327,8 +317,7 @@ ** There is a lower limit of 0 and an upper limit of 1 on this configuration ** paramater. */ -#define CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER 1 - +#define CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER 1 /** ** \cfetimecfg Time Server or Time Client Selection @@ -342,9 +331,8 @@ ** Enable one, and only one by defining either CFE_PLATFORM_TIME_CFG_SERVER or ** CFE_PLATFORM_TIME_CFG_CLIENT AS true. The other must be defined as false. */ -#define CFE_PLATFORM_TIME_CFG_SERVER true -#define CFE_PLATFORM_TIME_CFG_CLIENT false - +#define CFE_PLATFORM_TIME_CFG_SERVER true +#define CFE_PLATFORM_TIME_CFG_CLIENT false /** ** \cfetimecfg Time Tone In Big-Endian Order @@ -358,7 +346,6 @@ */ #undef CFE_PLATFORM_TIME_CFG_BIGENDIAN - /** ** \cfetimecfg Local MET or Virtual MET Selection for Time Servers ** @@ -377,8 +364,7 @@ ** \par Limits ** Only applies if #CFE_PLATFORM_TIME_CFG_SERVER is set to true. */ -#define CFE_PLATFORM_TIME_CFG_VIRTUAL true - +#define CFE_PLATFORM_TIME_CFG_VIRTUAL true /** ** \cfetimecfg Include or Exclude the Primary/Redundant Tone Selection Cmd @@ -393,8 +379,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_SIGNAL false - +#define CFE_PLATFORM_TIME_CFG_SIGNAL false /** ** \cfetimecfg Include or Exclude the Internal/External Time Source Selection Cmd @@ -414,8 +399,7 @@ ** \par Limits ** Only applies if #CFE_PLATFORM_TIME_CFG_SERVER is set to true. */ -#define CFE_PLATFORM_TIME_CFG_SOURCE false - +#define CFE_PLATFORM_TIME_CFG_SOURCE false /** ** \cfetimecfg Choose the External Time Source for Server only @@ -431,10 +415,9 @@ ** #CFE_PLATFORM_TIME_CFG_SRC_MET, #CFE_PLATFORM_TIME_CFG_SRC_GPS, #CFE_PLATFORM_TIME_CFG_SRC_TIME ** -# Only applies if #CFE_PLATFORM_TIME_CFG_SERVER is set to true. */ -#define CFE_PLATFORM_TIME_CFG_SRC_MET false -#define CFE_PLATFORM_TIME_CFG_SRC_GPS false -#define CFE_PLATFORM_TIME_CFG_SRC_TIME false - +#define CFE_PLATFORM_TIME_CFG_SRC_MET false +#define CFE_PLATFORM_TIME_CFG_SRC_GPS false +#define CFE_PLATFORM_TIME_CFG_SRC_TIME false /** ** \cfetimecfg Define the Max Delta Limits for Time Servers using an Ext Time Source @@ -453,9 +436,8 @@ ** Applies only if both #CFE_PLATFORM_TIME_CFG_SERVER and #CFE_PLATFORM_TIME_CFG_SOURCE are set ** to true. */ -#define CFE_PLATFORM_TIME_MAX_DELTA_SECS 0 -#define CFE_PLATFORM_TIME_MAX_DELTA_SUBS 500000 - +#define CFE_PLATFORM_TIME_MAX_DELTA_SECS 0 +#define CFE_PLATFORM_TIME_MAX_DELTA_SUBS 500000 /** ** \cfetimecfg Define the Local Clock Rollover Value in seconds and subseconds @@ -467,9 +449,8 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_MAX_LOCAL_SECS 27 -#define CFE_PLATFORM_TIME_MAX_LOCAL_SUBS 0 - +#define CFE_PLATFORM_TIME_MAX_LOCAL_SECS 27 +#define CFE_PLATFORM_TIME_MAX_LOCAL_SUBS 0 /** ** \cfetimecfg Define Timing Limits From One Tone To The Next @@ -483,9 +464,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_TONE_LIMIT 20000 - - +#define CFE_PLATFORM_TIME_CFG_TONE_LIMIT 20000 /** ** \cfetimecfg Define Time to Start Flywheel Since Last Tone @@ -497,8 +476,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_START_FLY 2 - +#define CFE_PLATFORM_TIME_CFG_START_FLY 2 /** ** \cfetimecfg Define Periodic Time to Update Local Clock Tone Latch @@ -511,8 +489,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_LATCH_FLY 8 - +#define CFE_PLATFORM_TIME_CFG_LATCH_FLY 8 /** ** \cfeescfg Define Max Number of Applications @@ -530,7 +507,6 @@ */ #define CFE_PLATFORM_ES_MAX_APPLICATIONS 32 - /** ** \cfeescfg Define Max Number of Shared libraries ** @@ -570,8 +546,7 @@ ** in the error log. Any context information beyond this size will ** be truncated. */ -#define CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE 256 - +#define CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE 256 /** ** \cfeescfg Define Size of the cFE System Log. @@ -586,8 +561,7 @@ ** however, the maximum system log size is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_SYSTEM_LOG_SIZE 3072 - +#define CFE_PLATFORM_ES_SYSTEM_LOG_SIZE 3072 /** ** \cfeescfg Define Number of entries in the ES Object table @@ -601,8 +575,7 @@ ** however, the maximum object table size is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_OBJECT_TABLE_SIZE 30 - +#define CFE_PLATFORM_ES_OBJECT_TABLE_SIZE 30 /** ** \cfeescfg Define Max Number of Generic Counters @@ -613,8 +586,7 @@ ** \par Limits ** This parameter has a lower limit of 1 and an upper limit of 65535. */ -#define CFE_PLATFORM_ES_MAX_GEN_COUNTERS 8 - +#define CFE_PLATFORM_ES_MAX_GEN_COUNTERS 8 /** ** \cfeescfg Define ES Application Control Scan Rate @@ -635,7 +607,6 @@ */ #define CFE_PLATFORM_ES_APP_SCAN_RATE 1000 - /** ** \cfeescfg Define ES Application Kill Timeout ** @@ -665,7 +636,6 @@ */ #define CFE_PLATFORM_ES_APP_KILL_TIMEOUT 5 - /** ** \cfeescfg ES Ram Disk Sector Size ** @@ -682,8 +652,7 @@ ** however, the maximum RAM disk sector size is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE 512 - +#define CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE 512 /** ** \cfeescfg ES Ram Disk Number of Sectors @@ -701,7 +670,7 @@ ** however, the maximum number of RAM sectors is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS 4096 +#define CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS 4096 /** ** \cfeescfg Percentage of Ram Disk Reserved for Decompressing Apps @@ -727,7 +696,6 @@ */ #define CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED 30 - /** ** \cfeescfg RAM Disk Mount string ** @@ -744,7 +712,6 @@ */ #define CFE_PLATFORM_ES_RAM_DISK_MOUNT_STRING "/ram" - /** ** \cfeescfg Define Critical Data Store Size ** @@ -760,8 +727,7 @@ ** There is a lower limit of 8192 and an upper limit of UINT_MAX (4 Gigabytes) ** on this configuration paramater. */ -#define CFE_PLATFORM_ES_CDS_SIZE ( 128 * 1024 ) - +#define CFE_PLATFORM_ES_CDS_SIZE (128 * 1024) /** ** \cfeescfg Define User Reserved Memory Size @@ -781,8 +747,7 @@ ** There is a lower limit of 1024 and an upper limit of UINT_MAX (4 Gigabytes) ** on this configuration paramater. */ -#define CFE_PLATFORM_ES_USER_RESERVED_SIZE ( 1024 * 1024 ) - +#define CFE_PLATFORM_ES_USER_RESERVED_SIZE (1024 * 1024) /** ** \cfeescfg Define ES Reset Area Size @@ -805,7 +770,7 @@ ** There is a lower limit of 153600 (150KBytes) and an upper limit of UINT_MAX ** (4 Gigabytes) on this configuration paramater. */ -#define CFE_PLATFORM_ES_RESET_AREA_SIZE ( 170 * 1024 ) +#define CFE_PLATFORM_ES_RESET_AREA_SIZE (170 * 1024) /** ** \cfeescfg Define Memory Pool Alignment Size @@ -824,8 +789,7 @@ ** \par Limits ** This must always be a power of 2, as it is used as a binary address mask. */ -#define CFE_PLATFORM_ES_MEMPOOL_ALIGN_SIZE_MIN 4 - +#define CFE_PLATFORM_ES_MEMPOOL_ALIGN_SIZE_MIN 4 /** ** \cfeescfg ES Nonvolatile Startup Filename @@ -839,8 +803,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_NONVOL_STARTUP_FILE "/cf/cfe_es_startup.scr" - +#define CFE_PLATFORM_ES_NONVOL_STARTUP_FILE "/cf/cfe_es_startup.scr" /** ** \cfeescfg ES Volatile Startup Filename @@ -854,7 +817,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE "/ram/cfe_es_startup.scr" +#define CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE "/ram/cfe_es_startup.scr" /** ** \cfeescfg Default Shell Filename @@ -870,8 +833,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME "/ram/ShellCmd.out" - +#define CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME "/ram/ShellCmd.out" /** ** \cfeescfg Define Max Shell Command Size @@ -883,8 +845,7 @@ ** There is a lower limit of 64 and an upper limit of #OS_MAX_CMD_LEN. Units are ** characters. */ -#define CFE_PLATFORM_ES_MAX_SHELL_CMD 64 - +#define CFE_PLATFORM_ES_MAX_SHELL_CMD 64 /** ** \cfeescfg Define Shell Command Telemetry Pkt Segment Size @@ -899,7 +860,7 @@ ** \par Limits ** There is a lower limit of 32 and an upper limit of #CFE_SB_MAX_SB_MSG_SIZE. */ -#define CFE_PLATFORM_ES_MAX_SHELL_PKT 64 +#define CFE_PLATFORM_ES_MAX_SHELL_PKT 64 /** ** \cfeescfg Define OS Task Delay Value for ES Shell Command @@ -917,7 +878,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_ES_SHELL_OS_DELAY_MILLISEC 200 +#define CFE_PLATFORM_ES_SHELL_OS_DELAY_MILLISEC 200 /** ** \cfeescfg Default Application Information Filename @@ -932,7 +893,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE "/ram/cfe_es_app_info.log" +#define CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE "/ram/cfe_es_app_info.log" /** ** \cfeescfg Default Application Information Filename @@ -947,7 +908,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE "/ram/cfe_es_task_info.log" +#define CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE "/ram/cfe_es_task_info.log" /** ** \cfeescfg Default System Log Filename @@ -963,7 +924,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE "/ram/cfe_es_syslog.log" +#define CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE "/ram/cfe_es_syslog.log" /** ** \cfeescfg Default Exception and Reset (ER) Log Filename @@ -978,7 +939,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE "/ram/cfe_erlog.log" +#define CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE "/ram/cfe_erlog.log" /** ** \cfeescfg Default Performance Data Filename @@ -992,8 +953,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME "/ram/cfe_es_perf.dat" - +#define CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME "/ram/cfe_es_perf.dat" /** ** \cfeescfg Default Critical Data Store Registry Filename @@ -1007,7 +967,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE "/ram/cfe_cds_reg.log" +#define CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE "/ram/cfe_cds_reg.log" /** ** \cfeescfg Define Default System Log Mode following Power On Reset @@ -1025,7 +985,7 @@ ** There is a lower limit of 0 and an upper limit of 1 on this configuration ** paramater. */ -#define CFE_PLATFORM_ES_DEFAULT_POR_SYSLOG_MODE 0 +#define CFE_PLATFORM_ES_DEFAULT_POR_SYSLOG_MODE 0 /** ** \cfeescfg Define Default System Log Mode following Processor Reset @@ -1043,7 +1003,7 @@ ** There is a lower limit of 0 and an upper limit of 1 on this configuration ** paramater. */ -#define CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE 1 +#define CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE 1 /** ** \cfeescfg Define Max Number of Performance IDs @@ -1056,7 +1016,7 @@ ** This number must always be divisible by 32. There is a lower limit of 32 and ** an upper limit of 512 on this configuration paramater. */ -#define CFE_PLATFORM_ES_PERF_MAX_IDS 128 +#define CFE_PLATFORM_ES_PERF_MAX_IDS 128 /** ** \cfeescfg Define Max Size of Performance Data Buffer @@ -1072,8 +1032,7 @@ ** The units are number of entries. An entry is defined by a 32 bit data word followed ** by a 64 bit time stamp. */ -#define CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE 10000 - +#define CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE 10000 /** ** \cfeescfg Define Filter Mask Setting for Disabling All Performance Entries @@ -1083,7 +1042,7 @@ ** bit mask. For each bit, 0 means the corresponding entry is disabled and ** 1 means it is enabled. */ -#define CFE_PLATFORM_ES_PERF_FILTMASK_NONE 0 +#define CFE_PLATFORM_ES_PERF_FILTMASK_NONE 0 /** ** \cfeescfg Define Filter Mask Setting for Enabling All Performance Entries @@ -1093,7 +1052,7 @@ ** bit mask. For each bit, 0 means the corresponding entry is disabled and ** 1 means it is enabled. */ -#define CFE_PLATFORM_ES_PERF_FILTMASK_ALL ~CFE_PLATFORM_ES_PERF_FILTMASK_NONE +#define CFE_PLATFORM_ES_PERF_FILTMASK_ALL ~CFE_PLATFORM_ES_PERF_FILTMASK_NONE /** ** \cfeescfg Define Default Filter Mask Setting for Performance Data Buffer @@ -1104,8 +1063,7 @@ ** means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_ALL - +#define CFE_PLATFORM_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_ALL /** ** \cfeescfg Define Default Filter Trigger Setting for Disabling All Performance Entries @@ -1116,7 +1074,7 @@ ** disabled and 1 means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_TRIGMASK_NONE 0 +#define CFE_PLATFORM_ES_PERF_TRIGMASK_NONE 0 /** ** \cfeescfg Define Filter Trigger Setting for Enabling All Performance Entries @@ -1127,7 +1085,7 @@ ** disabled and 1 means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_TRIGMASK_ALL ~CFE_PLATFORM_ES_PERF_TRIGMASK_NONE +#define CFE_PLATFORM_ES_PERF_TRIGMASK_ALL ~CFE_PLATFORM_ES_PERF_TRIGMASK_NONE /** ** \cfeescfg Define Default Filter Trigger Setting for Performance Data Buffer @@ -1138,7 +1096,7 @@ ** disabled and 1 means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_NONE +#define CFE_PLATFORM_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_NONE /** ** \cfeescfg Define Performance Analyzer Child Task Priority @@ -1153,7 +1111,7 @@ ** Valid range for a child task is 1 to 255 however, the priority cannot ** be higher (lower number) than the ES parent application priority. */ -#define CFE_PLATFORM_ES_PERF_CHILD_PRIORITY 200 +#define CFE_PLATFORM_ES_PERF_CHILD_PRIORITY 200 /** ** \cfeescfg Define Performance Analyzer Child Task Stack Size @@ -1167,7 +1125,7 @@ ** is limited by the maximum value allowed by the data type. In this case, the data ** type is an unsigned 32-bit integer, so the valid range is 0 to 0xFFFFFFFF. */ -#define CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE 4096 +#define CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE 4096 /** ** \cfeescfg Define Performance Analyzer Child Task Delay @@ -1182,7 +1140,7 @@ ** is limited by the maximum value allowed by the data type. In this case, the data ** type is an unsigned 32-bit integer, so the valid range is 0 to 0xFFFFFFFF. */ -#define CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY 20 +#define CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY 20 /** ** \cfeescfg Define Performance Analyzer Child Task Number of Entries Between Delay @@ -1192,7 +1150,7 @@ ** Analyzer Child Task will write to the file between delays. ** */ -#define CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS 50 +#define CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS 50 /** ** \cfeescfg Define Default Stack Size for an Application @@ -1219,7 +1177,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_EVS_START_TASK_PRIORITY 61 +#define CFE_PLATFORM_EVS_START_TASK_PRIORITY 61 /** ** \cfeescfg Define EVS Task Stack Size @@ -1234,7 +1192,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfeescfg Define SB Task Priority @@ -1245,7 +1203,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_SB_START_TASK_PRIORITY 64 +#define CFE_PLATFORM_SB_START_TASK_PRIORITY 64 /** ** \cfeescfg Define SB Task Stack Size @@ -1260,7 +1218,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_SB_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_SB_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfeescfg Define ES Task Priority @@ -1271,7 +1229,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_ES_START_TASK_PRIORITY 68 +#define CFE_PLATFORM_ES_START_TASK_PRIORITY 68 /** ** \cfeescfg Define ES Task Stack Size @@ -1286,7 +1244,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfetimecfg Define TIME Task Priorities @@ -1301,9 +1259,9 @@ ** configuration paramaters. Remember that the meaning of each task ** priority is inverted -- a "lower" number has a "higher" priority. */ -#define CFE_PLATFORM_TIME_START_TASK_PRIORITY 60 -#define CFE_PLATFORM_TIME_TONE_TASK_PRIORITY 25 -#define CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY 25 +#define CFE_PLATFORM_TIME_START_TASK_PRIORITY 60 +#define CFE_PLATFORM_TIME_TONE_TASK_PRIORITY 25 +#define CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY 25 /** ** \cfetimecfg Define TIME Task Stack Sizes @@ -1320,9 +1278,9 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE -#define CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE 4096 -#define CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE 8192 +#define CFE_PLATFORM_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE 4096 +#define CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE 8192 /** ** \cfeescfg Define TBL Task Priority @@ -1333,7 +1291,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TBL_START_TASK_PRIORITY 70 +#define CFE_PLATFORM_TBL_START_TASK_PRIORITY 70 /** ** \cfeescfg Define TBL Task Stack Size @@ -1348,7 +1306,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfeescfg Define Maximum Number of Registered CDS Blocks @@ -1361,8 +1319,7 @@ ** however, the maximum number of CDS entries is system dependent and ** should be verified. */ -#define CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES 512 - +#define CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES 512 /** ** \cfeescfg Define Number of Processor Resets Before a Power On Reset @@ -1377,8 +1334,7 @@ ** however, the maximum number of processor resets may be system dependent and ** should be verified. */ -#define CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS 2 - +#define CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS 2 /** ** \cfeescfg Define Default ES Memory Pool Block Sizes @@ -1398,24 +1354,23 @@ ** enforced although the table size definitions may be reduced. Refer to the CFS ** Deployment Guide for information about removing CFE Table Services from the CFE. */ -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 8 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 16 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 32 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 48 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 64 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 96 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 128 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 160 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 256 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 512 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 1024 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 2048 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 4096 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 8192 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 16384 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 32768 -#define CFE_PLATFORM_ES_MAX_BLOCK_SIZE 80000 - +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 8 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 16 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 32 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 48 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 64 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 96 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 128 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 160 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 256 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 512 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 1024 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 2048 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 4096 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 8192 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 16384 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 32768 +#define CFE_PLATFORM_ES_MAX_BLOCK_SIZE 80000 /** ** \cfeescfg Define ES Critical Data Store Memory Pool Block Sizes @@ -1426,25 +1381,23 @@ ** \par Limits ** These sizes MUST be increasing and MUST be an integral multiple of 4. */ -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 8 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 16 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 32 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 48 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 64 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 96 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 128 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 160 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 256 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 512 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 1024 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 2048 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 4096 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 8192 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 16384 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 32768 -#define CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE 80000 - - +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 8 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 16 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 32 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 48 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 64 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 96 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 128 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 160 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 256 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 512 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 1024 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 2048 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 4096 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 8192 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 16384 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 32768 +#define CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE 80000 /** ** \cfeevscfg Define Maximum Number of Event Filters per Application @@ -1457,8 +1410,7 @@ ** the maximum number of event filters is system dependent and should be ** verified. */ -#define CFE_PLATFORM_EVS_MAX_EVENT_FILTERS 8 - +#define CFE_PLATFORM_EVS_MAX_EVENT_FILTERS 8 /** ** \cfeevscfg Enable or Disable EVS Local Event Log @@ -1473,7 +1425,6 @@ */ #define CFE_PLATFORM_EVS_LOG_ON - /** ** \cfeevscfg Default Event Log Filename ** @@ -1486,8 +1437,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_EVS_DEFAULT_LOG_FILE "/ram/cfe_evs.log" - +#define CFE_PLATFORM_EVS_DEFAULT_LOG_FILE "/ram/cfe_evs.log" /** ** \cfeevscfg Maximum Number of Events in EVS Local Event Log @@ -1499,8 +1449,7 @@ ** There are no restrictions on the lower and upper limits however, ** the maximum log size is system dependent and should be verified. */ -#define CFE_PLATFORM_EVS_LOG_MAX 20 - +#define CFE_PLATFORM_EVS_LOG_MAX 20 /** ** \cfeevscfg Default EVS Application Data Filename @@ -1515,8 +1464,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE "/ram/cfe_evs_app.dat" - +#define CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE "/ram/cfe_evs_app.dat" /** ** \cfeevscfg Default EVS Output Port State @@ -1530,8 +1478,7 @@ ** \par Limits ** The valid settings are 0x0 to 0xF. */ -#define CFE_PLATFORM_EVS_PORT_DEFAULT 0x0001 - +#define CFE_PLATFORM_EVS_PORT_DEFAULT 0x0001 /** ** \cfeevscfg Default EVS Event Type Filter Mask @@ -1548,9 +1495,7 @@ ** \par Limits ** The valid settings are 0x0 to 0xF. */ -#define CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG 0xE - - +#define CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG 0xE /** ** \cfeevscfg Default EVS Local Event Log Mode @@ -1566,8 +1511,7 @@ ** \par Limits ** The valid settings are 0 or 1 */ -#define CFE_PLATFORM_EVS_DEFAULT_LOG_MODE 1 - +#define CFE_PLATFORM_EVS_DEFAULT_LOG_MODE 1 /** ** \cfeevscfg Default EVS Message Format Mode @@ -1582,8 +1526,6 @@ */ #define CFE_PLATFORM_EVS_DEFAULT_MSG_FORMAT_MODE CFE_EVS_MsgFormat_LONG - - /* Platform Configuration Parameters for Table Service (TBL) */ /** @@ -1598,7 +1540,7 @@ ** \par Limits ** The cFE does not place a limit on the size of this parameter. */ -#define CFE_PLATFORM_TBL_BUF_MEMORY_BYTES 524288 +#define CFE_PLATFORM_TBL_BUF_MEMORY_BYTES 524288 /** ** \cfetblcfg Maximum Size Allowed for a Double Buffered Table @@ -1610,7 +1552,7 @@ ** The cFE does not place a limit on the size of this parameter but it must be ** less than half of #CFE_PLATFORM_TBL_BUF_MEMORY_BYTES. */ -#define CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE 16384 +#define CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE 16384 /** ** \cfetblcfg Maximum Size Allowed for a Single Buffered Table @@ -1626,7 +1568,7 @@ ** small enough to allow for #CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS number of tables ** to fit into #CFE_PLATFORM_TBL_BUF_MEMORY_BYTES. */ -#define CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE 16384 +#define CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE 16384 /** ** \cfetblcfg Maximum Number of Tables Allowed to be Registered @@ -1639,7 +1581,7 @@ ** determines the size of the Table Registry. An excessively high number will waste ** memory. */ -#define CFE_PLATFORM_TBL_MAX_NUM_TABLES 128 +#define CFE_PLATFORM_TBL_MAX_NUM_TABLES 128 /** ** \cfetblcfg Maximum Number of Critical Tables that can be Registered @@ -1653,7 +1595,7 @@ ** Data Store. An excessively high number will waste Critical Data Store memory. Therefore, ** this number must not exceed the value defined in CFE_ES_CDS_MAX_CRITICAL_TABLES. */ -#define CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES 32 +#define CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES 32 /** ** \cfetblcfg Maximum Number of Table Handles @@ -1666,7 +1608,7 @@ ** the number of tables (#CFE_PLATFORM_TBL_MAX_NUM_TABLES) and should be set higher if tables ** are shared between applications. */ -#define CFE_PLATFORM_TBL_MAX_NUM_HANDLES 256 +#define CFE_PLATFORM_TBL_MAX_NUM_HANDLES 256 /** ** \cfetblcfg Maximum Number of Simultaneous Loads to Support @@ -1681,7 +1623,7 @@ ** degrade system performance and waste memory. A number less than 5 is ** suggested but not required. */ -#define CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS 4 +#define CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS 4 /** ** \cfetblcfg Maximum Number of Simultaneous Table Validations @@ -1699,7 +1641,7 @@ ** degrade system performance and waste memory. A number less than 20 is ** suggested but not required. */ -#define CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS 10 +#define CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS 10 /** ** \cfetblcfg Default Filename for a Table Registry Dump @@ -1712,7 +1654,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE "/ram/cfe_tbl_reg.log" +#define CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE "/ram/cfe_tbl_reg.log" /** ** \cfetblcfg Number of Spacecraft ID's specified for validation @@ -1731,14 +1673,11 @@ ** This number must be greater than or equal to zero and ** less than or equal to 2. */ -#define CFE_PLATFORM_TBL_VALID_SCID_COUNT 0 +#define CFE_PLATFORM_TBL_VALID_SCID_COUNT 0 /* macro to construct 32 bit value from 4 chars */ -#define CFE_PLATFORM_TBL_U32FROM4CHARS( _C1, _C2, _C3, _C4 ) \ - ( (uint32)(_C1) << 24 | \ - (uint32)(_C2) << 16 | \ - (uint32)(_C3) << 8 | \ - (uint32)(_C4) ) +#define CFE_PLATFORM_TBL_U32FROM4CHARS(_C1, _C2, _C3, _C4) \ + ((uint32)(_C1) << 24 | (uint32)(_C2) << 16 | (uint32)(_C3) << 8 | (uint32)(_C4)) /** ** \cfetblcfg Spacecraft ID values used for table load validation @@ -1752,8 +1691,8 @@ ** \par Limits ** This value can be any 32 bit unsigned integer. */ -#define CFE_PLATFORM_TBL_VALID_SCID_1 (CFE_MISSION_SPACECRAFT_ID) -#define CFE_PLATFORM_TBL_VALID_SCID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) +#define CFE_PLATFORM_TBL_VALID_SCID_1 (CFE_MISSION_SPACECRAFT_ID) +#define CFE_PLATFORM_TBL_VALID_SCID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) /** ** \cfetblcfg Number of Processor ID's specified for validation @@ -1772,7 +1711,7 @@ ** This number must be greater than or equal to zero and ** less than or equal to 4. */ -#define CFE_PLATFORM_TBL_VALID_PRID_COUNT 0 +#define CFE_PLATFORM_TBL_VALID_PRID_COUNT 0 /** ** \cfetblcfg Processor ID values used for table load validation @@ -1786,10 +1725,10 @@ ** \par Limits ** This value can be any 32 bit unsigned integer. */ -#define CFE_PLATFORM_TBL_VALID_PRID_1 (CFE_PLATFORM_CPU_ID) -#define CFE_PLATFORM_TBL_VALID_PRID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) -#define CFE_PLATFORM_TBL_VALID_PRID_3 0 -#define CFE_PLATFORM_TBL_VALID_PRID_4 0 +#define CFE_PLATFORM_TBL_VALID_PRID_1 (CFE_PLATFORM_CPU_ID) +#define CFE_PLATFORM_TBL_VALID_PRID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) +#define CFE_PLATFORM_TBL_VALID_PRID_3 0 +#define CFE_PLATFORM_TBL_VALID_PRID_4 0 /** \cfeescfg Mission specific version number for cFE ** @@ -1804,7 +1743,7 @@ ** Must be defined as a numeric value that is greater than ** or equal to zero. */ -#define CFE_MISSION_REV 0 +#define CFE_MISSION_REV 0 /** \cfeescfg Poll timer for startup sync delay ** @@ -1826,7 +1765,7 @@ ** Must be defined as an integer value that is greater than ** or equal to zero. */ -#define CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC 50 +#define CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC 50 /** \cfeescfg CFE core application startup timeout ** @@ -1850,7 +1789,7 @@ ** or equal to zero. ** */ -#define CFE_PLATFORM_CORE_MAX_STARTUP_MSEC 30000 +#define CFE_PLATFORM_CORE_MAX_STARTUP_MSEC 30000 /** \cfeescfg Startup script timeout ** @@ -1867,9 +1806,8 @@ ** \par Limits: ** Must be defined as an integer value that is greater than ** or equal to zero. - */ -#define CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC 1000 - +*/ +#define CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC 1000 /* * Compatibility layer for CFE release 6.6 @@ -1886,198 +1824,197 @@ */ #ifndef CFE_OMIT_DEPRECATED_6_6 -#define CFE_CPU_ID CFE_PLATFORM_CPU_ID -#define CFE_CPU_NAME CFE_PLATFORM_CPU_NAME -#define CFE_SB_MAX_MSG_IDS CFE_PLATFORM_SB_MAX_MSG_IDS -#define CFE_SB_MAX_PIPES CFE_PLATFORM_SB_MAX_PIPES -#define CFE_SB_MAX_DEST_PER_PKT CFE_PLATFORM_SB_MAX_DEST_PER_PKT -#define CFE_SB_DEFAULT_MSG_LIMIT CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT -#define CFE_SB_BUF_MEMORY_BYTES CFE_PLATFORM_SB_BUF_MEMORY_BYTES -#define CFE_SB_MAX_PIPE_DEPTH CFE_PLATFORM_SB_MAX_PIPE_DEPTH -#define CFE_SB_HIGHEST_VALID_MSGID CFE_PLATFORM_SB_HIGHEST_VALID_MSGID -#define CFE_SB_DEFAULT_ROUTING_FILENAME CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME -#define CFE_SB_DEFAULT_PIPE_FILENAME CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME -#define CFE_SB_DEFAULT_MAP_FILENAME CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME -#define CFE_SB_FILTERED_EVENT1 CFE_PLATFORM_SB_FILTERED_EVENT1 -#define CFE_SB_FILTER_MASK1 CFE_PLATFORM_SB_FILTER_MASK1 -#define CFE_SB_FILTERED_EVENT2 CFE_PLATFORM_SB_FILTERED_EVENT2 -#define CFE_SB_FILTER_MASK2 CFE_PLATFORM_SB_FILTER_MASK2 -#define CFE_SB_FILTERED_EVENT3 CFE_PLATFORM_SB_FILTERED_EVENT3 -#define CFE_SB_FILTER_MASK3 CFE_PLATFORM_SB_FILTER_MASK3 -#define CFE_SB_FILTERED_EVENT4 CFE_PLATFORM_SB_FILTERED_EVENT4 -#define CFE_SB_FILTER_MASK4 CFE_PLATFORM_SB_FILTER_MASK4 -#define CFE_SB_FILTERED_EVENT5 CFE_PLATFORM_SB_FILTERED_EVENT5 -#define CFE_SB_FILTER_MASK5 CFE_PLATFORM_SB_FILTER_MASK5 -#define CFE_SB_FILTERED_EVENT6 CFE_PLATFORM_SB_FILTERED_EVENT6 -#define CFE_SB_FILTER_MASK6 CFE_PLATFORM_SB_FILTER_MASK6 -#define CFE_SB_FILTERED_EVENT7 CFE_PLATFORM_SB_FILTERED_EVENT7 -#define CFE_SB_FILTER_MASK7 CFE_PLATFORM_SB_FILTER_MASK7 -#define CFE_SB_FILTERED_EVENT8 CFE_PLATFORM_SB_FILTERED_EVENT8 -#define CFE_SB_FILTER_MASK8 CFE_PLATFORM_SB_FILTER_MASK8 -#define CFE_SB_MEM_BLOCK_SIZE_01 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 -#define CFE_SB_MEM_BLOCK_SIZE_02 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 -#define CFE_SB_MEM_BLOCK_SIZE_03 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 -#define CFE_SB_MEM_BLOCK_SIZE_04 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 -#define CFE_SB_MEM_BLOCK_SIZE_05 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 -#define CFE_SB_MEM_BLOCK_SIZE_06 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 -#define CFE_SB_MEM_BLOCK_SIZE_07 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 -#define CFE_SB_MEM_BLOCK_SIZE_08 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 -#define CFE_SB_MEM_BLOCK_SIZE_09 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 -#define CFE_SB_MEM_BLOCK_SIZE_10 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 -#define CFE_SB_MEM_BLOCK_SIZE_11 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 -#define CFE_SB_MEM_BLOCK_SIZE_12 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 -#define CFE_SB_MEM_BLOCK_SIZE_13 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 -#define CFE_SB_MEM_BLOCK_SIZE_14 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 -#define CFE_SB_MEM_BLOCK_SIZE_15 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 -#define CFE_SB_MEM_BLOCK_SIZE_16 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 -#define CFE_SB_MAX_BLOCK_SIZE CFE_PLATFORM_SB_MAX_BLOCK_SIZE -#define CFE_SB_DEFAULT_REPORT_SENDER CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER -#define CFE_TIME_CFG_SERVER CFE_PLATFORM_TIME_CFG_SERVER -#define CFE_TIME_CFG_CLIENT CFE_PLATFORM_TIME_CFG_CLIENT -#define CFE_TIME_CFG_VIRTUAL CFE_PLATFORM_TIME_CFG_VIRTUAL -#define CFE_TIME_CFG_SIGNAL CFE_PLATFORM_TIME_CFG_SIGNAL -#define CFE_TIME_CFG_SOURCE CFE_PLATFORM_TIME_CFG_SOURCE -#define CFE_TIME_CFG_SRC_MET CFE_PLATFORM_TIME_CFG_SRC_MET -#define CFE_TIME_CFG_SRC_GPS CFE_PLATFORM_TIME_CFG_SRC_GPS -#define CFE_TIME_CFG_SRC_TIME CFE_PLATFORM_TIME_CFG_SRC_TIME -#define CFE_TIME_MAX_DELTA_SECS CFE_PLATFORM_TIME_MAX_DELTA_SECS -#define CFE_TIME_MAX_DELTA_SUBS CFE_PLATFORM_TIME_MAX_DELTA_SUBS -#define CFE_TIME_MAX_LOCAL_SECS CFE_PLATFORM_TIME_MAX_LOCAL_SECS -#define CFE_TIME_MAX_LOCAL_SUBS CFE_PLATFORM_TIME_MAX_LOCAL_SUBS -#define CFE_TIME_CFG_TONE_LIMIT CFE_PLATFORM_TIME_CFG_TONE_LIMIT -#define CFE_TIME_CFG_START_FLY CFE_PLATFORM_TIME_CFG_START_FLY -#define CFE_TIME_CFG_LATCH_FLY CFE_PLATFORM_TIME_CFG_LATCH_FLY -#define CFE_ES_MAX_APPLICATIONS CFE_PLATFORM_ES_MAX_APPLICATIONS -#define CFE_ES_MAX_LIBRARIES CFE_PLATFORM_ES_MAX_LIBRARIES -#define CFE_ES_ER_LOG_ENTRIES CFE_PLATFORM_ES_ER_LOG_ENTRIES -#define CFE_ES_ER_LOG_MAX_CONTEXT_SIZE CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE -#define CFE_ES_SYSTEM_LOG_SIZE CFE_PLATFORM_ES_SYSTEM_LOG_SIZE -#define CFE_ES_OBJECT_TABLE_SIZE CFE_PLATFORM_ES_OBJECT_TABLE_SIZE -#define CFE_ES_MAX_GEN_COUNTERS CFE_PLATFORM_ES_MAX_GEN_COUNTERS -#define CFE_ES_APP_SCAN_RATE CFE_PLATFORM_ES_APP_SCAN_RATE -#define CFE_ES_APP_KILL_TIMEOUT CFE_PLATFORM_ES_APP_KILL_TIMEOUT -#define CFE_ES_RAM_DISK_SECTOR_SIZE CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE -#define CFE_ES_RAM_DISK_NUM_SECTORS CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS -#define CFE_ES_RAM_DISK_PERCENT_RESERVED CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED -#define CFE_ES_RAM_DISK_MOUNT_STRING CFE_PLATFORM_ES_RAM_DISK_MOUNT_STRING -#define CFE_ES_CDS_SIZE CFE_PLATFORM_ES_CDS_SIZE -#define CFE_ES_USER_RESERVED_SIZE CFE_PLATFORM_ES_USER_RESERVED_SIZE -#define CFE_ES_RESET_AREA_SIZE CFE_PLATFORM_ES_RESET_AREA_SIZE -#define CFE_ES_NONVOL_STARTUP_FILE CFE_PLATFORM_ES_NONVOL_STARTUP_FILE -#define CFE_ES_VOLATILE_STARTUP_FILE CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE -#define CFE_ES_DEFAULT_SHELL_FILENAME CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME -#define CFE_ES_MAX_SHELL_CMD CFE_PLATFORM_ES_MAX_SHELL_CMD -#define CFE_ES_MAX_SHELL_PKT CFE_PLATFORM_ES_MAX_SHELL_PKT -#define CFE_ES_DEFAULT_APP_LOG_FILE CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE -#define CFE_ES_DEFAULT_TASK_LOG_FILE CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE -#define CFE_ES_DEFAULT_SYSLOG_FILE CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE -#define CFE_ES_DEFAULT_ER_LOG_FILE CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE -#define CFE_ES_DEFAULT_PERF_DUMP_FILENAME CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME -#define CFE_ES_DEFAULT_CDS_REG_DUMP_FILE CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE -#define CFE_ES_DEFAULT_SYSLOG_MODE CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE -#define CFE_ES_PERF_MAX_IDS CFE_PLATFORM_ES_PERF_MAX_IDS -#define CFE_ES_PERF_DATA_BUFFER_SIZE CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE -#define CFE_ES_PERF_FILTMASK_NONE CFE_PLATFORM_ES_PERF_FILTMASK_NONE -#define CFE_ES_PERF_FILTMASK_ALL CFE_PLATFORM_ES_PERF_FILTMASK_ALL -#define CFE_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_INIT -#define CFE_ES_PERF_TRIGMASK_NONE CFE_PLATFORM_ES_PERF_TRIGMASK_NONE -#define CFE_ES_PERF_TRIGMASK_ALL CFE_PLATFORM_ES_PERF_TRIGMASK_ALL -#define CFE_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_INIT -#define CFE_ES_PERF_CHILD_PRIORITY CFE_PLATFORM_ES_PERF_CHILD_PRIORITY -#define CFE_ES_PERF_CHILD_STACK_SIZE CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE -#define CFE_ES_PERF_CHILD_MS_DELAY CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY -#define CFE_ES_PERF_ENTRIES_BTWN_DLYS CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS -#define CFE_ES_DEFAULT_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE -#define CFE_ES_EXCEPTION_FUNCTION CFE_PLATFORM_ES_EXCEPTION_FUNCTION -#define CFE_EVS_START_TASK_PRIORITY CFE_PLATFORM_EVS_START_TASK_PRIORITY -#define CFE_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_EVS_START_TASK_STACK_SIZE -#define CFE_SB_START_TASK_PRIORITY CFE_PLATFORM_SB_START_TASK_PRIORITY -#define CFE_SB_START_TASK_STACK_SIZE CFE_PLATFORM_SB_START_TASK_STACK_SIZE -#define CFE_ES_START_TASK_PRIORITY CFE_PLATFORM_ES_START_TASK_PRIORITY -#define CFE_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_START_TASK_STACK_SIZE -#define CFE_TIME_START_TASK_PRIORITY CFE_PLATFORM_TIME_START_TASK_PRIORITY -#define CFE_TIME_TONE_TASK_PRIORITY CFE_PLATFORM_TIME_TONE_TASK_PRIORITY -#define CFE_TIME_1HZ_TASK_PRIORITY CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY -#define CFE_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_TIME_START_TASK_STACK_SIZE -#define CFE_TIME_TONE_TASK_STACK_SIZE CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE -#define CFE_TIME_1HZ_TASK_STACK_SIZE CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE -#define CFE_TBL_START_TASK_PRIORITY CFE_PLATFORM_TBL_START_TASK_PRIORITY -#define CFE_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_TBL_START_TASK_STACK_SIZE -#define CFE_ES_CDS_MAX_NUM_ENTRIES CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES -#define CFE_ES_MAX_PROCESSOR_RESETS CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS -#define CFE_ES_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 -#define CFE_ES_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 -#define CFE_ES_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 -#define CFE_ES_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 -#define CFE_ES_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 -#define CFE_ES_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 -#define CFE_ES_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 -#define CFE_ES_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 -#define CFE_ES_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 -#define CFE_ES_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 -#define CFE_ES_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 -#define CFE_ES_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 -#define CFE_ES_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 -#define CFE_ES_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 -#define CFE_ES_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 -#define CFE_ES_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 -#define CFE_ES_MAX_BLOCK_SIZE CFE_PLATFORM_ES_MAX_BLOCK_SIZE -#define CFE_ES_CDS_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 -#define CFE_ES_CDS_MAX_BLOCK_SIZE CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE -#define CFE_EVS_MAX_EVENT_FILTERS CFE_PLATFORM_EVS_MAX_EVENT_FILTERS -#define CFE_EVS_LOG_ON CFE_PLATFORM_EVS_LOG_ON -#define CFE_EVS_DEFAULT_LOG_FILE CFE_PLATFORM_EVS_DEFAULT_LOG_FILE -#define CFE_EVS_LOG_MAX CFE_PLATFORM_EVS_LOG_MAX -#define CFE_EVS_DEFAULT_APP_DATA_FILE CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE -#define CFE_EVS_PORT_DEFAULT CFE_PLATFORM_EVS_PORT_DEFAULT -#define CFE_EVS_DEFAULT_TYPE_FLAG CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG -#define CFE_EVS_DEFAULT_LOG_MODE CFE_PLATFORM_EVS_DEFAULT_LOG_MODE -#define CFE_EVS_DEFAULT_MSG_FORMAT_MODE CFE_PLATFORM_EVS_DEFAULT_MSG_FORMAT_MODE -#define CFE_TBL_BUF_MEMORY_BYTES CFE_PLATFORM_TBL_BUF_MEMORY_BYTES -#define CFE_TBL_MAX_DBL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE -#define CFE_TBL_MAX_SNGL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE -#define CFE_TBL_MAX_NUM_TABLES CFE_PLATFORM_TBL_MAX_NUM_TABLES -#define CFE_TBL_MAX_CRITICAL_TABLES CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES -#define CFE_TBL_MAX_NUM_HANDLES CFE_PLATFORM_TBL_MAX_NUM_HANDLES -#define CFE_TBL_MAX_SIMULTANEOUS_LOADS CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS -#define CFE_TBL_MAX_NUM_VALIDATIONS CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS -#define CFE_TBL_DEFAULT_REG_DUMP_FILE CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE -#define CFE_TBL_VALID_SCID_COUNT CFE_PLATFORM_TBL_VALID_SCID_COUNT -#define CFE_TBL_U32FROM4CHARS CFE_PLATFORM_TBL_U32FROM4CHARS -#define CFE_TBL_VALID_SCID_1 CFE_PLATFORM_TBL_VALID_SCID_1 -#define CFE_TBL_VALID_SCID_2 CFE_PLATFORM_TBL_VALID_SCID_2 -#define CFE_TBL_VALID_PRID_COUNT CFE_PLATFORM_TBL_VALID_PRID_COUNT -#define CFE_TBL_VALID_PRID_1 CFE_PLATFORM_TBL_VALID_PRID_1 -#define CFE_TBL_VALID_PRID_2 CFE_PLATFORM_TBL_VALID_PRID_2 -#define CFE_TBL_VALID_PRID_3 CFE_PLATFORM_TBL_VALID_PRID_3 -#define CFE_TBL_VALID_PRID_4 CFE_PLATFORM_TBL_VALID_PRID_4 -#define CFE_ES_STARTUP_SYNC_POLL_MSEC CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC -#define CFE_CORE_MAX_STARTUP_MSEC CFE_PLATFORM_CORE_MAX_STARTUP_MSEC -#define CFE_ES_STARTUP_SCRIPT_TIMEOUT_MSEC CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC +#define CFE_CPU_ID CFE_PLATFORM_CPU_ID +#define CFE_CPU_NAME CFE_PLATFORM_CPU_NAME +#define CFE_SB_MAX_MSG_IDS CFE_PLATFORM_SB_MAX_MSG_IDS +#define CFE_SB_MAX_PIPES CFE_PLATFORM_SB_MAX_PIPES +#define CFE_SB_MAX_DEST_PER_PKT CFE_PLATFORM_SB_MAX_DEST_PER_PKT +#define CFE_SB_DEFAULT_MSG_LIMIT CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT +#define CFE_SB_BUF_MEMORY_BYTES CFE_PLATFORM_SB_BUF_MEMORY_BYTES +#define CFE_SB_MAX_PIPE_DEPTH CFE_PLATFORM_SB_MAX_PIPE_DEPTH +#define CFE_SB_HIGHEST_VALID_MSGID CFE_PLATFORM_SB_HIGHEST_VALID_MSGID +#define CFE_SB_DEFAULT_ROUTING_FILENAME CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME +#define CFE_SB_DEFAULT_PIPE_FILENAME CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME +#define CFE_SB_DEFAULT_MAP_FILENAME CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME +#define CFE_SB_FILTERED_EVENT1 CFE_PLATFORM_SB_FILTERED_EVENT1 +#define CFE_SB_FILTER_MASK1 CFE_PLATFORM_SB_FILTER_MASK1 +#define CFE_SB_FILTERED_EVENT2 CFE_PLATFORM_SB_FILTERED_EVENT2 +#define CFE_SB_FILTER_MASK2 CFE_PLATFORM_SB_FILTER_MASK2 +#define CFE_SB_FILTERED_EVENT3 CFE_PLATFORM_SB_FILTERED_EVENT3 +#define CFE_SB_FILTER_MASK3 CFE_PLATFORM_SB_FILTER_MASK3 +#define CFE_SB_FILTERED_EVENT4 CFE_PLATFORM_SB_FILTERED_EVENT4 +#define CFE_SB_FILTER_MASK4 CFE_PLATFORM_SB_FILTER_MASK4 +#define CFE_SB_FILTERED_EVENT5 CFE_PLATFORM_SB_FILTERED_EVENT5 +#define CFE_SB_FILTER_MASK5 CFE_PLATFORM_SB_FILTER_MASK5 +#define CFE_SB_FILTERED_EVENT6 CFE_PLATFORM_SB_FILTERED_EVENT6 +#define CFE_SB_FILTER_MASK6 CFE_PLATFORM_SB_FILTER_MASK6 +#define CFE_SB_FILTERED_EVENT7 CFE_PLATFORM_SB_FILTERED_EVENT7 +#define CFE_SB_FILTER_MASK7 CFE_PLATFORM_SB_FILTER_MASK7 +#define CFE_SB_FILTERED_EVENT8 CFE_PLATFORM_SB_FILTERED_EVENT8 +#define CFE_SB_FILTER_MASK8 CFE_PLATFORM_SB_FILTER_MASK8 +#define CFE_SB_MEM_BLOCK_SIZE_01 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 +#define CFE_SB_MEM_BLOCK_SIZE_02 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 +#define CFE_SB_MEM_BLOCK_SIZE_03 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 +#define CFE_SB_MEM_BLOCK_SIZE_04 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 +#define CFE_SB_MEM_BLOCK_SIZE_05 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 +#define CFE_SB_MEM_BLOCK_SIZE_06 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 +#define CFE_SB_MEM_BLOCK_SIZE_07 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 +#define CFE_SB_MEM_BLOCK_SIZE_08 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 +#define CFE_SB_MEM_BLOCK_SIZE_09 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 +#define CFE_SB_MEM_BLOCK_SIZE_10 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 +#define CFE_SB_MEM_BLOCK_SIZE_11 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 +#define CFE_SB_MEM_BLOCK_SIZE_12 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 +#define CFE_SB_MEM_BLOCK_SIZE_13 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 +#define CFE_SB_MEM_BLOCK_SIZE_14 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 +#define CFE_SB_MEM_BLOCK_SIZE_15 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 +#define CFE_SB_MEM_BLOCK_SIZE_16 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 +#define CFE_SB_MAX_BLOCK_SIZE CFE_PLATFORM_SB_MAX_BLOCK_SIZE +#define CFE_SB_DEFAULT_REPORT_SENDER CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER +#define CFE_TIME_CFG_SERVER CFE_PLATFORM_TIME_CFG_SERVER +#define CFE_TIME_CFG_CLIENT CFE_PLATFORM_TIME_CFG_CLIENT +#define CFE_TIME_CFG_VIRTUAL CFE_PLATFORM_TIME_CFG_VIRTUAL +#define CFE_TIME_CFG_SIGNAL CFE_PLATFORM_TIME_CFG_SIGNAL +#define CFE_TIME_CFG_SOURCE CFE_PLATFORM_TIME_CFG_SOURCE +#define CFE_TIME_CFG_SRC_MET CFE_PLATFORM_TIME_CFG_SRC_MET +#define CFE_TIME_CFG_SRC_GPS CFE_PLATFORM_TIME_CFG_SRC_GPS +#define CFE_TIME_CFG_SRC_TIME CFE_PLATFORM_TIME_CFG_SRC_TIME +#define CFE_TIME_MAX_DELTA_SECS CFE_PLATFORM_TIME_MAX_DELTA_SECS +#define CFE_TIME_MAX_DELTA_SUBS CFE_PLATFORM_TIME_MAX_DELTA_SUBS +#define CFE_TIME_MAX_LOCAL_SECS CFE_PLATFORM_TIME_MAX_LOCAL_SECS +#define CFE_TIME_MAX_LOCAL_SUBS CFE_PLATFORM_TIME_MAX_LOCAL_SUBS +#define CFE_TIME_CFG_TONE_LIMIT CFE_PLATFORM_TIME_CFG_TONE_LIMIT +#define CFE_TIME_CFG_START_FLY CFE_PLATFORM_TIME_CFG_START_FLY +#define CFE_TIME_CFG_LATCH_FLY CFE_PLATFORM_TIME_CFG_LATCH_FLY +#define CFE_ES_MAX_APPLICATIONS CFE_PLATFORM_ES_MAX_APPLICATIONS +#define CFE_ES_MAX_LIBRARIES CFE_PLATFORM_ES_MAX_LIBRARIES +#define CFE_ES_ER_LOG_ENTRIES CFE_PLATFORM_ES_ER_LOG_ENTRIES +#define CFE_ES_ER_LOG_MAX_CONTEXT_SIZE CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE +#define CFE_ES_SYSTEM_LOG_SIZE CFE_PLATFORM_ES_SYSTEM_LOG_SIZE +#define CFE_ES_OBJECT_TABLE_SIZE CFE_PLATFORM_ES_OBJECT_TABLE_SIZE +#define CFE_ES_MAX_GEN_COUNTERS CFE_PLATFORM_ES_MAX_GEN_COUNTERS +#define CFE_ES_APP_SCAN_RATE CFE_PLATFORM_ES_APP_SCAN_RATE +#define CFE_ES_APP_KILL_TIMEOUT CFE_PLATFORM_ES_APP_KILL_TIMEOUT +#define CFE_ES_RAM_DISK_SECTOR_SIZE CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE +#define CFE_ES_RAM_DISK_NUM_SECTORS CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS +#define CFE_ES_RAM_DISK_PERCENT_RESERVED CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED +#define CFE_ES_RAM_DISK_MOUNT_STRING CFE_PLATFORM_ES_RAM_DISK_MOUNT_STRING +#define CFE_ES_CDS_SIZE CFE_PLATFORM_ES_CDS_SIZE +#define CFE_ES_USER_RESERVED_SIZE CFE_PLATFORM_ES_USER_RESERVED_SIZE +#define CFE_ES_RESET_AREA_SIZE CFE_PLATFORM_ES_RESET_AREA_SIZE +#define CFE_ES_NONVOL_STARTUP_FILE CFE_PLATFORM_ES_NONVOL_STARTUP_FILE +#define CFE_ES_VOLATILE_STARTUP_FILE CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE +#define CFE_ES_DEFAULT_SHELL_FILENAME CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME +#define CFE_ES_MAX_SHELL_CMD CFE_PLATFORM_ES_MAX_SHELL_CMD +#define CFE_ES_MAX_SHELL_PKT CFE_PLATFORM_ES_MAX_SHELL_PKT +#define CFE_ES_DEFAULT_APP_LOG_FILE CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE +#define CFE_ES_DEFAULT_TASK_LOG_FILE CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE +#define CFE_ES_DEFAULT_SYSLOG_FILE CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE +#define CFE_ES_DEFAULT_ER_LOG_FILE CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE +#define CFE_ES_DEFAULT_PERF_DUMP_FILENAME CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME +#define CFE_ES_DEFAULT_CDS_REG_DUMP_FILE CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE +#define CFE_ES_DEFAULT_SYSLOG_MODE CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE +#define CFE_ES_PERF_MAX_IDS CFE_PLATFORM_ES_PERF_MAX_IDS +#define CFE_ES_PERF_DATA_BUFFER_SIZE CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE +#define CFE_ES_PERF_FILTMASK_NONE CFE_PLATFORM_ES_PERF_FILTMASK_NONE +#define CFE_ES_PERF_FILTMASK_ALL CFE_PLATFORM_ES_PERF_FILTMASK_ALL +#define CFE_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_INIT +#define CFE_ES_PERF_TRIGMASK_NONE CFE_PLATFORM_ES_PERF_TRIGMASK_NONE +#define CFE_ES_PERF_TRIGMASK_ALL CFE_PLATFORM_ES_PERF_TRIGMASK_ALL +#define CFE_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_INIT +#define CFE_ES_PERF_CHILD_PRIORITY CFE_PLATFORM_ES_PERF_CHILD_PRIORITY +#define CFE_ES_PERF_CHILD_STACK_SIZE CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE +#define CFE_ES_PERF_CHILD_MS_DELAY CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY +#define CFE_ES_PERF_ENTRIES_BTWN_DLYS CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS +#define CFE_ES_DEFAULT_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_ES_EXCEPTION_FUNCTION CFE_PLATFORM_ES_EXCEPTION_FUNCTION +#define CFE_EVS_START_TASK_PRIORITY CFE_PLATFORM_EVS_START_TASK_PRIORITY +#define CFE_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_EVS_START_TASK_STACK_SIZE +#define CFE_SB_START_TASK_PRIORITY CFE_PLATFORM_SB_START_TASK_PRIORITY +#define CFE_SB_START_TASK_STACK_SIZE CFE_PLATFORM_SB_START_TASK_STACK_SIZE +#define CFE_ES_START_TASK_PRIORITY CFE_PLATFORM_ES_START_TASK_PRIORITY +#define CFE_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_START_TASK_STACK_SIZE +#define CFE_TIME_START_TASK_PRIORITY CFE_PLATFORM_TIME_START_TASK_PRIORITY +#define CFE_TIME_TONE_TASK_PRIORITY CFE_PLATFORM_TIME_TONE_TASK_PRIORITY +#define CFE_TIME_1HZ_TASK_PRIORITY CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY +#define CFE_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_TIME_START_TASK_STACK_SIZE +#define CFE_TIME_TONE_TASK_STACK_SIZE CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE +#define CFE_TIME_1HZ_TASK_STACK_SIZE CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE +#define CFE_TBL_START_TASK_PRIORITY CFE_PLATFORM_TBL_START_TASK_PRIORITY +#define CFE_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_TBL_START_TASK_STACK_SIZE +#define CFE_ES_CDS_MAX_NUM_ENTRIES CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES +#define CFE_ES_MAX_PROCESSOR_RESETS CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS +#define CFE_ES_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 +#define CFE_ES_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 +#define CFE_ES_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 +#define CFE_ES_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 +#define CFE_ES_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 +#define CFE_ES_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 +#define CFE_ES_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 +#define CFE_ES_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 +#define CFE_ES_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 +#define CFE_ES_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 +#define CFE_ES_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 +#define CFE_ES_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 +#define CFE_ES_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 +#define CFE_ES_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 +#define CFE_ES_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 +#define CFE_ES_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 +#define CFE_ES_MAX_BLOCK_SIZE CFE_PLATFORM_ES_MAX_BLOCK_SIZE +#define CFE_ES_CDS_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 +#define CFE_ES_CDS_MAX_BLOCK_SIZE CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE +#define CFE_EVS_MAX_EVENT_FILTERS CFE_PLATFORM_EVS_MAX_EVENT_FILTERS +#define CFE_EVS_LOG_ON CFE_PLATFORM_EVS_LOG_ON +#define CFE_EVS_DEFAULT_LOG_FILE CFE_PLATFORM_EVS_DEFAULT_LOG_FILE +#define CFE_EVS_LOG_MAX CFE_PLATFORM_EVS_LOG_MAX +#define CFE_EVS_DEFAULT_APP_DATA_FILE CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE +#define CFE_EVS_PORT_DEFAULT CFE_PLATFORM_EVS_PORT_DEFAULT +#define CFE_EVS_DEFAULT_TYPE_FLAG CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG +#define CFE_EVS_DEFAULT_LOG_MODE CFE_PLATFORM_EVS_DEFAULT_LOG_MODE +#define CFE_EVS_DEFAULT_MSG_FORMAT_MODE CFE_PLATFORM_EVS_DEFAULT_MSG_FORMAT_MODE +#define CFE_TBL_BUF_MEMORY_BYTES CFE_PLATFORM_TBL_BUF_MEMORY_BYTES +#define CFE_TBL_MAX_DBL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE +#define CFE_TBL_MAX_SNGL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE +#define CFE_TBL_MAX_NUM_TABLES CFE_PLATFORM_TBL_MAX_NUM_TABLES +#define CFE_TBL_MAX_CRITICAL_TABLES CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES +#define CFE_TBL_MAX_NUM_HANDLES CFE_PLATFORM_TBL_MAX_NUM_HANDLES +#define CFE_TBL_MAX_SIMULTANEOUS_LOADS CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS +#define CFE_TBL_MAX_NUM_VALIDATIONS CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS +#define CFE_TBL_DEFAULT_REG_DUMP_FILE CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE +#define CFE_TBL_VALID_SCID_COUNT CFE_PLATFORM_TBL_VALID_SCID_COUNT +#define CFE_TBL_U32FROM4CHARS CFE_PLATFORM_TBL_U32FROM4CHARS +#define CFE_TBL_VALID_SCID_1 CFE_PLATFORM_TBL_VALID_SCID_1 +#define CFE_TBL_VALID_SCID_2 CFE_PLATFORM_TBL_VALID_SCID_2 +#define CFE_TBL_VALID_PRID_COUNT CFE_PLATFORM_TBL_VALID_PRID_COUNT +#define CFE_TBL_VALID_PRID_1 CFE_PLATFORM_TBL_VALID_PRID_1 +#define CFE_TBL_VALID_PRID_2 CFE_PLATFORM_TBL_VALID_PRID_2 +#define CFE_TBL_VALID_PRID_3 CFE_PLATFORM_TBL_VALID_PRID_3 +#define CFE_TBL_VALID_PRID_4 CFE_PLATFORM_TBL_VALID_PRID_4 +#define CFE_ES_STARTUP_SYNC_POLL_MSEC CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC +#define CFE_CORE_MAX_STARTUP_MSEC CFE_PLATFORM_CORE_MAX_STARTUP_MSEC +#define CFE_ES_STARTUP_SCRIPT_TIMEOUT_MSEC CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC /* * This was previously configurable, now fixed. * Keeping it here will trigger a "redefined" warning if some mission * had configured it as "false" for some reason. */ -#define CFE_TIME_ENA_1HZ_CMD_PKT true - -#endif /* CFE_OMIT_DEPRECATED_6_6 */ +#define CFE_TIME_ENA_1HZ_CMD_PKT true -#endif /* _cfe_platform_cfg_ */ +#endif /* CFE_OMIT_DEPRECATED_6_6 */ +#endif /* _cfe_platform_cfg_ */ diff --git a/examples/cFS/sample_defs/cpu2_msgids.h b/examples/cFS/sample_defs/cpu2_msgids.h index df161a65..b9d51f93 100644 --- a/examples/cFS/sample_defs/cpu2_msgids.h +++ b/examples/cFS/sample_defs/cpu2_msgids.h @@ -3,56 +3,54 @@ #include "cfe_mission_cfg.h" -#define CFE_EVS_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_EVS_CMD_MSG /* 0x1901 */ - /* Message ID 0x1902 is available */ -#define CFE_SB_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_SB_CMD_MSG /* 0x1903 */ -#define CFE_TBL_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TBL_CMD_MSG /* 0x1904 */ -#define CFE_TIME_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TIME_CMD_MSG /* 0x1905 */ -#define CFE_ES_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_ES_CMD_MSG /* 0x1906 */ +#define CFE_EVS_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_EVS_CMD_MSG /* 0x1901 */ + /* Message ID 0x1902 is available */ +#define CFE_SB_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_SB_CMD_MSG /* 0x1903 */ +#define CFE_TBL_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TBL_CMD_MSG /* 0x1904 */ +#define CFE_TIME_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TIME_CMD_MSG /* 0x1905 */ +#define CFE_ES_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_ES_CMD_MSG /* 0x1906 */ -#define CFE_ES_SEND_HK_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_ES_SEND_HK_MSG /* 0x1908 */ -#define CFE_EVS_SEND_HK_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_EVS_SEND_HK_MSG /* 0x1909 */ - /* Message ID 0x190A is available */ -#define CFE_SB_SEND_HK_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_SB_SEND_HK_MSG /* 0x190B */ -#define CFE_TBL_SEND_HK_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TBL_SEND_HK_MSG /* 0x190C */ -#define CFE_TIME_SEND_HK_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TIME_SEND_HK_MSG /* 0x190D */ +#define CFE_ES_SEND_HK_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_ES_SEND_HK_MSG /* 0x1908 */ +#define CFE_EVS_SEND_HK_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_EVS_SEND_HK_MSG /* 0x1909 */ +/* Message ID 0x190A is available */ +#define CFE_SB_SEND_HK_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_SB_SEND_HK_MSG /* 0x190B */ +#define CFE_TBL_SEND_HK_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TBL_SEND_HK_MSG /* 0x190C */ +#define CFE_TIME_SEND_HK_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TIME_SEND_HK_MSG /* 0x190D */ #define CFE_SB_SUB_RPT_CTRL_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_SB_SUB_RPT_CTRL_MSG /* 0x190E */ -#define CFE_TIME_TONE_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TIME_TONE_CMD_MSG /* 0x1910 */ -#define CFE_TIME_1HZ_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TIME_1HZ_CMD_MSG /* 0x1911 */ - +#define CFE_TIME_TONE_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TIME_TONE_CMD_MSG /* 0x1910 */ +#define CFE_TIME_1HZ_CMD_MID CFE_MISSION_CMD_MID_BASE2 + CFE_MISSION_TIME_1HZ_CMD_MSG /* 0x1911 */ /* ** cFE Global Command Message Id's */ -#define CFE_TIME_DATA_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_DATA_CMD_MSG /* 0x1960 */ -#define CFE_TIME_SEND_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_SEND_CMD_MSG /* 0x1962 */ - +#define CFE_TIME_DATA_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_DATA_CMD_MSG /* 0x1960 */ +#define CFE_TIME_SEND_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_SEND_CMD_MSG /* 0x1962 */ /* ** CFE Telemetry Message Id's */ -#define CFE_ES_HK_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_ES_HK_TLM_MSG /* 0x0900 */ -#define CFE_EVS_HK_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_EVS_HK_TLM_MSG /* 0x0901 */ - /* Message ID 0x0902 is available */ -#define CFE_SB_HK_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_SB_HK_TLM_MSG /* 0x0903 */ -#define CFE_TBL_HK_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_TBL_HK_TLM_MSG /* 0x0904 */ -#define CFE_TIME_HK_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_TIME_HK_TLM_MSG /* 0x0905 */ -#define CFE_TIME_DIAG_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_TIME_DIAG_TLM_MSG /* 0x0906 */ -#define CFE_EVS_LONG_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_EVS_LONG_EVENT_MSG_MSG /* 0x0908 */ -#define CFE_EVS_SHORT_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_EVS_SHORT_EVENT_MSG_MSG /* 0x0909 */ -#define CFE_SB_STATS_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_SB_STATS_TLM_MSG /* 0x090A */ -#define CFE_ES_APP_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_ES_APP_TLM_MSG /* 0x090B */ -#define CFE_TBL_REG_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_TBL_REG_TLM_MSG /* 0x090C */ -#define CFE_SB_ALLSUBS_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_SB_ALLSUBS_TLM_MSG /* 0x090D */ -#define CFE_SB_ONESUB_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_SB_ONESUB_TLM_MSG /* 0x090E */ +#define CFE_ES_HK_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_ES_HK_TLM_MSG /* 0x0900 */ +#define CFE_EVS_HK_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_EVS_HK_TLM_MSG /* 0x0901 */ +/* Message ID 0x0902 is available */ +#define CFE_SB_HK_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_SB_HK_TLM_MSG /* 0x0903 */ +#define CFE_TBL_HK_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_TBL_HK_TLM_MSG /* 0x0904 */ +#define CFE_TIME_HK_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_TIME_HK_TLM_MSG /* 0x0905 */ +#define CFE_TIME_DIAG_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_TIME_DIAG_TLM_MSG /* 0x0906 */ +#define CFE_EVS_LONG_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_EVS_LONG_EVENT_MSG_MSG /* 0x0908 */ +#define CFE_EVS_SHORT_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_EVS_SHORT_EVENT_MSG_MSG /* 0x0909 */ +#define CFE_SB_STATS_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_SB_STATS_TLM_MSG /* 0x090A */ +#define CFE_ES_APP_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_ES_APP_TLM_MSG /* 0x090B */ +#define CFE_TBL_REG_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_TBL_REG_TLM_MSG /* 0x090C */ +#define CFE_SB_ALLSUBS_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_SB_ALLSUBS_TLM_MSG /* 0x090D */ +#define CFE_SB_ONESUB_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_SB_ONESUB_TLM_MSG /* 0x090E */ #ifndef CFE_OMIT_DEPRECATED_6_7 - #define CFE_ES_SHELL_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_ES_SHELL_TLM_MSG /* 0x090F */ +#define CFE_ES_SHELL_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_ES_SHELL_TLM_MSG /* 0x090F */ #endif -#define CFE_ES_MEMSTATS_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_ES_MEMSTATS_TLM_MSG /* 0x0910 */ +#define CFE_ES_MEMSTATS_TLM_MID CFE_MISSION_TLM_MID_BASE2 + CFE_MISSION_ES_MEMSTATS_TLM_MSG /* 0x0910 */ /* * MID definitions by these older names are required to make some existing apps compile @@ -60,7 +58,7 @@ */ #ifndef CFE_OMIT_DEPRECATED_6_6 -#define CFE_EVS_EVENT_MSG_MID CFE_EVS_LONG_EVENT_MSG_MID +#define CFE_EVS_EVENT_MSG_MID CFE_EVS_LONG_EVENT_MSG_MID #endif diff --git a/examples/cFS/sample_defs/cpu2_platform_cfg.h b/examples/cFS/sample_defs/cpu2_platform_cfg.h index 65946550..63ea4bab 100644 --- a/examples/cFS/sample_defs/cpu2_platform_cfg.h +++ b/examples/cFS/sample_defs/cpu2_platform_cfg.h @@ -65,8 +65,7 @@ ** This parameter has a lower limit of 1 and an upper limit of 1024. ** */ -#define CFE_PLATFORM_SB_MAX_MSG_IDS 256 - +#define CFE_PLATFORM_SB_MAX_MSG_IDS 256 /** ** \cfesbcfg Maximum Number of Unique Pipes SB Routing Table can hold @@ -83,8 +82,7 @@ ** or equal to OS_MAX_QUEUES. ** */ -#define CFE_PLATFORM_SB_MAX_PIPES 64 - +#define CFE_PLATFORM_SB_MAX_PIPES 64 /** ** \cfesbcfg Maximum Number of unique local destinations a single MsgId can have @@ -100,8 +98,7 @@ ** configuration are defined by a 16 bit data word. ** */ -#define CFE_PLATFORM_SB_MAX_DEST_PER_PKT 16 - +#define CFE_PLATFORM_SB_MAX_DEST_PER_PKT 16 /** ** \cfesbcfg Default Subscription Message Limit @@ -116,8 +113,7 @@ ** This parameter has a lower limit of 4 and an upper limit of 65535. ** */ -#define CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT 4 - +#define CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT 4 /** ** \cfesbcfg Size of the SB buffer memory pool @@ -139,8 +135,7 @@ ** This parameter has a lower limit of 512 and an upper limit of UINT_MAX (4 Gigabytes). ** */ -#define CFE_PLATFORM_SB_BUF_MEMORY_BYTES 524288 - +#define CFE_PLATFORM_SB_BUF_MEMORY_BYTES 524288 /** ** \cfesbcfg Maximum depth allowed when creating an SB pipe @@ -156,8 +151,7 @@ ** be verified. Pipe Depth values that are checked against this configuration ** are defined by a 16 bit data word. */ -#define CFE_PLATFORM_SB_MAX_PIPE_DEPTH 256 - +#define CFE_PLATFORM_SB_MAX_PIPE_DEPTH 256 /** ** \cfesbcfg Highest Valid Message Id @@ -185,7 +179,7 @@ ** below to it's maximum of 0xFFFF. ** The allocated message table is this size + 1 (could change based on implementaiton). */ -#define CFE_PLATFORM_SB_HIGHEST_VALID_MSGID 0x1FFF +#define CFE_PLATFORM_SB_HIGHEST_VALID_MSGID 0x1FFF /** ** \cfesbcfg Platform Endian Indicator @@ -210,8 +204,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME "/ram/cfe_sb_route.dat" - +#define CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME "/ram/cfe_sb_route.dat" /** ** \cfesbcfg Default Pipe Information Filename @@ -225,8 +218,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME "/ram/cfe_sb_pipe.dat" - +#define CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME "/ram/cfe_sb_pipe.dat" /** ** \cfesbcfg Default Message Map Filename @@ -243,8 +235,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME "/ram/cfe_sb_msgmap.dat" - +#define CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME "/ram/cfe_sb_msgmap.dat" /** ** \cfesbcfg SB Event Filtering @@ -261,30 +252,29 @@ ** This filtering applies only to SB events. ** These parameters have a lower limit of 0 and an upper limit of 65535. */ -#define CFE_PLATFORM_SB_FILTERED_EVENT1 CFE_SB_SEND_NO_SUBS_EID -#define CFE_PLATFORM_SB_FILTER_MASK1 CFE_EVS_FIRST_4_STOP - -#define CFE_PLATFORM_SB_FILTERED_EVENT2 CFE_SB_DUP_SUBSCRIP_EID -#define CFE_PLATFORM_SB_FILTER_MASK2 CFE_EVS_FIRST_4_STOP +#define CFE_PLATFORM_SB_FILTERED_EVENT1 CFE_SB_SEND_NO_SUBS_EID +#define CFE_PLATFORM_SB_FILTER_MASK1 CFE_EVS_FIRST_4_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT3 CFE_SB_MSGID_LIM_ERR_EID -#define CFE_PLATFORM_SB_FILTER_MASK3 CFE_EVS_FIRST_16_STOP +#define CFE_PLATFORM_SB_FILTERED_EVENT2 CFE_SB_DUP_SUBSCRIP_EID +#define CFE_PLATFORM_SB_FILTER_MASK2 CFE_EVS_FIRST_4_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT4 CFE_SB_Q_FULL_ERR_EID -#define CFE_PLATFORM_SB_FILTER_MASK4 CFE_EVS_FIRST_16_STOP +#define CFE_PLATFORM_SB_FILTERED_EVENT3 CFE_SB_MSGID_LIM_ERR_EID +#define CFE_PLATFORM_SB_FILTER_MASK3 CFE_EVS_FIRST_16_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT5 0 -#define CFE_PLATFORM_SB_FILTER_MASK5 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT4 CFE_SB_Q_FULL_ERR_EID +#define CFE_PLATFORM_SB_FILTER_MASK4 CFE_EVS_FIRST_16_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT6 0 -#define CFE_PLATFORM_SB_FILTER_MASK6 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT5 0 +#define CFE_PLATFORM_SB_FILTER_MASK5 CFE_EVS_NO_FILTER -#define CFE_PLATFORM_SB_FILTERED_EVENT7 0 -#define CFE_PLATFORM_SB_FILTER_MASK7 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT6 0 +#define CFE_PLATFORM_SB_FILTER_MASK6 CFE_EVS_NO_FILTER -#define CFE_PLATFORM_SB_FILTERED_EVENT8 0 -#define CFE_PLATFORM_SB_FILTER_MASK8 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT7 0 +#define CFE_PLATFORM_SB_FILTER_MASK7 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT8 0 +#define CFE_PLATFORM_SB_FILTER_MASK8 CFE_EVS_NO_FILTER /** ** \cfeescfg Define SB Memory Pool Block Sizes @@ -297,23 +287,23 @@ ** The number of block sizes defined cannot exceed ** #CFE_PLATFORM_ES_POOL_MAX_BUCKETS */ -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 8 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 16 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 20 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 36 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 64 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 96 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 128 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 160 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 256 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 512 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 1024 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 2048 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 4096 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 8192 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 16384 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 32768 -#define CFE_PLATFORM_SB_MAX_BLOCK_SIZE (CFE_MISSION_SB_MAX_SB_MSG_SIZE + 40) +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 8 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 16 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 20 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 36 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 64 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 96 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 128 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 160 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 256 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 512 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 1024 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 2048 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 4096 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 8192 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 16384 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 32768 +#define CFE_PLATFORM_SB_MAX_BLOCK_SIZE (CFE_MISSION_SB_MAX_SB_MSG_SIZE + 40) /** ** \cfesbcfg Define Default Sender Information Storage Mode @@ -327,8 +317,7 @@ ** There is a lower limit of 0 and an upper limit of 1 on this configuration ** paramater. */ -#define CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER 1 - +#define CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER 1 /** ** \cfetimecfg Time Server or Time Client Selection @@ -342,9 +331,8 @@ ** Enable one, and only one by defining either CFE_PLATFORM_TIME_CFG_SERVER or ** CFE_PLATFORM_TIME_CFG_CLIENT AS true. The other must be defined as false. */ -#define CFE_PLATFORM_TIME_CFG_SERVER true -#define CFE_PLATFORM_TIME_CFG_CLIENT false - +#define CFE_PLATFORM_TIME_CFG_SERVER true +#define CFE_PLATFORM_TIME_CFG_CLIENT false /** ** \cfetimecfg Time Tone In Big-Endian Order @@ -358,7 +346,6 @@ */ #undef CFE_PLATFORM_TIME_CFG_BIGENDIAN - /** ** \cfetimecfg Local MET or Virtual MET Selection for Time Servers ** @@ -377,8 +364,7 @@ ** \par Limits ** Only applies if #CFE_PLATFORM_TIME_CFG_SERVER is set to true. */ -#define CFE_PLATFORM_TIME_CFG_VIRTUAL true - +#define CFE_PLATFORM_TIME_CFG_VIRTUAL true /** ** \cfetimecfg Include or Exclude the Primary/Redundant Tone Selection Cmd @@ -393,8 +379,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_SIGNAL false - +#define CFE_PLATFORM_TIME_CFG_SIGNAL false /** ** \cfetimecfg Include or Exclude the Internal/External Time Source Selection Cmd @@ -414,8 +399,7 @@ ** \par Limits ** Only applies if #CFE_PLATFORM_TIME_CFG_SERVER is set to true. */ -#define CFE_PLATFORM_TIME_CFG_SOURCE false - +#define CFE_PLATFORM_TIME_CFG_SOURCE false /** ** \cfetimecfg Choose the External Time Source for Server only @@ -431,10 +415,9 @@ ** #CFE_PLATFORM_TIME_CFG_SRC_MET, #CFE_PLATFORM_TIME_CFG_SRC_GPS, #CFE_PLATFORM_TIME_CFG_SRC_TIME ** -# Only applies if #CFE_PLATFORM_TIME_CFG_SERVER is set to true. */ -#define CFE_PLATFORM_TIME_CFG_SRC_MET false -#define CFE_PLATFORM_TIME_CFG_SRC_GPS false -#define CFE_PLATFORM_TIME_CFG_SRC_TIME false - +#define CFE_PLATFORM_TIME_CFG_SRC_MET false +#define CFE_PLATFORM_TIME_CFG_SRC_GPS false +#define CFE_PLATFORM_TIME_CFG_SRC_TIME false /** ** \cfetimecfg Define the Max Delta Limits for Time Servers using an Ext Time Source @@ -453,9 +436,8 @@ ** Applies only if both #CFE_PLATFORM_TIME_CFG_SERVER and #CFE_PLATFORM_TIME_CFG_SOURCE are set ** to true. */ -#define CFE_PLATFORM_TIME_MAX_DELTA_SECS 0 -#define CFE_PLATFORM_TIME_MAX_DELTA_SUBS 500000 - +#define CFE_PLATFORM_TIME_MAX_DELTA_SECS 0 +#define CFE_PLATFORM_TIME_MAX_DELTA_SUBS 500000 /** ** \cfetimecfg Define the Local Clock Rollover Value in seconds and subseconds @@ -467,9 +449,8 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_MAX_LOCAL_SECS 27 -#define CFE_PLATFORM_TIME_MAX_LOCAL_SUBS 0 - +#define CFE_PLATFORM_TIME_MAX_LOCAL_SECS 27 +#define CFE_PLATFORM_TIME_MAX_LOCAL_SUBS 0 /** ** \cfetimecfg Define Timing Limits From One Tone To The Next @@ -483,9 +464,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_TONE_LIMIT 20000 - - +#define CFE_PLATFORM_TIME_CFG_TONE_LIMIT 20000 /** ** \cfetimecfg Define Time to Start Flywheel Since Last Tone @@ -497,8 +476,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_START_FLY 2 - +#define CFE_PLATFORM_TIME_CFG_START_FLY 2 /** ** \cfetimecfg Define Periodic Time to Update Local Clock Tone Latch @@ -511,8 +489,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_LATCH_FLY 8 - +#define CFE_PLATFORM_TIME_CFG_LATCH_FLY 8 /** ** \cfeescfg Define Max Number of Applications @@ -530,7 +507,6 @@ */ #define CFE_PLATFORM_ES_MAX_APPLICATIONS 32 - /** ** \cfeescfg Define Max Number of Shared libraries ** @@ -570,8 +546,7 @@ ** in the error log. Any context information beyond this size will ** be truncated. */ -#define CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE 256 - +#define CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE 256 /** ** \cfeescfg Define Size of the cFE System Log. @@ -586,8 +561,7 @@ ** however, the maximum system log size is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_SYSTEM_LOG_SIZE 3072 - +#define CFE_PLATFORM_ES_SYSTEM_LOG_SIZE 3072 /** ** \cfeescfg Define Number of entries in the ES Object table @@ -601,8 +575,7 @@ ** however, the maximum object table size is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_OBJECT_TABLE_SIZE 30 - +#define CFE_PLATFORM_ES_OBJECT_TABLE_SIZE 30 /** ** \cfeescfg Define Max Number of Generic Counters @@ -613,8 +586,7 @@ ** \par Limits ** This parameter has a lower limit of 1 and an upper limit of 65535. */ -#define CFE_PLATFORM_ES_MAX_GEN_COUNTERS 8 - +#define CFE_PLATFORM_ES_MAX_GEN_COUNTERS 8 /** ** \cfeescfg Define ES Application Control Scan Rate @@ -635,7 +607,6 @@ */ #define CFE_PLATFORM_ES_APP_SCAN_RATE 1000 - /** ** \cfeescfg Define ES Application Kill Timeout ** @@ -665,7 +636,6 @@ */ #define CFE_PLATFORM_ES_APP_KILL_TIMEOUT 5 - /** ** \cfeescfg ES Ram Disk Sector Size ** @@ -682,8 +652,7 @@ ** however, the maximum RAM disk sector size is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE 512 - +#define CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE 512 /** ** \cfeescfg ES Ram Disk Number of Sectors @@ -701,7 +670,7 @@ ** however, the maximum number of RAM sectors is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS 4096 +#define CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS 4096 /** ** \cfeescfg Percentage of Ram Disk Reserved for Decompressing Apps @@ -727,7 +696,6 @@ */ #define CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED 30 - /** ** \cfeescfg RAM Disk Mount string ** @@ -744,7 +712,6 @@ */ #define CFE_PLATFORM_ES_RAM_DISK_MOUNT_STRING "/ram" - /** ** \cfeescfg Define Critical Data Store Size ** @@ -760,8 +727,7 @@ ** There is a lower limit of 8192 and an upper limit of UINT_MAX (4 Gigabytes) ** on this configuration paramater. */ -#define CFE_PLATFORM_ES_CDS_SIZE ( 128 * 1024 ) - +#define CFE_PLATFORM_ES_CDS_SIZE (128 * 1024) /** ** \cfeescfg Define User Reserved Memory Size @@ -781,8 +747,7 @@ ** There is a lower limit of 1024 and an upper limit of UINT_MAX (4 Gigabytes) ** on this configuration paramater. */ -#define CFE_PLATFORM_ES_USER_RESERVED_SIZE ( 1024 * 1024 ) - +#define CFE_PLATFORM_ES_USER_RESERVED_SIZE (1024 * 1024) /** ** \cfeescfg Define ES Reset Area Size @@ -805,7 +770,7 @@ ** There is a lower limit of 153600 (150KBytes) and an upper limit of UINT_MAX ** (4 Gigabytes) on this configuration paramater. */ -#define CFE_PLATFORM_ES_RESET_AREA_SIZE ( 170 * 1024 ) +#define CFE_PLATFORM_ES_RESET_AREA_SIZE (170 * 1024) /** ** \cfeescfg Define Memory Pool Alignment Size @@ -824,8 +789,7 @@ ** \par Limits ** This must always be a power of 2, as it is used as a binary address mask. */ -#define CFE_PLATFORM_ES_MEMPOOL_ALIGN_SIZE_MIN 4 - +#define CFE_PLATFORM_ES_MEMPOOL_ALIGN_SIZE_MIN 4 /** ** \cfeescfg ES Nonvolatile Startup Filename @@ -839,8 +803,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_NONVOL_STARTUP_FILE "/cf/cfe_es_startup.scr" - +#define CFE_PLATFORM_ES_NONVOL_STARTUP_FILE "/cf/cfe_es_startup.scr" /** ** \cfeescfg ES Volatile Startup Filename @@ -854,7 +817,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE "/ram/cfe_es_startup.scr" +#define CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE "/ram/cfe_es_startup.scr" /** ** \cfeescfg Default Shell Filename @@ -870,8 +833,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME "/ram/ShellCmd.out" - +#define CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME "/ram/ShellCmd.out" /** ** \cfeescfg Define Max Shell Command Size @@ -883,8 +845,7 @@ ** There is a lower limit of 64 and an upper limit of #OS_MAX_CMD_LEN. Units are ** characters. */ -#define CFE_PLATFORM_ES_MAX_SHELL_CMD 64 - +#define CFE_PLATFORM_ES_MAX_SHELL_CMD 64 /** ** \cfeescfg Define Shell Command Telemetry Pkt Segment Size @@ -899,7 +860,7 @@ ** \par Limits ** There is a lower limit of 32 and an upper limit of #CFE_SB_MAX_SB_MSG_SIZE. */ -#define CFE_PLATFORM_ES_MAX_SHELL_PKT 64 +#define CFE_PLATFORM_ES_MAX_SHELL_PKT 64 /** ** \cfeescfg Define OS Task Delay Value for ES Shell Command @@ -917,7 +878,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_ES_SHELL_OS_DELAY_MILLISEC 200 +#define CFE_PLATFORM_ES_SHELL_OS_DELAY_MILLISEC 200 /** ** \cfeescfg Default Application Information Filename @@ -932,7 +893,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE "/ram/cfe_es_app_info.log" +#define CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE "/ram/cfe_es_app_info.log" /** ** \cfeescfg Default Application Information Filename @@ -947,7 +908,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE "/ram/cfe_es_task_info.log" +#define CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE "/ram/cfe_es_task_info.log" /** ** \cfeescfg Default System Log Filename @@ -963,7 +924,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE "/ram/cfe_es_syslog.log" +#define CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE "/ram/cfe_es_syslog.log" /** ** \cfeescfg Default Exception and Reset (ER) Log Filename @@ -978,7 +939,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE "/ram/cfe_erlog.log" +#define CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE "/ram/cfe_erlog.log" /** ** \cfeescfg Default Performance Data Filename @@ -992,8 +953,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME "/ram/cfe_es_perf.dat" - +#define CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME "/ram/cfe_es_perf.dat" /** ** \cfeescfg Default Critical Data Store Registry Filename @@ -1007,7 +967,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE "/ram/cfe_cds_reg.log" +#define CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE "/ram/cfe_cds_reg.log" /** ** \cfeescfg Define Default System Log Mode following Power On Reset @@ -1025,7 +985,7 @@ ** There is a lower limit of 0 and an upper limit of 1 on this configuration ** paramater. */ -#define CFE_PLATFORM_ES_DEFAULT_POR_SYSLOG_MODE 0 +#define CFE_PLATFORM_ES_DEFAULT_POR_SYSLOG_MODE 0 /** ** \cfeescfg Define Default System Log Mode following Processor Reset @@ -1043,7 +1003,7 @@ ** There is a lower limit of 0 and an upper limit of 1 on this configuration ** paramater. */ -#define CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE 1 +#define CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE 1 /** ** \cfeescfg Define Max Number of Performance IDs @@ -1056,7 +1016,7 @@ ** This number must always be divisible by 32. There is a lower limit of 32 and ** an upper limit of 512 on this configuration paramater. */ -#define CFE_PLATFORM_ES_PERF_MAX_IDS 128 +#define CFE_PLATFORM_ES_PERF_MAX_IDS 128 /** ** \cfeescfg Define Max Size of Performance Data Buffer @@ -1072,8 +1032,7 @@ ** The units are number of entries. An entry is defined by a 32 bit data word followed ** by a 64 bit time stamp. */ -#define CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE 10000 - +#define CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE 10000 /** ** \cfeescfg Define Filter Mask Setting for Disabling All Performance Entries @@ -1083,7 +1042,7 @@ ** bit mask. For each bit, 0 means the corresponding entry is disabled and ** 1 means it is enabled. */ -#define CFE_PLATFORM_ES_PERF_FILTMASK_NONE 0 +#define CFE_PLATFORM_ES_PERF_FILTMASK_NONE 0 /** ** \cfeescfg Define Filter Mask Setting for Enabling All Performance Entries @@ -1093,7 +1052,7 @@ ** bit mask. For each bit, 0 means the corresponding entry is disabled and ** 1 means it is enabled. */ -#define CFE_PLATFORM_ES_PERF_FILTMASK_ALL ~CFE_PLATFORM_ES_PERF_FILTMASK_NONE +#define CFE_PLATFORM_ES_PERF_FILTMASK_ALL ~CFE_PLATFORM_ES_PERF_FILTMASK_NONE /** ** \cfeescfg Define Default Filter Mask Setting for Performance Data Buffer @@ -1104,8 +1063,7 @@ ** means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_ALL - +#define CFE_PLATFORM_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_ALL /** ** \cfeescfg Define Default Filter Trigger Setting for Disabling All Performance Entries @@ -1116,7 +1074,7 @@ ** disabled and 1 means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_TRIGMASK_NONE 0 +#define CFE_PLATFORM_ES_PERF_TRIGMASK_NONE 0 /** ** \cfeescfg Define Filter Trigger Setting for Enabling All Performance Entries @@ -1127,7 +1085,7 @@ ** disabled and 1 means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_TRIGMASK_ALL ~CFE_PLATFORM_ES_PERF_TRIGMASK_NONE +#define CFE_PLATFORM_ES_PERF_TRIGMASK_ALL ~CFE_PLATFORM_ES_PERF_TRIGMASK_NONE /** ** \cfeescfg Define Default Filter Trigger Setting for Performance Data Buffer @@ -1138,7 +1096,7 @@ ** disabled and 1 means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_NONE +#define CFE_PLATFORM_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_NONE /** ** \cfeescfg Define Performance Analyzer Child Task Priority @@ -1153,7 +1111,7 @@ ** Valid range for a child task is 1 to 255 however, the priority cannot ** be higher (lower number) than the ES parent application priority. */ -#define CFE_PLATFORM_ES_PERF_CHILD_PRIORITY 200 +#define CFE_PLATFORM_ES_PERF_CHILD_PRIORITY 200 /** ** \cfeescfg Define Performance Analyzer Child Task Stack Size @@ -1167,7 +1125,7 @@ ** is limited by the maximum value allowed by the data type. In this case, the data ** type is an unsigned 32-bit integer, so the valid range is 0 to 0xFFFFFFFF. */ -#define CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE 4096 +#define CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE 4096 /** ** \cfeescfg Define Performance Analyzer Child Task Delay @@ -1182,7 +1140,7 @@ ** is limited by the maximum value allowed by the data type. In this case, the data ** type is an unsigned 32-bit integer, so the valid range is 0 to 0xFFFFFFFF. */ -#define CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY 20 +#define CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY 20 /** ** \cfeescfg Define Performance Analyzer Child Task Number of Entries Between Delay @@ -1192,7 +1150,7 @@ ** Analyzer Child Task will write to the file between delays. ** */ -#define CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS 50 +#define CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS 50 /** ** \cfeescfg Define Default Stack Size for an Application @@ -1219,7 +1177,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_EVS_START_TASK_PRIORITY 61 +#define CFE_PLATFORM_EVS_START_TASK_PRIORITY 61 /** ** \cfeescfg Define EVS Task Stack Size @@ -1234,7 +1192,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfeescfg Define SB Task Priority @@ -1245,7 +1203,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_SB_START_TASK_PRIORITY 64 +#define CFE_PLATFORM_SB_START_TASK_PRIORITY 64 /** ** \cfeescfg Define SB Task Stack Size @@ -1260,7 +1218,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_SB_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_SB_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfeescfg Define ES Task Priority @@ -1271,7 +1229,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_ES_START_TASK_PRIORITY 68 +#define CFE_PLATFORM_ES_START_TASK_PRIORITY 68 /** ** \cfeescfg Define ES Task Stack Size @@ -1286,7 +1244,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfetimecfg Define TIME Task Priorities @@ -1301,9 +1259,9 @@ ** configuration paramaters. Remember that the meaning of each task ** priority is inverted -- a "lower" number has a "higher" priority. */ -#define CFE_PLATFORM_TIME_START_TASK_PRIORITY 60 -#define CFE_PLATFORM_TIME_TONE_TASK_PRIORITY 25 -#define CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY 25 +#define CFE_PLATFORM_TIME_START_TASK_PRIORITY 60 +#define CFE_PLATFORM_TIME_TONE_TASK_PRIORITY 25 +#define CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY 25 /** ** \cfetimecfg Define TIME Task Stack Sizes @@ -1320,9 +1278,9 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE -#define CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE 4096 -#define CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE 8192 +#define CFE_PLATFORM_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE 4096 +#define CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE 8192 /** ** \cfeescfg Define TBL Task Priority @@ -1333,7 +1291,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TBL_START_TASK_PRIORITY 70 +#define CFE_PLATFORM_TBL_START_TASK_PRIORITY 70 /** ** \cfeescfg Define TBL Task Stack Size @@ -1348,7 +1306,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfeescfg Define Maximum Number of Registered CDS Blocks @@ -1361,8 +1319,7 @@ ** however, the maximum number of CDS entries is system dependent and ** should be verified. */ -#define CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES 512 - +#define CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES 512 /** ** \cfeescfg Define Number of Processor Resets Before a Power On Reset @@ -1377,8 +1334,7 @@ ** however, the maximum number of processor resets may be system dependent and ** should be verified. */ -#define CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS 2 - +#define CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS 2 /** ** \cfeescfg Define Default ES Memory Pool Block Sizes @@ -1398,24 +1354,23 @@ ** enforced although the table size definitions may be reduced. Refer to the CFS ** Deployment Guide for information about removing CFE Table Services from the CFE. */ -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 8 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 16 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 32 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 48 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 64 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 96 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 128 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 160 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 256 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 512 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 1024 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 2048 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 4096 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 8192 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 16384 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 32768 -#define CFE_PLATFORM_ES_MAX_BLOCK_SIZE 80000 - +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 8 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 16 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 32 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 48 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 64 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 96 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 128 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 160 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 256 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 512 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 1024 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 2048 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 4096 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 8192 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 16384 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 32768 +#define CFE_PLATFORM_ES_MAX_BLOCK_SIZE 80000 /** ** \cfeescfg Define ES Critical Data Store Memory Pool Block Sizes @@ -1426,25 +1381,23 @@ ** \par Limits ** These sizes MUST be increasing and MUST be an integral multiple of 4. */ -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 8 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 16 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 32 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 48 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 64 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 96 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 128 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 160 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 256 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 512 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 1024 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 2048 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 4096 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 8192 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 16384 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 32768 -#define CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE 80000 - - +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 8 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 16 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 32 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 48 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 64 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 96 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 128 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 160 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 256 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 512 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 1024 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 2048 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 4096 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 8192 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 16384 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 32768 +#define CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE 80000 /** ** \cfeevscfg Define Maximum Number of Event Filters per Application @@ -1457,8 +1410,7 @@ ** the maximum number of event filters is system dependent and should be ** verified. */ -#define CFE_PLATFORM_EVS_MAX_EVENT_FILTERS 8 - +#define CFE_PLATFORM_EVS_MAX_EVENT_FILTERS 8 /** ** \cfeevscfg Enable or Disable EVS Local Event Log @@ -1473,7 +1425,6 @@ */ #define CFE_PLATFORM_EVS_LOG_ON - /** ** \cfeevscfg Default Event Log Filename ** @@ -1486,8 +1437,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_EVS_DEFAULT_LOG_FILE "/ram/cfe_evs.log" - +#define CFE_PLATFORM_EVS_DEFAULT_LOG_FILE "/ram/cfe_evs.log" /** ** \cfeevscfg Maximum Number of Events in EVS Local Event Log @@ -1499,8 +1449,7 @@ ** There are no restrictions on the lower and upper limits however, ** the maximum log size is system dependent and should be verified. */ -#define CFE_PLATFORM_EVS_LOG_MAX 20 - +#define CFE_PLATFORM_EVS_LOG_MAX 20 /** ** \cfeevscfg Default EVS Application Data Filename @@ -1515,8 +1464,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE "/ram/cfe_evs_app.dat" - +#define CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE "/ram/cfe_evs_app.dat" /** ** \cfeevscfg Default EVS Output Port State @@ -1530,8 +1478,7 @@ ** \par Limits ** The valid settings are 0x0 to 0xF. */ -#define CFE_PLATFORM_EVS_PORT_DEFAULT 0x0001 - +#define CFE_PLATFORM_EVS_PORT_DEFAULT 0x0001 /** ** \cfeevscfg Default EVS Event Type Filter Mask @@ -1548,9 +1495,7 @@ ** \par Limits ** The valid settings are 0x0 to 0xF. */ -#define CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG 0xE - - +#define CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG 0xE /** ** \cfeevscfg Default EVS Local Event Log Mode @@ -1566,8 +1511,7 @@ ** \par Limits ** The valid settings are 0 or 1 */ -#define CFE_PLATFORM_EVS_DEFAULT_LOG_MODE 1 - +#define CFE_PLATFORM_EVS_DEFAULT_LOG_MODE 1 /** ** \cfeevscfg Default EVS Message Format Mode @@ -1582,8 +1526,6 @@ */ #define CFE_PLATFORM_EVS_DEFAULT_MSG_FORMAT_MODE CFE_EVS_MsgFormat_LONG - - /* Platform Configuration Parameters for Table Service (TBL) */ /** @@ -1598,7 +1540,7 @@ ** \par Limits ** The cFE does not place a limit on the size of this parameter. */ -#define CFE_PLATFORM_TBL_BUF_MEMORY_BYTES 524288 +#define CFE_PLATFORM_TBL_BUF_MEMORY_BYTES 524288 /** ** \cfetblcfg Maximum Size Allowed for a Double Buffered Table @@ -1610,7 +1552,7 @@ ** The cFE does not place a limit on the size of this parameter but it must be ** less than half of #CFE_PLATFORM_TBL_BUF_MEMORY_BYTES. */ -#define CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE 16384 +#define CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE 16384 /** ** \cfetblcfg Maximum Size Allowed for a Single Buffered Table @@ -1626,7 +1568,7 @@ ** small enough to allow for #CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS number of tables ** to fit into #CFE_PLATFORM_TBL_BUF_MEMORY_BYTES. */ -#define CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE 16384 +#define CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE 16384 /** ** \cfetblcfg Maximum Number of Tables Allowed to be Registered @@ -1639,7 +1581,7 @@ ** determines the size of the Table Registry. An excessively high number will waste ** memory. */ -#define CFE_PLATFORM_TBL_MAX_NUM_TABLES 128 +#define CFE_PLATFORM_TBL_MAX_NUM_TABLES 128 /** ** \cfetblcfg Maximum Number of Critical Tables that can be Registered @@ -1653,7 +1595,7 @@ ** Data Store. An excessively high number will waste Critical Data Store memory. Therefore, ** this number must not exceed the value defined in CFE_ES_CDS_MAX_CRITICAL_TABLES. */ -#define CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES 32 +#define CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES 32 /** ** \cfetblcfg Maximum Number of Table Handles @@ -1666,7 +1608,7 @@ ** the number of tables (#CFE_PLATFORM_TBL_MAX_NUM_TABLES) and should be set higher if tables ** are shared between applications. */ -#define CFE_PLATFORM_TBL_MAX_NUM_HANDLES 256 +#define CFE_PLATFORM_TBL_MAX_NUM_HANDLES 256 /** ** \cfetblcfg Maximum Number of Simultaneous Loads to Support @@ -1681,7 +1623,7 @@ ** degrade system performance and waste memory. A number less than 5 is ** suggested but not required. */ -#define CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS 4 +#define CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS 4 /** ** \cfetblcfg Maximum Number of Simultaneous Table Validations @@ -1699,7 +1641,7 @@ ** degrade system performance and waste memory. A number less than 20 is ** suggested but not required. */ -#define CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS 10 +#define CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS 10 /** ** \cfetblcfg Default Filename for a Table Registry Dump @@ -1712,7 +1654,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE "/ram/cfe_tbl_reg.log" +#define CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE "/ram/cfe_tbl_reg.log" /** ** \cfetblcfg Number of Spacecraft ID's specified for validation @@ -1731,14 +1673,11 @@ ** This number must be greater than or equal to zero and ** less than or equal to 2. */ -#define CFE_PLATFORM_TBL_VALID_SCID_COUNT 0 +#define CFE_PLATFORM_TBL_VALID_SCID_COUNT 0 /* macro to construct 32 bit value from 4 chars */ -#define CFE_PLATFORM_TBL_U32FROM4CHARS( _C1, _C2, _C3, _C4 ) \ - ( (uint32)(_C1) << 24 | \ - (uint32)(_C2) << 16 | \ - (uint32)(_C3) << 8 | \ - (uint32)(_C4) ) +#define CFE_PLATFORM_TBL_U32FROM4CHARS(_C1, _C2, _C3, _C4) \ + ((uint32)(_C1) << 24 | (uint32)(_C2) << 16 | (uint32)(_C3) << 8 | (uint32)(_C4)) /** ** \cfetblcfg Spacecraft ID values used for table load validation @@ -1752,8 +1691,8 @@ ** \par Limits ** This value can be any 32 bit unsigned integer. */ -#define CFE_PLATFORM_TBL_VALID_SCID_1 (CFE_MISSION_SPACECRAFT_ID) -#define CFE_PLATFORM_TBL_VALID_SCID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) +#define CFE_PLATFORM_TBL_VALID_SCID_1 (CFE_MISSION_SPACECRAFT_ID) +#define CFE_PLATFORM_TBL_VALID_SCID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) /** ** \cfetblcfg Number of Processor ID's specified for validation @@ -1772,7 +1711,7 @@ ** This number must be greater than or equal to zero and ** less than or equal to 4. */ -#define CFE_PLATFORM_TBL_VALID_PRID_COUNT 0 +#define CFE_PLATFORM_TBL_VALID_PRID_COUNT 0 /** ** \cfetblcfg Processor ID values used for table load validation @@ -1786,10 +1725,10 @@ ** \par Limits ** This value can be any 32 bit unsigned integer. */ -#define CFE_PLATFORM_TBL_VALID_PRID_1 (CFE_PLATFORM_CPU_ID) -#define CFE_PLATFORM_TBL_VALID_PRID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) -#define CFE_PLATFORM_TBL_VALID_PRID_3 0 -#define CFE_PLATFORM_TBL_VALID_PRID_4 0 +#define CFE_PLATFORM_TBL_VALID_PRID_1 (CFE_PLATFORM_CPU_ID) +#define CFE_PLATFORM_TBL_VALID_PRID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) +#define CFE_PLATFORM_TBL_VALID_PRID_3 0 +#define CFE_PLATFORM_TBL_VALID_PRID_4 0 /** \cfeescfg Mission specific version number for cFE ** @@ -1804,7 +1743,7 @@ ** Must be defined as a numeric value that is greater than ** or equal to zero. */ -#define CFE_MISSION_REV 0 +#define CFE_MISSION_REV 0 /** \cfeescfg Poll timer for startup sync delay ** @@ -1826,7 +1765,7 @@ ** Must be defined as an integer value that is greater than ** or equal to zero. */ -#define CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC 50 +#define CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC 50 /** \cfeescfg CFE core application startup timeout ** @@ -1850,7 +1789,7 @@ ** or equal to zero. ** */ -#define CFE_PLATFORM_CORE_MAX_STARTUP_MSEC 30000 +#define CFE_PLATFORM_CORE_MAX_STARTUP_MSEC 30000 /** \cfeescfg Startup script timeout ** @@ -1867,9 +1806,8 @@ ** \par Limits: ** Must be defined as an integer value that is greater than ** or equal to zero. - */ -#define CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC 1000 - +*/ +#define CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC 1000 /* * Compatibility layer for CFE release 6.6 @@ -1886,198 +1824,197 @@ */ #ifndef CFE_OMIT_DEPRECATED_6_6 -#define CFE_CPU_ID CFE_PLATFORM_CPU_ID -#define CFE_CPU_NAME CFE_PLATFORM_CPU_NAME -#define CFE_SB_MAX_MSG_IDS CFE_PLATFORM_SB_MAX_MSG_IDS -#define CFE_SB_MAX_PIPES CFE_PLATFORM_SB_MAX_PIPES -#define CFE_SB_MAX_DEST_PER_PKT CFE_PLATFORM_SB_MAX_DEST_PER_PKT -#define CFE_SB_DEFAULT_MSG_LIMIT CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT -#define CFE_SB_BUF_MEMORY_BYTES CFE_PLATFORM_SB_BUF_MEMORY_BYTES -#define CFE_SB_MAX_PIPE_DEPTH CFE_PLATFORM_SB_MAX_PIPE_DEPTH -#define CFE_SB_HIGHEST_VALID_MSGID CFE_PLATFORM_SB_HIGHEST_VALID_MSGID -#define CFE_SB_DEFAULT_ROUTING_FILENAME CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME -#define CFE_SB_DEFAULT_PIPE_FILENAME CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME -#define CFE_SB_DEFAULT_MAP_FILENAME CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME -#define CFE_SB_FILTERED_EVENT1 CFE_PLATFORM_SB_FILTERED_EVENT1 -#define CFE_SB_FILTER_MASK1 CFE_PLATFORM_SB_FILTER_MASK1 -#define CFE_SB_FILTERED_EVENT2 CFE_PLATFORM_SB_FILTERED_EVENT2 -#define CFE_SB_FILTER_MASK2 CFE_PLATFORM_SB_FILTER_MASK2 -#define CFE_SB_FILTERED_EVENT3 CFE_PLATFORM_SB_FILTERED_EVENT3 -#define CFE_SB_FILTER_MASK3 CFE_PLATFORM_SB_FILTER_MASK3 -#define CFE_SB_FILTERED_EVENT4 CFE_PLATFORM_SB_FILTERED_EVENT4 -#define CFE_SB_FILTER_MASK4 CFE_PLATFORM_SB_FILTER_MASK4 -#define CFE_SB_FILTERED_EVENT5 CFE_PLATFORM_SB_FILTERED_EVENT5 -#define CFE_SB_FILTER_MASK5 CFE_PLATFORM_SB_FILTER_MASK5 -#define CFE_SB_FILTERED_EVENT6 CFE_PLATFORM_SB_FILTERED_EVENT6 -#define CFE_SB_FILTER_MASK6 CFE_PLATFORM_SB_FILTER_MASK6 -#define CFE_SB_FILTERED_EVENT7 CFE_PLATFORM_SB_FILTERED_EVENT7 -#define CFE_SB_FILTER_MASK7 CFE_PLATFORM_SB_FILTER_MASK7 -#define CFE_SB_FILTERED_EVENT8 CFE_PLATFORM_SB_FILTERED_EVENT8 -#define CFE_SB_FILTER_MASK8 CFE_PLATFORM_SB_FILTER_MASK8 -#define CFE_SB_MEM_BLOCK_SIZE_01 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 -#define CFE_SB_MEM_BLOCK_SIZE_02 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 -#define CFE_SB_MEM_BLOCK_SIZE_03 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 -#define CFE_SB_MEM_BLOCK_SIZE_04 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 -#define CFE_SB_MEM_BLOCK_SIZE_05 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 -#define CFE_SB_MEM_BLOCK_SIZE_06 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 -#define CFE_SB_MEM_BLOCK_SIZE_07 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 -#define CFE_SB_MEM_BLOCK_SIZE_08 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 -#define CFE_SB_MEM_BLOCK_SIZE_09 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 -#define CFE_SB_MEM_BLOCK_SIZE_10 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 -#define CFE_SB_MEM_BLOCK_SIZE_11 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 -#define CFE_SB_MEM_BLOCK_SIZE_12 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 -#define CFE_SB_MEM_BLOCK_SIZE_13 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 -#define CFE_SB_MEM_BLOCK_SIZE_14 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 -#define CFE_SB_MEM_BLOCK_SIZE_15 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 -#define CFE_SB_MEM_BLOCK_SIZE_16 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 -#define CFE_SB_MAX_BLOCK_SIZE CFE_PLATFORM_SB_MAX_BLOCK_SIZE -#define CFE_SB_DEFAULT_REPORT_SENDER CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER -#define CFE_TIME_CFG_SERVER CFE_PLATFORM_TIME_CFG_SERVER -#define CFE_TIME_CFG_CLIENT CFE_PLATFORM_TIME_CFG_CLIENT -#define CFE_TIME_CFG_VIRTUAL CFE_PLATFORM_TIME_CFG_VIRTUAL -#define CFE_TIME_CFG_SIGNAL CFE_PLATFORM_TIME_CFG_SIGNAL -#define CFE_TIME_CFG_SOURCE CFE_PLATFORM_TIME_CFG_SOURCE -#define CFE_TIME_CFG_SRC_MET CFE_PLATFORM_TIME_CFG_SRC_MET -#define CFE_TIME_CFG_SRC_GPS CFE_PLATFORM_TIME_CFG_SRC_GPS -#define CFE_TIME_CFG_SRC_TIME CFE_PLATFORM_TIME_CFG_SRC_TIME -#define CFE_TIME_MAX_DELTA_SECS CFE_PLATFORM_TIME_MAX_DELTA_SECS -#define CFE_TIME_MAX_DELTA_SUBS CFE_PLATFORM_TIME_MAX_DELTA_SUBS -#define CFE_TIME_MAX_LOCAL_SECS CFE_PLATFORM_TIME_MAX_LOCAL_SECS -#define CFE_TIME_MAX_LOCAL_SUBS CFE_PLATFORM_TIME_MAX_LOCAL_SUBS -#define CFE_TIME_CFG_TONE_LIMIT CFE_PLATFORM_TIME_CFG_TONE_LIMIT -#define CFE_TIME_CFG_START_FLY CFE_PLATFORM_TIME_CFG_START_FLY -#define CFE_TIME_CFG_LATCH_FLY CFE_PLATFORM_TIME_CFG_LATCH_FLY -#define CFE_ES_MAX_APPLICATIONS CFE_PLATFORM_ES_MAX_APPLICATIONS -#define CFE_ES_MAX_LIBRARIES CFE_PLATFORM_ES_MAX_LIBRARIES -#define CFE_ES_ER_LOG_ENTRIES CFE_PLATFORM_ES_ER_LOG_ENTRIES -#define CFE_ES_ER_LOG_MAX_CONTEXT_SIZE CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE -#define CFE_ES_SYSTEM_LOG_SIZE CFE_PLATFORM_ES_SYSTEM_LOG_SIZE -#define CFE_ES_OBJECT_TABLE_SIZE CFE_PLATFORM_ES_OBJECT_TABLE_SIZE -#define CFE_ES_MAX_GEN_COUNTERS CFE_PLATFORM_ES_MAX_GEN_COUNTERS -#define CFE_ES_APP_SCAN_RATE CFE_PLATFORM_ES_APP_SCAN_RATE -#define CFE_ES_APP_KILL_TIMEOUT CFE_PLATFORM_ES_APP_KILL_TIMEOUT -#define CFE_ES_RAM_DISK_SECTOR_SIZE CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE -#define CFE_ES_RAM_DISK_NUM_SECTORS CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS -#define CFE_ES_RAM_DISK_PERCENT_RESERVED CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED -#define CFE_ES_RAM_DISK_MOUNT_STRING CFE_PLATFORM_ES_RAM_DISK_MOUNT_STRING -#define CFE_ES_CDS_SIZE CFE_PLATFORM_ES_CDS_SIZE -#define CFE_ES_USER_RESERVED_SIZE CFE_PLATFORM_ES_USER_RESERVED_SIZE -#define CFE_ES_RESET_AREA_SIZE CFE_PLATFORM_ES_RESET_AREA_SIZE -#define CFE_ES_NONVOL_STARTUP_FILE CFE_PLATFORM_ES_NONVOL_STARTUP_FILE -#define CFE_ES_VOLATILE_STARTUP_FILE CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE -#define CFE_ES_DEFAULT_SHELL_FILENAME CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME -#define CFE_ES_MAX_SHELL_CMD CFE_PLATFORM_ES_MAX_SHELL_CMD -#define CFE_ES_MAX_SHELL_PKT CFE_PLATFORM_ES_MAX_SHELL_PKT -#define CFE_ES_DEFAULT_APP_LOG_FILE CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE -#define CFE_ES_DEFAULT_TASK_LOG_FILE CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE -#define CFE_ES_DEFAULT_SYSLOG_FILE CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE -#define CFE_ES_DEFAULT_ER_LOG_FILE CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE -#define CFE_ES_DEFAULT_PERF_DUMP_FILENAME CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME -#define CFE_ES_DEFAULT_CDS_REG_DUMP_FILE CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE -#define CFE_ES_DEFAULT_SYSLOG_MODE CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE -#define CFE_ES_PERF_MAX_IDS CFE_PLATFORM_ES_PERF_MAX_IDS -#define CFE_ES_PERF_DATA_BUFFER_SIZE CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE -#define CFE_ES_PERF_FILTMASK_NONE CFE_PLATFORM_ES_PERF_FILTMASK_NONE -#define CFE_ES_PERF_FILTMASK_ALL CFE_PLATFORM_ES_PERF_FILTMASK_ALL -#define CFE_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_INIT -#define CFE_ES_PERF_TRIGMASK_NONE CFE_PLATFORM_ES_PERF_TRIGMASK_NONE -#define CFE_ES_PERF_TRIGMASK_ALL CFE_PLATFORM_ES_PERF_TRIGMASK_ALL -#define CFE_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_INIT -#define CFE_ES_PERF_CHILD_PRIORITY CFE_PLATFORM_ES_PERF_CHILD_PRIORITY -#define CFE_ES_PERF_CHILD_STACK_SIZE CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE -#define CFE_ES_PERF_CHILD_MS_DELAY CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY -#define CFE_ES_PERF_ENTRIES_BTWN_DLYS CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS -#define CFE_ES_DEFAULT_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE -#define CFE_ES_EXCEPTION_FUNCTION CFE_PLATFORM_ES_EXCEPTION_FUNCTION -#define CFE_EVS_START_TASK_PRIORITY CFE_PLATFORM_EVS_START_TASK_PRIORITY -#define CFE_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_EVS_START_TASK_STACK_SIZE -#define CFE_SB_START_TASK_PRIORITY CFE_PLATFORM_SB_START_TASK_PRIORITY -#define CFE_SB_START_TASK_STACK_SIZE CFE_PLATFORM_SB_START_TASK_STACK_SIZE -#define CFE_ES_START_TASK_PRIORITY CFE_PLATFORM_ES_START_TASK_PRIORITY -#define CFE_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_START_TASK_STACK_SIZE -#define CFE_TIME_START_TASK_PRIORITY CFE_PLATFORM_TIME_START_TASK_PRIORITY -#define CFE_TIME_TONE_TASK_PRIORITY CFE_PLATFORM_TIME_TONE_TASK_PRIORITY -#define CFE_TIME_1HZ_TASK_PRIORITY CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY -#define CFE_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_TIME_START_TASK_STACK_SIZE -#define CFE_TIME_TONE_TASK_STACK_SIZE CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE -#define CFE_TIME_1HZ_TASK_STACK_SIZE CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE -#define CFE_TBL_START_TASK_PRIORITY CFE_PLATFORM_TBL_START_TASK_PRIORITY -#define CFE_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_TBL_START_TASK_STACK_SIZE -#define CFE_ES_CDS_MAX_NUM_ENTRIES CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES -#define CFE_ES_MAX_PROCESSOR_RESETS CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS -#define CFE_ES_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 -#define CFE_ES_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 -#define CFE_ES_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 -#define CFE_ES_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 -#define CFE_ES_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 -#define CFE_ES_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 -#define CFE_ES_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 -#define CFE_ES_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 -#define CFE_ES_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 -#define CFE_ES_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 -#define CFE_ES_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 -#define CFE_ES_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 -#define CFE_ES_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 -#define CFE_ES_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 -#define CFE_ES_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 -#define CFE_ES_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 -#define CFE_ES_MAX_BLOCK_SIZE CFE_PLATFORM_ES_MAX_BLOCK_SIZE -#define CFE_ES_CDS_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 -#define CFE_ES_CDS_MAX_BLOCK_SIZE CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE -#define CFE_EVS_MAX_EVENT_FILTERS CFE_PLATFORM_EVS_MAX_EVENT_FILTERS -#define CFE_EVS_LOG_ON CFE_PLATFORM_EVS_LOG_ON -#define CFE_EVS_DEFAULT_LOG_FILE CFE_PLATFORM_EVS_DEFAULT_LOG_FILE -#define CFE_EVS_LOG_MAX CFE_PLATFORM_EVS_LOG_MAX -#define CFE_EVS_DEFAULT_APP_DATA_FILE CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE -#define CFE_EVS_PORT_DEFAULT CFE_PLATFORM_EVS_PORT_DEFAULT -#define CFE_EVS_DEFAULT_TYPE_FLAG CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG -#define CFE_EVS_DEFAULT_LOG_MODE CFE_PLATFORM_EVS_DEFAULT_LOG_MODE -#define CFE_EVS_DEFAULT_MSG_FORMAT_MODE CFE_PLATFORM_EVS_DEFAULT_MSG_FORMAT_MODE -#define CFE_TBL_BUF_MEMORY_BYTES CFE_PLATFORM_TBL_BUF_MEMORY_BYTES -#define CFE_TBL_MAX_DBL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE -#define CFE_TBL_MAX_SNGL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE -#define CFE_TBL_MAX_NUM_TABLES CFE_PLATFORM_TBL_MAX_NUM_TABLES -#define CFE_TBL_MAX_CRITICAL_TABLES CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES -#define CFE_TBL_MAX_NUM_HANDLES CFE_PLATFORM_TBL_MAX_NUM_HANDLES -#define CFE_TBL_MAX_SIMULTANEOUS_LOADS CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS -#define CFE_TBL_MAX_NUM_VALIDATIONS CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS -#define CFE_TBL_DEFAULT_REG_DUMP_FILE CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE -#define CFE_TBL_VALID_SCID_COUNT CFE_PLATFORM_TBL_VALID_SCID_COUNT -#define CFE_TBL_U32FROM4CHARS CFE_PLATFORM_TBL_U32FROM4CHARS -#define CFE_TBL_VALID_SCID_1 CFE_PLATFORM_TBL_VALID_SCID_1 -#define CFE_TBL_VALID_SCID_2 CFE_PLATFORM_TBL_VALID_SCID_2 -#define CFE_TBL_VALID_PRID_COUNT CFE_PLATFORM_TBL_VALID_PRID_COUNT -#define CFE_TBL_VALID_PRID_1 CFE_PLATFORM_TBL_VALID_PRID_1 -#define CFE_TBL_VALID_PRID_2 CFE_PLATFORM_TBL_VALID_PRID_2 -#define CFE_TBL_VALID_PRID_3 CFE_PLATFORM_TBL_VALID_PRID_3 -#define CFE_TBL_VALID_PRID_4 CFE_PLATFORM_TBL_VALID_PRID_4 -#define CFE_ES_STARTUP_SYNC_POLL_MSEC CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC -#define CFE_CORE_MAX_STARTUP_MSEC CFE_PLATFORM_CORE_MAX_STARTUP_MSEC -#define CFE_ES_STARTUP_SCRIPT_TIMEOUT_MSEC CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC +#define CFE_CPU_ID CFE_PLATFORM_CPU_ID +#define CFE_CPU_NAME CFE_PLATFORM_CPU_NAME +#define CFE_SB_MAX_MSG_IDS CFE_PLATFORM_SB_MAX_MSG_IDS +#define CFE_SB_MAX_PIPES CFE_PLATFORM_SB_MAX_PIPES +#define CFE_SB_MAX_DEST_PER_PKT CFE_PLATFORM_SB_MAX_DEST_PER_PKT +#define CFE_SB_DEFAULT_MSG_LIMIT CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT +#define CFE_SB_BUF_MEMORY_BYTES CFE_PLATFORM_SB_BUF_MEMORY_BYTES +#define CFE_SB_MAX_PIPE_DEPTH CFE_PLATFORM_SB_MAX_PIPE_DEPTH +#define CFE_SB_HIGHEST_VALID_MSGID CFE_PLATFORM_SB_HIGHEST_VALID_MSGID +#define CFE_SB_DEFAULT_ROUTING_FILENAME CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME +#define CFE_SB_DEFAULT_PIPE_FILENAME CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME +#define CFE_SB_DEFAULT_MAP_FILENAME CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME +#define CFE_SB_FILTERED_EVENT1 CFE_PLATFORM_SB_FILTERED_EVENT1 +#define CFE_SB_FILTER_MASK1 CFE_PLATFORM_SB_FILTER_MASK1 +#define CFE_SB_FILTERED_EVENT2 CFE_PLATFORM_SB_FILTERED_EVENT2 +#define CFE_SB_FILTER_MASK2 CFE_PLATFORM_SB_FILTER_MASK2 +#define CFE_SB_FILTERED_EVENT3 CFE_PLATFORM_SB_FILTERED_EVENT3 +#define CFE_SB_FILTER_MASK3 CFE_PLATFORM_SB_FILTER_MASK3 +#define CFE_SB_FILTERED_EVENT4 CFE_PLATFORM_SB_FILTERED_EVENT4 +#define CFE_SB_FILTER_MASK4 CFE_PLATFORM_SB_FILTER_MASK4 +#define CFE_SB_FILTERED_EVENT5 CFE_PLATFORM_SB_FILTERED_EVENT5 +#define CFE_SB_FILTER_MASK5 CFE_PLATFORM_SB_FILTER_MASK5 +#define CFE_SB_FILTERED_EVENT6 CFE_PLATFORM_SB_FILTERED_EVENT6 +#define CFE_SB_FILTER_MASK6 CFE_PLATFORM_SB_FILTER_MASK6 +#define CFE_SB_FILTERED_EVENT7 CFE_PLATFORM_SB_FILTERED_EVENT7 +#define CFE_SB_FILTER_MASK7 CFE_PLATFORM_SB_FILTER_MASK7 +#define CFE_SB_FILTERED_EVENT8 CFE_PLATFORM_SB_FILTERED_EVENT8 +#define CFE_SB_FILTER_MASK8 CFE_PLATFORM_SB_FILTER_MASK8 +#define CFE_SB_MEM_BLOCK_SIZE_01 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 +#define CFE_SB_MEM_BLOCK_SIZE_02 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 +#define CFE_SB_MEM_BLOCK_SIZE_03 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 +#define CFE_SB_MEM_BLOCK_SIZE_04 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 +#define CFE_SB_MEM_BLOCK_SIZE_05 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 +#define CFE_SB_MEM_BLOCK_SIZE_06 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 +#define CFE_SB_MEM_BLOCK_SIZE_07 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 +#define CFE_SB_MEM_BLOCK_SIZE_08 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 +#define CFE_SB_MEM_BLOCK_SIZE_09 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 +#define CFE_SB_MEM_BLOCK_SIZE_10 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 +#define CFE_SB_MEM_BLOCK_SIZE_11 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 +#define CFE_SB_MEM_BLOCK_SIZE_12 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 +#define CFE_SB_MEM_BLOCK_SIZE_13 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 +#define CFE_SB_MEM_BLOCK_SIZE_14 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 +#define CFE_SB_MEM_BLOCK_SIZE_15 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 +#define CFE_SB_MEM_BLOCK_SIZE_16 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 +#define CFE_SB_MAX_BLOCK_SIZE CFE_PLATFORM_SB_MAX_BLOCK_SIZE +#define CFE_SB_DEFAULT_REPORT_SENDER CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER +#define CFE_TIME_CFG_SERVER CFE_PLATFORM_TIME_CFG_SERVER +#define CFE_TIME_CFG_CLIENT CFE_PLATFORM_TIME_CFG_CLIENT +#define CFE_TIME_CFG_VIRTUAL CFE_PLATFORM_TIME_CFG_VIRTUAL +#define CFE_TIME_CFG_SIGNAL CFE_PLATFORM_TIME_CFG_SIGNAL +#define CFE_TIME_CFG_SOURCE CFE_PLATFORM_TIME_CFG_SOURCE +#define CFE_TIME_CFG_SRC_MET CFE_PLATFORM_TIME_CFG_SRC_MET +#define CFE_TIME_CFG_SRC_GPS CFE_PLATFORM_TIME_CFG_SRC_GPS +#define CFE_TIME_CFG_SRC_TIME CFE_PLATFORM_TIME_CFG_SRC_TIME +#define CFE_TIME_MAX_DELTA_SECS CFE_PLATFORM_TIME_MAX_DELTA_SECS +#define CFE_TIME_MAX_DELTA_SUBS CFE_PLATFORM_TIME_MAX_DELTA_SUBS +#define CFE_TIME_MAX_LOCAL_SECS CFE_PLATFORM_TIME_MAX_LOCAL_SECS +#define CFE_TIME_MAX_LOCAL_SUBS CFE_PLATFORM_TIME_MAX_LOCAL_SUBS +#define CFE_TIME_CFG_TONE_LIMIT CFE_PLATFORM_TIME_CFG_TONE_LIMIT +#define CFE_TIME_CFG_START_FLY CFE_PLATFORM_TIME_CFG_START_FLY +#define CFE_TIME_CFG_LATCH_FLY CFE_PLATFORM_TIME_CFG_LATCH_FLY +#define CFE_ES_MAX_APPLICATIONS CFE_PLATFORM_ES_MAX_APPLICATIONS +#define CFE_ES_MAX_LIBRARIES CFE_PLATFORM_ES_MAX_LIBRARIES +#define CFE_ES_ER_LOG_ENTRIES CFE_PLATFORM_ES_ER_LOG_ENTRIES +#define CFE_ES_ER_LOG_MAX_CONTEXT_SIZE CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE +#define CFE_ES_SYSTEM_LOG_SIZE CFE_PLATFORM_ES_SYSTEM_LOG_SIZE +#define CFE_ES_OBJECT_TABLE_SIZE CFE_PLATFORM_ES_OBJECT_TABLE_SIZE +#define CFE_ES_MAX_GEN_COUNTERS CFE_PLATFORM_ES_MAX_GEN_COUNTERS +#define CFE_ES_APP_SCAN_RATE CFE_PLATFORM_ES_APP_SCAN_RATE +#define CFE_ES_APP_KILL_TIMEOUT CFE_PLATFORM_ES_APP_KILL_TIMEOUT +#define CFE_ES_RAM_DISK_SECTOR_SIZE CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE +#define CFE_ES_RAM_DISK_NUM_SECTORS CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS +#define CFE_ES_RAM_DISK_PERCENT_RESERVED CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED +#define CFE_ES_RAM_DISK_MOUNT_STRING CFE_PLATFORM_ES_RAM_DISK_MOUNT_STRING +#define CFE_ES_CDS_SIZE CFE_PLATFORM_ES_CDS_SIZE +#define CFE_ES_USER_RESERVED_SIZE CFE_PLATFORM_ES_USER_RESERVED_SIZE +#define CFE_ES_RESET_AREA_SIZE CFE_PLATFORM_ES_RESET_AREA_SIZE +#define CFE_ES_NONVOL_STARTUP_FILE CFE_PLATFORM_ES_NONVOL_STARTUP_FILE +#define CFE_ES_VOLATILE_STARTUP_FILE CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE +#define CFE_ES_DEFAULT_SHELL_FILENAME CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME +#define CFE_ES_MAX_SHELL_CMD CFE_PLATFORM_ES_MAX_SHELL_CMD +#define CFE_ES_MAX_SHELL_PKT CFE_PLATFORM_ES_MAX_SHELL_PKT +#define CFE_ES_DEFAULT_APP_LOG_FILE CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE +#define CFE_ES_DEFAULT_TASK_LOG_FILE CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE +#define CFE_ES_DEFAULT_SYSLOG_FILE CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE +#define CFE_ES_DEFAULT_ER_LOG_FILE CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE +#define CFE_ES_DEFAULT_PERF_DUMP_FILENAME CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME +#define CFE_ES_DEFAULT_CDS_REG_DUMP_FILE CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE +#define CFE_ES_DEFAULT_SYSLOG_MODE CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE +#define CFE_ES_PERF_MAX_IDS CFE_PLATFORM_ES_PERF_MAX_IDS +#define CFE_ES_PERF_DATA_BUFFER_SIZE CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE +#define CFE_ES_PERF_FILTMASK_NONE CFE_PLATFORM_ES_PERF_FILTMASK_NONE +#define CFE_ES_PERF_FILTMASK_ALL CFE_PLATFORM_ES_PERF_FILTMASK_ALL +#define CFE_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_INIT +#define CFE_ES_PERF_TRIGMASK_NONE CFE_PLATFORM_ES_PERF_TRIGMASK_NONE +#define CFE_ES_PERF_TRIGMASK_ALL CFE_PLATFORM_ES_PERF_TRIGMASK_ALL +#define CFE_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_INIT +#define CFE_ES_PERF_CHILD_PRIORITY CFE_PLATFORM_ES_PERF_CHILD_PRIORITY +#define CFE_ES_PERF_CHILD_STACK_SIZE CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE +#define CFE_ES_PERF_CHILD_MS_DELAY CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY +#define CFE_ES_PERF_ENTRIES_BTWN_DLYS CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS +#define CFE_ES_DEFAULT_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_ES_EXCEPTION_FUNCTION CFE_PLATFORM_ES_EXCEPTION_FUNCTION +#define CFE_EVS_START_TASK_PRIORITY CFE_PLATFORM_EVS_START_TASK_PRIORITY +#define CFE_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_EVS_START_TASK_STACK_SIZE +#define CFE_SB_START_TASK_PRIORITY CFE_PLATFORM_SB_START_TASK_PRIORITY +#define CFE_SB_START_TASK_STACK_SIZE CFE_PLATFORM_SB_START_TASK_STACK_SIZE +#define CFE_ES_START_TASK_PRIORITY CFE_PLATFORM_ES_START_TASK_PRIORITY +#define CFE_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_START_TASK_STACK_SIZE +#define CFE_TIME_START_TASK_PRIORITY CFE_PLATFORM_TIME_START_TASK_PRIORITY +#define CFE_TIME_TONE_TASK_PRIORITY CFE_PLATFORM_TIME_TONE_TASK_PRIORITY +#define CFE_TIME_1HZ_TASK_PRIORITY CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY +#define CFE_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_TIME_START_TASK_STACK_SIZE +#define CFE_TIME_TONE_TASK_STACK_SIZE CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE +#define CFE_TIME_1HZ_TASK_STACK_SIZE CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE +#define CFE_TBL_START_TASK_PRIORITY CFE_PLATFORM_TBL_START_TASK_PRIORITY +#define CFE_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_TBL_START_TASK_STACK_SIZE +#define CFE_ES_CDS_MAX_NUM_ENTRIES CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES +#define CFE_ES_MAX_PROCESSOR_RESETS CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS +#define CFE_ES_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 +#define CFE_ES_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 +#define CFE_ES_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 +#define CFE_ES_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 +#define CFE_ES_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 +#define CFE_ES_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 +#define CFE_ES_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 +#define CFE_ES_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 +#define CFE_ES_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 +#define CFE_ES_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 +#define CFE_ES_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 +#define CFE_ES_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 +#define CFE_ES_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 +#define CFE_ES_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 +#define CFE_ES_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 +#define CFE_ES_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 +#define CFE_ES_MAX_BLOCK_SIZE CFE_PLATFORM_ES_MAX_BLOCK_SIZE +#define CFE_ES_CDS_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 +#define CFE_ES_CDS_MAX_BLOCK_SIZE CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE +#define CFE_EVS_MAX_EVENT_FILTERS CFE_PLATFORM_EVS_MAX_EVENT_FILTERS +#define CFE_EVS_LOG_ON CFE_PLATFORM_EVS_LOG_ON +#define CFE_EVS_DEFAULT_LOG_FILE CFE_PLATFORM_EVS_DEFAULT_LOG_FILE +#define CFE_EVS_LOG_MAX CFE_PLATFORM_EVS_LOG_MAX +#define CFE_EVS_DEFAULT_APP_DATA_FILE CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE +#define CFE_EVS_PORT_DEFAULT CFE_PLATFORM_EVS_PORT_DEFAULT +#define CFE_EVS_DEFAULT_TYPE_FLAG CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG +#define CFE_EVS_DEFAULT_LOG_MODE CFE_PLATFORM_EVS_DEFAULT_LOG_MODE +#define CFE_EVS_DEFAULT_MSG_FORMAT_MODE CFE_PLATFORM_EVS_DEFAULT_MSG_FORMAT_MODE +#define CFE_TBL_BUF_MEMORY_BYTES CFE_PLATFORM_TBL_BUF_MEMORY_BYTES +#define CFE_TBL_MAX_DBL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE +#define CFE_TBL_MAX_SNGL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE +#define CFE_TBL_MAX_NUM_TABLES CFE_PLATFORM_TBL_MAX_NUM_TABLES +#define CFE_TBL_MAX_CRITICAL_TABLES CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES +#define CFE_TBL_MAX_NUM_HANDLES CFE_PLATFORM_TBL_MAX_NUM_HANDLES +#define CFE_TBL_MAX_SIMULTANEOUS_LOADS CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS +#define CFE_TBL_MAX_NUM_VALIDATIONS CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS +#define CFE_TBL_DEFAULT_REG_DUMP_FILE CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE +#define CFE_TBL_VALID_SCID_COUNT CFE_PLATFORM_TBL_VALID_SCID_COUNT +#define CFE_TBL_U32FROM4CHARS CFE_PLATFORM_TBL_U32FROM4CHARS +#define CFE_TBL_VALID_SCID_1 CFE_PLATFORM_TBL_VALID_SCID_1 +#define CFE_TBL_VALID_SCID_2 CFE_PLATFORM_TBL_VALID_SCID_2 +#define CFE_TBL_VALID_PRID_COUNT CFE_PLATFORM_TBL_VALID_PRID_COUNT +#define CFE_TBL_VALID_PRID_1 CFE_PLATFORM_TBL_VALID_PRID_1 +#define CFE_TBL_VALID_PRID_2 CFE_PLATFORM_TBL_VALID_PRID_2 +#define CFE_TBL_VALID_PRID_3 CFE_PLATFORM_TBL_VALID_PRID_3 +#define CFE_TBL_VALID_PRID_4 CFE_PLATFORM_TBL_VALID_PRID_4 +#define CFE_ES_STARTUP_SYNC_POLL_MSEC CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC +#define CFE_CORE_MAX_STARTUP_MSEC CFE_PLATFORM_CORE_MAX_STARTUP_MSEC +#define CFE_ES_STARTUP_SCRIPT_TIMEOUT_MSEC CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC /* * This was previously configurable, now fixed. * Keeping it here will trigger a "redefined" warning if some mission * had configured it as "false" for some reason. */ -#define CFE_TIME_ENA_1HZ_CMD_PKT true - -#endif /* CFE_OMIT_DEPRECATED_6_6 */ +#define CFE_TIME_ENA_1HZ_CMD_PKT true -#endif /* _cfe_platform_cfg_ */ +#endif /* CFE_OMIT_DEPRECATED_6_6 */ +#endif /* _cfe_platform_cfg_ */ diff --git a/examples/cFS/sample_defs/cpu3_msgids.h b/examples/cFS/sample_defs/cpu3_msgids.h index 79b26f26..cac1c4eb 100644 --- a/examples/cFS/sample_defs/cpu3_msgids.h +++ b/examples/cFS/sample_defs/cpu3_msgids.h @@ -3,56 +3,54 @@ #include "cfe_mission_cfg.h" -#define CFE_EVS_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_EVS_CMD_MSG /* 0x1a01 */ - /* Message ID 0x1a02 is available */ -#define CFE_SB_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_SB_CMD_MSG /* 0x1a03 */ -#define CFE_TBL_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TBL_CMD_MSG /* 0x1a04 */ -#define CFE_TIME_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TIME_CMD_MSG /* 0x1a05 */ -#define CFE_ES_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_ES_CMD_MSG /* 0x1a06 */ +#define CFE_EVS_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_EVS_CMD_MSG /* 0x1a01 */ + /* Message ID 0x1a02 is available */ +#define CFE_SB_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_SB_CMD_MSG /* 0x1a03 */ +#define CFE_TBL_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TBL_CMD_MSG /* 0x1a04 */ +#define CFE_TIME_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TIME_CMD_MSG /* 0x1a05 */ +#define CFE_ES_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_ES_CMD_MSG /* 0x1a06 */ -#define CFE_ES_SEND_HK_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_ES_SEND_HK_MSG /* 0x1a08 */ -#define CFE_EVS_SEND_HK_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_EVS_SEND_HK_MSG /* 0x1a09 */ - /* Message ID 0x1a0A is available */ -#define CFE_SB_SEND_HK_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_SB_SEND_HK_MSG /* 0x1a0B */ -#define CFE_TBL_SEND_HK_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TBL_SEND_HK_MSG /* 0x1a0C */ -#define CFE_TIME_SEND_HK_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TIME_SEND_HK_MSG /* 0x1a0D */ +#define CFE_ES_SEND_HK_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_ES_SEND_HK_MSG /* 0x1a08 */ +#define CFE_EVS_SEND_HK_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_EVS_SEND_HK_MSG /* 0x1a09 */ +/* Message ID 0x1a0A is available */ +#define CFE_SB_SEND_HK_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_SB_SEND_HK_MSG /* 0x1a0B */ +#define CFE_TBL_SEND_HK_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TBL_SEND_HK_MSG /* 0x1a0C */ +#define CFE_TIME_SEND_HK_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TIME_SEND_HK_MSG /* 0x1a0D */ #define CFE_SB_SUB_RPT_CTRL_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_SB_SUB_RPT_CTRL_MSG /* 0x1a0E */ -#define CFE_TIME_TONE_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TIME_TONE_CMD_MSG /* 0x1a10 */ -#define CFE_TIME_1HZ_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TIME_1HZ_CMD_MSG /* 0x1a11 */ - +#define CFE_TIME_TONE_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TIME_TONE_CMD_MSG /* 0x1a10 */ +#define CFE_TIME_1HZ_CMD_MID CFE_MISSION_CMD_MID_BASE3 + CFE_MISSION_TIME_1HZ_CMD_MSG /* 0x1a11 */ /* ** cFE Global Command Message Id's */ -#define CFE_TIME_DATA_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_DATA_CMD_MSG /* 0x1a60 */ -#define CFE_TIME_SEND_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_SEND_CMD_MSG /* 0x1a62 */ - +#define CFE_TIME_DATA_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_DATA_CMD_MSG /* 0x1a60 */ +#define CFE_TIME_SEND_CMD_MID CFE_MISSION_CMD_MID_BASE_GLOB + CFE_MISSION_TIME_SEND_CMD_MSG /* 0x1a62 */ /* ** CFE Telemetry Message Id's */ -#define CFE_ES_HK_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_ES_HK_TLM_MSG /* 0x0a00 */ -#define CFE_EVS_HK_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_EVS_HK_TLM_MSG /* 0x0a01 */ - /* Message ID 0x0a02 is available */ -#define CFE_SB_HK_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_SB_HK_TLM_MSG /* 0x0a03 */ -#define CFE_TBL_HK_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_TBL_HK_TLM_MSG /* 0x0a04 */ -#define CFE_TIME_HK_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_TIME_HK_TLM_MSG /* 0x0a05 */ -#define CFE_TIME_DIAG_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_TIME_DIAG_TLM_MSG /* 0x0a06 */ -#define CFE_EVS_LONG_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_EVS_LONG_EVENT_MSG_MSG /* 0x0a08 */ -#define CFE_EVS_SHORT_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_EVS_SHORT_EVENT_MSG_MSG /* 0x0a09 */ -#define CFE_SB_STATS_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_SB_STATS_TLM_MSG /* 0x0a0A */ -#define CFE_ES_APP_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_ES_APP_TLM_MSG /* 0x0a0B */ -#define CFE_TBL_REG_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_TBL_REG_TLM_MSG /* 0x0a0C */ -#define CFE_SB_ALLSUBS_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_SB_ALLSUBS_TLM_MSG /* 0x0a0D */ -#define CFE_SB_ONESUB_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_SB_ONESUB_TLM_MSG /* 0x0a0E */ +#define CFE_ES_HK_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_ES_HK_TLM_MSG /* 0x0a00 */ +#define CFE_EVS_HK_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_EVS_HK_TLM_MSG /* 0x0a01 */ +/* Message ID 0x0a02 is available */ +#define CFE_SB_HK_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_SB_HK_TLM_MSG /* 0x0a03 */ +#define CFE_TBL_HK_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_TBL_HK_TLM_MSG /* 0x0a04 */ +#define CFE_TIME_HK_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_TIME_HK_TLM_MSG /* 0x0a05 */ +#define CFE_TIME_DIAG_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_TIME_DIAG_TLM_MSG /* 0x0a06 */ +#define CFE_EVS_LONG_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_EVS_LONG_EVENT_MSG_MSG /* 0x0a08 */ +#define CFE_EVS_SHORT_EVENT_MSG_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_EVS_SHORT_EVENT_MSG_MSG /* 0x0a09 */ +#define CFE_SB_STATS_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_SB_STATS_TLM_MSG /* 0x0a0A */ +#define CFE_ES_APP_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_ES_APP_TLM_MSG /* 0x0a0B */ +#define CFE_TBL_REG_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_TBL_REG_TLM_MSG /* 0x0a0C */ +#define CFE_SB_ALLSUBS_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_SB_ALLSUBS_TLM_MSG /* 0x0a0D */ +#define CFE_SB_ONESUB_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_SB_ONESUB_TLM_MSG /* 0x0a0E */ #ifndef CFE_OMIT_DEPRECATED_6_7 - #define CFE_ES_SHELL_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_ES_SHELL_TLM_MSG /* 0x0a0F */ +#define CFE_ES_SHELL_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_ES_SHELL_TLM_MSG /* 0x0a0F */ #endif -#define CFE_ES_MEMSTATS_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_ES_MEMSTATS_TLM_MSG /* 0x0a10 */ +#define CFE_ES_MEMSTATS_TLM_MID CFE_MISSION_TLM_MID_BASE3 + CFE_MISSION_ES_MEMSTATS_TLM_MSG /* 0x0a10 */ /* * MID definitions by these older names are required to make some existing apps compile @@ -60,7 +58,7 @@ */ #ifndef CFE_OMIT_DEPRECATED_6_6 -#define CFE_EVS_EVENT_MSG_MID CFE_EVS_LONG_EVENT_MSG_MID +#define CFE_EVS_EVENT_MSG_MID CFE_EVS_LONG_EVENT_MSG_MID #endif diff --git a/examples/cFS/sample_defs/cpu3_platform_cfg.h b/examples/cFS/sample_defs/cpu3_platform_cfg.h index 0399b848..e7f27233 100644 --- a/examples/cFS/sample_defs/cpu3_platform_cfg.h +++ b/examples/cFS/sample_defs/cpu3_platform_cfg.h @@ -65,8 +65,7 @@ ** This parameter has a lower limit of 1 and an upper limit of 1024. ** */ -#define CFE_PLATFORM_SB_MAX_MSG_IDS 256 - +#define CFE_PLATFORM_SB_MAX_MSG_IDS 256 /** ** \cfesbcfg Maximum Number of Unique Pipes SB Routing Table can hold @@ -83,8 +82,7 @@ ** or equal to OS_MAX_QUEUES. ** */ -#define CFE_PLATFORM_SB_MAX_PIPES 64 - +#define CFE_PLATFORM_SB_MAX_PIPES 64 /** ** \cfesbcfg Maximum Number of unique local destinations a single MsgId can have @@ -100,8 +98,7 @@ ** configuration are defined by a 16 bit data word. ** */ -#define CFE_PLATFORM_SB_MAX_DEST_PER_PKT 16 - +#define CFE_PLATFORM_SB_MAX_DEST_PER_PKT 16 /** ** \cfesbcfg Default Subscription Message Limit @@ -116,8 +113,7 @@ ** This parameter has a lower limit of 4 and an upper limit of 65535. ** */ -#define CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT 4 - +#define CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT 4 /** ** \cfesbcfg Size of the SB buffer memory pool @@ -139,8 +135,7 @@ ** This parameter has a lower limit of 512 and an upper limit of UINT_MAX (4 Gigabytes). ** */ -#define CFE_PLATFORM_SB_BUF_MEMORY_BYTES 524288 - +#define CFE_PLATFORM_SB_BUF_MEMORY_BYTES 524288 /** ** \cfesbcfg Maximum depth allowed when creating an SB pipe @@ -156,8 +151,7 @@ ** be verified. Pipe Depth values that are checked against this configuration ** are defined by a 16 bit data word. */ -#define CFE_PLATFORM_SB_MAX_PIPE_DEPTH 256 - +#define CFE_PLATFORM_SB_MAX_PIPE_DEPTH 256 /** ** \cfesbcfg Highest Valid Message Id @@ -185,7 +179,7 @@ ** below to it's maximum of 0xFFFF. ** The allocated message table is this size + 1 (could change based on implementaiton). */ -#define CFE_PLATFORM_SB_HIGHEST_VALID_MSGID 0x1FFF +#define CFE_PLATFORM_SB_HIGHEST_VALID_MSGID 0x1FFF /** ** \cfesbcfg Platform Endian Indicator @@ -210,8 +204,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME "/ram/cfe_sb_route.dat" - +#define CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME "/ram/cfe_sb_route.dat" /** ** \cfesbcfg Default Pipe Information Filename @@ -225,8 +218,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME "/ram/cfe_sb_pipe.dat" - +#define CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME "/ram/cfe_sb_pipe.dat" /** ** \cfesbcfg Default Message Map Filename @@ -243,8 +235,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME "/ram/cfe_sb_msgmap.dat" - +#define CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME "/ram/cfe_sb_msgmap.dat" /** ** \cfesbcfg SB Event Filtering @@ -261,30 +252,29 @@ ** This filtering applies only to SB events. ** These parameters have a lower limit of 0 and an upper limit of 65535. */ -#define CFE_PLATFORM_SB_FILTERED_EVENT1 CFE_SB_SEND_NO_SUBS_EID -#define CFE_PLATFORM_SB_FILTER_MASK1 CFE_EVS_FIRST_4_STOP - -#define CFE_PLATFORM_SB_FILTERED_EVENT2 CFE_SB_DUP_SUBSCRIP_EID -#define CFE_PLATFORM_SB_FILTER_MASK2 CFE_EVS_FIRST_4_STOP +#define CFE_PLATFORM_SB_FILTERED_EVENT1 CFE_SB_SEND_NO_SUBS_EID +#define CFE_PLATFORM_SB_FILTER_MASK1 CFE_EVS_FIRST_4_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT3 CFE_SB_MSGID_LIM_ERR_EID -#define CFE_PLATFORM_SB_FILTER_MASK3 CFE_EVS_FIRST_16_STOP +#define CFE_PLATFORM_SB_FILTERED_EVENT2 CFE_SB_DUP_SUBSCRIP_EID +#define CFE_PLATFORM_SB_FILTER_MASK2 CFE_EVS_FIRST_4_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT4 CFE_SB_Q_FULL_ERR_EID -#define CFE_PLATFORM_SB_FILTER_MASK4 CFE_EVS_FIRST_16_STOP +#define CFE_PLATFORM_SB_FILTERED_EVENT3 CFE_SB_MSGID_LIM_ERR_EID +#define CFE_PLATFORM_SB_FILTER_MASK3 CFE_EVS_FIRST_16_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT5 0 -#define CFE_PLATFORM_SB_FILTER_MASK5 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT4 CFE_SB_Q_FULL_ERR_EID +#define CFE_PLATFORM_SB_FILTER_MASK4 CFE_EVS_FIRST_16_STOP -#define CFE_PLATFORM_SB_FILTERED_EVENT6 0 -#define CFE_PLATFORM_SB_FILTER_MASK6 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT5 0 +#define CFE_PLATFORM_SB_FILTER_MASK5 CFE_EVS_NO_FILTER -#define CFE_PLATFORM_SB_FILTERED_EVENT7 0 -#define CFE_PLATFORM_SB_FILTER_MASK7 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT6 0 +#define CFE_PLATFORM_SB_FILTER_MASK6 CFE_EVS_NO_FILTER -#define CFE_PLATFORM_SB_FILTERED_EVENT8 0 -#define CFE_PLATFORM_SB_FILTER_MASK8 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT7 0 +#define CFE_PLATFORM_SB_FILTER_MASK7 CFE_EVS_NO_FILTER +#define CFE_PLATFORM_SB_FILTERED_EVENT8 0 +#define CFE_PLATFORM_SB_FILTER_MASK8 CFE_EVS_NO_FILTER /** ** \cfeescfg Define SB Memory Pool Block Sizes @@ -297,23 +287,23 @@ ** The number of block sizes defined cannot exceed ** #CFE_PLATFORM_ES_POOL_MAX_BUCKETS */ -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 8 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 16 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 20 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 36 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 64 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 96 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 128 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 160 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 256 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 512 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 1024 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 2048 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 4096 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 8192 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 16384 -#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 32768 -#define CFE_PLATFORM_SB_MAX_BLOCK_SIZE (CFE_MISSION_SB_MAX_SB_MSG_SIZE + 40) +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 8 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 16 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 20 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 36 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 64 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 96 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 128 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 160 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 256 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 512 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 1024 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 2048 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 4096 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 8192 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 16384 +#define CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 32768 +#define CFE_PLATFORM_SB_MAX_BLOCK_SIZE (CFE_MISSION_SB_MAX_SB_MSG_SIZE + 40) /** ** \cfesbcfg Define Default Sender Information Storage Mode @@ -327,8 +317,7 @@ ** There is a lower limit of 0 and an upper limit of 1 on this configuration ** paramater. */ -#define CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER 1 - +#define CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER 1 /** ** \cfetimecfg Time Server or Time Client Selection @@ -342,9 +331,8 @@ ** Enable one, and only one by defining either CFE_PLATFORM_TIME_CFG_SERVER or ** CFE_PLATFORM_TIME_CFG_CLIENT AS true. The other must be defined as false. */ -#define CFE_PLATFORM_TIME_CFG_SERVER true -#define CFE_PLATFORM_TIME_CFG_CLIENT false - +#define CFE_PLATFORM_TIME_CFG_SERVER true +#define CFE_PLATFORM_TIME_CFG_CLIENT false /** ** \cfetimecfg Time Tone In Big-Endian Order @@ -358,7 +346,6 @@ */ #undef CFE_PLATFORM_TIME_CFG_BIGENDIAN - /** ** \cfetimecfg Local MET or Virtual MET Selection for Time Servers ** @@ -377,8 +364,7 @@ ** \par Limits ** Only applies if #CFE_PLATFORM_TIME_CFG_SERVER is set to true. */ -#define CFE_PLATFORM_TIME_CFG_VIRTUAL true - +#define CFE_PLATFORM_TIME_CFG_VIRTUAL true /** ** \cfetimecfg Include or Exclude the Primary/Redundant Tone Selection Cmd @@ -393,8 +379,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_SIGNAL false - +#define CFE_PLATFORM_TIME_CFG_SIGNAL false /** ** \cfetimecfg Include or Exclude the Internal/External Time Source Selection Cmd @@ -414,8 +399,7 @@ ** \par Limits ** Only applies if #CFE_PLATFORM_TIME_CFG_SERVER is set to true. */ -#define CFE_PLATFORM_TIME_CFG_SOURCE false - +#define CFE_PLATFORM_TIME_CFG_SOURCE false /** ** \cfetimecfg Choose the External Time Source for Server only @@ -431,10 +415,9 @@ ** #CFE_PLATFORM_TIME_CFG_SRC_MET, #CFE_PLATFORM_TIME_CFG_SRC_GPS, #CFE_PLATFORM_TIME_CFG_SRC_TIME ** -# Only applies if #CFE_PLATFORM_TIME_CFG_SERVER is set to true. */ -#define CFE_PLATFORM_TIME_CFG_SRC_MET false -#define CFE_PLATFORM_TIME_CFG_SRC_GPS false -#define CFE_PLATFORM_TIME_CFG_SRC_TIME false - +#define CFE_PLATFORM_TIME_CFG_SRC_MET false +#define CFE_PLATFORM_TIME_CFG_SRC_GPS false +#define CFE_PLATFORM_TIME_CFG_SRC_TIME false /** ** \cfetimecfg Define the Max Delta Limits for Time Servers using an Ext Time Source @@ -453,9 +436,8 @@ ** Applies only if both #CFE_PLATFORM_TIME_CFG_SERVER and #CFE_PLATFORM_TIME_CFG_SOURCE are set ** to true. */ -#define CFE_PLATFORM_TIME_MAX_DELTA_SECS 0 -#define CFE_PLATFORM_TIME_MAX_DELTA_SUBS 500000 - +#define CFE_PLATFORM_TIME_MAX_DELTA_SECS 0 +#define CFE_PLATFORM_TIME_MAX_DELTA_SUBS 500000 /** ** \cfetimecfg Define the Local Clock Rollover Value in seconds and subseconds @@ -467,9 +449,8 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_MAX_LOCAL_SECS 27 -#define CFE_PLATFORM_TIME_MAX_LOCAL_SUBS 0 - +#define CFE_PLATFORM_TIME_MAX_LOCAL_SECS 27 +#define CFE_PLATFORM_TIME_MAX_LOCAL_SUBS 0 /** ** \cfetimecfg Define Timing Limits From One Tone To The Next @@ -483,9 +464,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_TONE_LIMIT 20000 - - +#define CFE_PLATFORM_TIME_CFG_TONE_LIMIT 20000 /** ** \cfetimecfg Define Time to Start Flywheel Since Last Tone @@ -497,8 +476,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_START_FLY 2 - +#define CFE_PLATFORM_TIME_CFG_START_FLY 2 /** ** \cfetimecfg Define Periodic Time to Update Local Clock Tone Latch @@ -511,8 +489,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TIME_CFG_LATCH_FLY 8 - +#define CFE_PLATFORM_TIME_CFG_LATCH_FLY 8 /** ** \cfeescfg Define Max Number of Applications @@ -530,7 +507,6 @@ */ #define CFE_PLATFORM_ES_MAX_APPLICATIONS 32 - /** ** \cfeescfg Define Max Number of Shared libraries ** @@ -570,8 +546,7 @@ ** in the error log. Any context information beyond this size will ** be truncated. */ -#define CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE 256 - +#define CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE 256 /** ** \cfeescfg Define Size of the cFE System Log. @@ -586,8 +561,7 @@ ** however, the maximum system log size is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_SYSTEM_LOG_SIZE 3072 - +#define CFE_PLATFORM_ES_SYSTEM_LOG_SIZE 3072 /** ** \cfeescfg Define Number of entries in the ES Object table @@ -601,8 +575,7 @@ ** however, the maximum object table size is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_OBJECT_TABLE_SIZE 30 - +#define CFE_PLATFORM_ES_OBJECT_TABLE_SIZE 30 /** ** \cfeescfg Define Max Number of Generic Counters @@ -613,8 +586,7 @@ ** \par Limits ** This parameter has a lower limit of 1 and an upper limit of 65535. */ -#define CFE_PLATFORM_ES_MAX_GEN_COUNTERS 8 - +#define CFE_PLATFORM_ES_MAX_GEN_COUNTERS 8 /** ** \cfeescfg Define ES Application Control Scan Rate @@ -635,7 +607,6 @@ */ #define CFE_PLATFORM_ES_APP_SCAN_RATE 1000 - /** ** \cfeescfg Define ES Application Kill Timeout ** @@ -665,7 +636,6 @@ */ #define CFE_PLATFORM_ES_APP_KILL_TIMEOUT 5 - /** ** \cfeescfg ES Ram Disk Sector Size ** @@ -682,8 +652,7 @@ ** however, the maximum RAM disk sector size is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE 512 - +#define CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE 512 /** ** \cfeescfg ES Ram Disk Number of Sectors @@ -701,7 +670,7 @@ ** however, the maximum number of RAM sectors is system dependent and should be ** verified. */ -#define CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS 4096 +#define CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS 4096 /** ** \cfeescfg Percentage of Ram Disk Reserved for Decompressing Apps @@ -727,7 +696,6 @@ */ #define CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED 30 - /** ** \cfeescfg RAM Disk Mount string ** @@ -744,7 +712,6 @@ */ #define CFE_PLATFORM_ES_RAM_DISK_MOUNT_STRING "/ram" - /** ** \cfeescfg Define Critical Data Store Size ** @@ -760,8 +727,7 @@ ** There is a lower limit of 8192 and an upper limit of UINT_MAX (4 Gigabytes) ** on this configuration paramater. */ -#define CFE_PLATFORM_ES_CDS_SIZE ( 128 * 1024 ) - +#define CFE_PLATFORM_ES_CDS_SIZE (128 * 1024) /** ** \cfeescfg Define User Reserved Memory Size @@ -781,8 +747,7 @@ ** There is a lower limit of 1024 and an upper limit of UINT_MAX (4 Gigabytes) ** on this configuration paramater. */ -#define CFE_PLATFORM_ES_USER_RESERVED_SIZE ( 1024 * 1024 ) - +#define CFE_PLATFORM_ES_USER_RESERVED_SIZE (1024 * 1024) /** ** \cfeescfg Define ES Reset Area Size @@ -805,7 +770,7 @@ ** There is a lower limit of 153600 (150KBytes) and an upper limit of UINT_MAX ** (4 Gigabytes) on this configuration paramater. */ -#define CFE_PLATFORM_ES_RESET_AREA_SIZE ( 170 * 1024 ) +#define CFE_PLATFORM_ES_RESET_AREA_SIZE (170 * 1024) /** ** \cfeescfg Define Memory Pool Alignment Size @@ -824,8 +789,7 @@ ** \par Limits ** This must always be a power of 2, as it is used as a binary address mask. */ -#define CFE_PLATFORM_ES_MEMPOOL_ALIGN_SIZE_MIN 4 - +#define CFE_PLATFORM_ES_MEMPOOL_ALIGN_SIZE_MIN 4 /** ** \cfeescfg ES Nonvolatile Startup Filename @@ -839,8 +803,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_NONVOL_STARTUP_FILE "/cf/cfe_es_startup.scr" - +#define CFE_PLATFORM_ES_NONVOL_STARTUP_FILE "/cf/cfe_es_startup.scr" /** ** \cfeescfg ES Volatile Startup Filename @@ -854,7 +817,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE "/ram/cfe_es_startup.scr" +#define CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE "/ram/cfe_es_startup.scr" /** ** \cfeescfg Default Shell Filename @@ -870,8 +833,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME "/ram/ShellCmd.out" - +#define CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME "/ram/ShellCmd.out" /** ** \cfeescfg Define Max Shell Command Size @@ -883,8 +845,7 @@ ** There is a lower limit of 64 and an upper limit of #OS_MAX_CMD_LEN. Units are ** characters. */ -#define CFE_PLATFORM_ES_MAX_SHELL_CMD 64 - +#define CFE_PLATFORM_ES_MAX_SHELL_CMD 64 /** ** \cfeescfg Define Shell Command Telemetry Pkt Segment Size @@ -899,7 +860,7 @@ ** \par Limits ** There is a lower limit of 32 and an upper limit of #CFE_SB_MAX_SB_MSG_SIZE. */ -#define CFE_PLATFORM_ES_MAX_SHELL_PKT 64 +#define CFE_PLATFORM_ES_MAX_SHELL_PKT 64 /** ** \cfeescfg Define OS Task Delay Value for ES Shell Command @@ -917,7 +878,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_ES_SHELL_OS_DELAY_MILLISEC 200 +#define CFE_PLATFORM_ES_SHELL_OS_DELAY_MILLISEC 200 /** ** \cfeescfg Default Application Information Filename @@ -932,7 +893,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE "/ram/cfe_es_app_info.log" +#define CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE "/ram/cfe_es_app_info.log" /** ** \cfeescfg Default Application Information Filename @@ -947,7 +908,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE "/ram/cfe_es_task_info.log" +#define CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE "/ram/cfe_es_task_info.log" /** ** \cfeescfg Default System Log Filename @@ -963,7 +924,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE "/ram/cfe_es_syslog.log" +#define CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE "/ram/cfe_es_syslog.log" /** ** \cfeescfg Default Exception and Reset (ER) Log Filename @@ -978,7 +939,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE "/ram/cfe_erlog.log" +#define CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE "/ram/cfe_erlog.log" /** ** \cfeescfg Default Performance Data Filename @@ -992,8 +953,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME "/ram/cfe_es_perf.dat" - +#define CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME "/ram/cfe_es_perf.dat" /** ** \cfeescfg Default Critical Data Store Registry Filename @@ -1007,7 +967,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE "/ram/cfe_cds_reg.log" +#define CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE "/ram/cfe_cds_reg.log" /** ** \cfeescfg Define Default System Log Mode following Power On Reset @@ -1025,7 +985,7 @@ ** There is a lower limit of 0 and an upper limit of 1 on this configuration ** paramater. */ -#define CFE_PLATFORM_ES_DEFAULT_POR_SYSLOG_MODE 0 +#define CFE_PLATFORM_ES_DEFAULT_POR_SYSLOG_MODE 0 /** ** \cfeescfg Define Default System Log Mode following Processor Reset @@ -1043,7 +1003,7 @@ ** There is a lower limit of 0 and an upper limit of 1 on this configuration ** paramater. */ -#define CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE 1 +#define CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE 1 /** ** \cfeescfg Define Max Number of Performance IDs @@ -1056,7 +1016,7 @@ ** This number must always be divisible by 32. There is a lower limit of 32 and ** an upper limit of 512 on this configuration paramater. */ -#define CFE_PLATFORM_ES_PERF_MAX_IDS 128 +#define CFE_PLATFORM_ES_PERF_MAX_IDS 128 /** ** \cfeescfg Define Max Size of Performance Data Buffer @@ -1072,8 +1032,7 @@ ** The units are number of entries. An entry is defined by a 32 bit data word followed ** by a 64 bit time stamp. */ -#define CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE 10000 - +#define CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE 10000 /** ** \cfeescfg Define Filter Mask Setting for Disabling All Performance Entries @@ -1083,7 +1042,7 @@ ** bit mask. For each bit, 0 means the corresponding entry is disabled and ** 1 means it is enabled. */ -#define CFE_PLATFORM_ES_PERF_FILTMASK_NONE 0 +#define CFE_PLATFORM_ES_PERF_FILTMASK_NONE 0 /** ** \cfeescfg Define Filter Mask Setting for Enabling All Performance Entries @@ -1093,7 +1052,7 @@ ** bit mask. For each bit, 0 means the corresponding entry is disabled and ** 1 means it is enabled. */ -#define CFE_PLATFORM_ES_PERF_FILTMASK_ALL ~CFE_PLATFORM_ES_PERF_FILTMASK_NONE +#define CFE_PLATFORM_ES_PERF_FILTMASK_ALL ~CFE_PLATFORM_ES_PERF_FILTMASK_NONE /** ** \cfeescfg Define Default Filter Mask Setting for Performance Data Buffer @@ -1104,8 +1063,7 @@ ** means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_ALL - +#define CFE_PLATFORM_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_ALL /** ** \cfeescfg Define Default Filter Trigger Setting for Disabling All Performance Entries @@ -1116,7 +1074,7 @@ ** disabled and 1 means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_TRIGMASK_NONE 0 +#define CFE_PLATFORM_ES_PERF_TRIGMASK_NONE 0 /** ** \cfeescfg Define Filter Trigger Setting for Enabling All Performance Entries @@ -1127,7 +1085,7 @@ ** disabled and 1 means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_TRIGMASK_ALL ~CFE_PLATFORM_ES_PERF_TRIGMASK_NONE +#define CFE_PLATFORM_ES_PERF_TRIGMASK_ALL ~CFE_PLATFORM_ES_PERF_TRIGMASK_NONE /** ** \cfeescfg Define Default Filter Trigger Setting for Performance Data Buffer @@ -1138,7 +1096,7 @@ ** disabled and 1 means it is enabled. ** */ -#define CFE_PLATFORM_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_NONE +#define CFE_PLATFORM_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_NONE /** ** \cfeescfg Define Performance Analyzer Child Task Priority @@ -1153,7 +1111,7 @@ ** Valid range for a child task is 1 to 255 however, the priority cannot ** be higher (lower number) than the ES parent application priority. */ -#define CFE_PLATFORM_ES_PERF_CHILD_PRIORITY 200 +#define CFE_PLATFORM_ES_PERF_CHILD_PRIORITY 200 /** ** \cfeescfg Define Performance Analyzer Child Task Stack Size @@ -1167,7 +1125,7 @@ ** is limited by the maximum value allowed by the data type. In this case, the data ** type is an unsigned 32-bit integer, so the valid range is 0 to 0xFFFFFFFF. */ -#define CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE 4096 +#define CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE 4096 /** ** \cfeescfg Define Performance Analyzer Child Task Delay @@ -1182,7 +1140,7 @@ ** is limited by the maximum value allowed by the data type. In this case, the data ** type is an unsigned 32-bit integer, so the valid range is 0 to 0xFFFFFFFF. */ -#define CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY 20 +#define CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY 20 /** ** \cfeescfg Define Performance Analyzer Child Task Number of Entries Between Delay @@ -1192,7 +1150,7 @@ ** Analyzer Child Task will write to the file between delays. ** */ -#define CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS 50 +#define CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS 50 /** ** \cfeescfg Define Default Stack Size for an Application @@ -1219,7 +1177,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_EVS_START_TASK_PRIORITY 61 +#define CFE_PLATFORM_EVS_START_TASK_PRIORITY 61 /** ** \cfeescfg Define EVS Task Stack Size @@ -1234,7 +1192,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfeescfg Define SB Task Priority @@ -1245,7 +1203,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_SB_START_TASK_PRIORITY 64 +#define CFE_PLATFORM_SB_START_TASK_PRIORITY 64 /** ** \cfeescfg Define SB Task Stack Size @@ -1260,7 +1218,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_SB_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_SB_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfeescfg Define ES Task Priority @@ -1271,7 +1229,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_ES_START_TASK_PRIORITY 68 +#define CFE_PLATFORM_ES_START_TASK_PRIORITY 68 /** ** \cfeescfg Define ES Task Stack Size @@ -1286,7 +1244,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfetimecfg Define TIME Task Priorities @@ -1301,9 +1259,9 @@ ** configuration paramaters. Remember that the meaning of each task ** priority is inverted -- a "lower" number has a "higher" priority. */ -#define CFE_PLATFORM_TIME_START_TASK_PRIORITY 60 -#define CFE_PLATFORM_TIME_TONE_TASK_PRIORITY 25 -#define CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY 25 +#define CFE_PLATFORM_TIME_START_TASK_PRIORITY 60 +#define CFE_PLATFORM_TIME_TONE_TASK_PRIORITY 25 +#define CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY 25 /** ** \cfetimecfg Define TIME Task Stack Sizes @@ -1320,9 +1278,9 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE -#define CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE 4096 -#define CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE 8192 +#define CFE_PLATFORM_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE 4096 +#define CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE 8192 /** ** \cfeescfg Define TBL Task Priority @@ -1333,7 +1291,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_PLATFORM_TBL_START_TASK_PRIORITY 70 +#define CFE_PLATFORM_TBL_START_TASK_PRIORITY 70 /** ** \cfeescfg Define TBL Task Stack Size @@ -1348,7 +1306,7 @@ ** tools for measuring the amount of stack used by a task during operation. It ** is always a good idea to verify that no more than 1/2 of the stack is used. */ -#define CFE_PLATFORM_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_PLATFORM_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE /** ** \cfeescfg Define Maximum Number of Registered CDS Blocks @@ -1361,8 +1319,7 @@ ** however, the maximum number of CDS entries is system dependent and ** should be verified. */ -#define CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES 512 - +#define CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES 512 /** ** \cfeescfg Define Number of Processor Resets Before a Power On Reset @@ -1377,8 +1334,7 @@ ** however, the maximum number of processor resets may be system dependent and ** should be verified. */ -#define CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS 2 - +#define CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS 2 /** ** \cfeescfg Define Default ES Memory Pool Block Sizes @@ -1398,24 +1354,23 @@ ** enforced although the table size definitions may be reduced. Refer to the CFS ** Deployment Guide for information about removing CFE Table Services from the CFE. */ -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 8 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 16 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 32 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 48 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 64 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 96 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 128 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 160 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 256 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 512 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 1024 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 2048 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 4096 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 8192 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 16384 -#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 32768 -#define CFE_PLATFORM_ES_MAX_BLOCK_SIZE 80000 - +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 8 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 16 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 32 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 48 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 64 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 96 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 128 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 160 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 256 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 512 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 1024 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 2048 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 4096 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 8192 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 16384 +#define CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 32768 +#define CFE_PLATFORM_ES_MAX_BLOCK_SIZE 80000 /** ** \cfeescfg Define ES Critical Data Store Memory Pool Block Sizes @@ -1426,25 +1381,23 @@ ** \par Limits ** These sizes MUST be increasing and MUST be an integral multiple of 4. */ -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 8 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 16 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 32 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 48 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 64 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 96 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 128 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 160 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 256 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 512 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 1024 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 2048 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 4096 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 8192 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 16384 -#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 32768 -#define CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE 80000 - - +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 8 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 16 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 32 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 48 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 64 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 96 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 128 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 160 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 256 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 512 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 1024 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 2048 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 4096 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 8192 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 16384 +#define CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 32768 +#define CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE 80000 /** ** \cfeevscfg Define Maximum Number of Event Filters per Application @@ -1457,8 +1410,7 @@ ** the maximum number of event filters is system dependent and should be ** verified. */ -#define CFE_PLATFORM_EVS_MAX_EVENT_FILTERS 8 - +#define CFE_PLATFORM_EVS_MAX_EVENT_FILTERS 8 /** ** \cfeevscfg Enable or Disable EVS Local Event Log @@ -1473,7 +1425,6 @@ */ #define CFE_PLATFORM_EVS_LOG_ON - /** ** \cfeevscfg Default Event Log Filename ** @@ -1486,8 +1437,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_EVS_DEFAULT_LOG_FILE "/ram/cfe_evs.log" - +#define CFE_PLATFORM_EVS_DEFAULT_LOG_FILE "/ram/cfe_evs.log" /** ** \cfeevscfg Maximum Number of Events in EVS Local Event Log @@ -1499,8 +1449,7 @@ ** There are no restrictions on the lower and upper limits however, ** the maximum log size is system dependent and should be verified. */ -#define CFE_PLATFORM_EVS_LOG_MAX 20 - +#define CFE_PLATFORM_EVS_LOG_MAX 20 /** ** \cfeevscfg Default EVS Application Data Filename @@ -1515,8 +1464,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE "/ram/cfe_evs_app.dat" - +#define CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE "/ram/cfe_evs_app.dat" /** ** \cfeevscfg Default EVS Output Port State @@ -1530,8 +1478,7 @@ ** \par Limits ** The valid settings are 0x0 to 0xF. */ -#define CFE_PLATFORM_EVS_PORT_DEFAULT 0x0001 - +#define CFE_PLATFORM_EVS_PORT_DEFAULT 0x0001 /** ** \cfeevscfg Default EVS Event Type Filter Mask @@ -1548,9 +1495,7 @@ ** \par Limits ** The valid settings are 0x0 to 0xF. */ -#define CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG 0xE - - +#define CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG 0xE /** ** \cfeevscfg Default EVS Local Event Log Mode @@ -1566,8 +1511,7 @@ ** \par Limits ** The valid settings are 0 or 1 */ -#define CFE_PLATFORM_EVS_DEFAULT_LOG_MODE 1 - +#define CFE_PLATFORM_EVS_DEFAULT_LOG_MODE 1 /** ** \cfeevscfg Default EVS Message Format Mode @@ -1582,8 +1526,6 @@ */ #define CFE_PLATFORM_EVS_DEFAULT_MSG_FORMAT_MODE CFE_EVS_MsgFormat_LONG - - /* Platform Configuration Parameters for Table Service (TBL) */ /** @@ -1598,7 +1540,7 @@ ** \par Limits ** The cFE does not place a limit on the size of this parameter. */ -#define CFE_PLATFORM_TBL_BUF_MEMORY_BYTES 524288 +#define CFE_PLATFORM_TBL_BUF_MEMORY_BYTES 524288 /** ** \cfetblcfg Maximum Size Allowed for a Double Buffered Table @@ -1610,7 +1552,7 @@ ** The cFE does not place a limit on the size of this parameter but it must be ** less than half of #CFE_PLATFORM_TBL_BUF_MEMORY_BYTES. */ -#define CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE 16384 +#define CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE 16384 /** ** \cfetblcfg Maximum Size Allowed for a Single Buffered Table @@ -1626,7 +1568,7 @@ ** small enough to allow for #CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS number of tables ** to fit into #CFE_PLATFORM_TBL_BUF_MEMORY_BYTES. */ -#define CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE 16384 +#define CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE 16384 /** ** \cfetblcfg Maximum Number of Tables Allowed to be Registered @@ -1639,7 +1581,7 @@ ** determines the size of the Table Registry. An excessively high number will waste ** memory. */ -#define CFE_PLATFORM_TBL_MAX_NUM_TABLES 128 +#define CFE_PLATFORM_TBL_MAX_NUM_TABLES 128 /** ** \cfetblcfg Maximum Number of Critical Tables that can be Registered @@ -1653,7 +1595,7 @@ ** Data Store. An excessively high number will waste Critical Data Store memory. Therefore, ** this number must not exceed the value defined in CFE_ES_CDS_MAX_CRITICAL_TABLES. */ -#define CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES 32 +#define CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES 32 /** ** \cfetblcfg Maximum Number of Table Handles @@ -1666,7 +1608,7 @@ ** the number of tables (#CFE_PLATFORM_TBL_MAX_NUM_TABLES) and should be set higher if tables ** are shared between applications. */ -#define CFE_PLATFORM_TBL_MAX_NUM_HANDLES 256 +#define CFE_PLATFORM_TBL_MAX_NUM_HANDLES 256 /** ** \cfetblcfg Maximum Number of Simultaneous Loads to Support @@ -1681,7 +1623,7 @@ ** degrade system performance and waste memory. A number less than 5 is ** suggested but not required. */ -#define CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS 4 +#define CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS 4 /** ** \cfetblcfg Maximum Number of Simultaneous Table Validations @@ -1699,7 +1641,7 @@ ** degrade system performance and waste memory. A number less than 20 is ** suggested but not required. */ -#define CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS 10 +#define CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS 10 /** ** \cfetblcfg Default Filename for a Table Registry Dump @@ -1712,7 +1654,7 @@ ** The length of each string, including the NULL terminator cannot exceed the ** #OS_MAX_PATH_LEN value. */ -#define CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE "/ram/cfe_tbl_reg.log" +#define CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE "/ram/cfe_tbl_reg.log" /** ** \cfetblcfg Number of Spacecraft ID's specified for validation @@ -1731,14 +1673,11 @@ ** This number must be greater than or equal to zero and ** less than or equal to 2. */ -#define CFE_PLATFORM_TBL_VALID_SCID_COUNT 0 +#define CFE_PLATFORM_TBL_VALID_SCID_COUNT 0 /* macro to construct 32 bit value from 4 chars */ -#define CFE_PLATFORM_TBL_U32FROM4CHARS( _C1, _C2, _C3, _C4 ) \ - ( (uint32)(_C1) << 24 | \ - (uint32)(_C2) << 16 | \ - (uint32)(_C3) << 8 | \ - (uint32)(_C4) ) +#define CFE_PLATFORM_TBL_U32FROM4CHARS(_C1, _C2, _C3, _C4) \ + ((uint32)(_C1) << 24 | (uint32)(_C2) << 16 | (uint32)(_C3) << 8 | (uint32)(_C4)) /** ** \cfetblcfg Spacecraft ID values used for table load validation @@ -1752,8 +1691,8 @@ ** \par Limits ** This value can be any 32 bit unsigned integer. */ -#define CFE_PLATFORM_TBL_VALID_SCID_1 (CFE_MISSION_SPACECRAFT_ID) -#define CFE_PLATFORM_TBL_VALID_SCID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) +#define CFE_PLATFORM_TBL_VALID_SCID_1 (CFE_MISSION_SPACECRAFT_ID) +#define CFE_PLATFORM_TBL_VALID_SCID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) /** ** \cfetblcfg Number of Processor ID's specified for validation @@ -1772,7 +1711,7 @@ ** This number must be greater than or equal to zero and ** less than or equal to 4. */ -#define CFE_PLATFORM_TBL_VALID_PRID_COUNT 0 +#define CFE_PLATFORM_TBL_VALID_PRID_COUNT 0 /** ** \cfetblcfg Processor ID values used for table load validation @@ -1786,10 +1725,10 @@ ** \par Limits ** This value can be any 32 bit unsigned integer. */ -#define CFE_PLATFORM_TBL_VALID_PRID_1 (CFE_PLATFORM_CPU_ID) -#define CFE_PLATFORM_TBL_VALID_PRID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) -#define CFE_PLATFORM_TBL_VALID_PRID_3 0 -#define CFE_PLATFORM_TBL_VALID_PRID_4 0 +#define CFE_PLATFORM_TBL_VALID_PRID_1 (CFE_PLATFORM_CPU_ID) +#define CFE_PLATFORM_TBL_VALID_PRID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd')) +#define CFE_PLATFORM_TBL_VALID_PRID_3 0 +#define CFE_PLATFORM_TBL_VALID_PRID_4 0 /** \cfeescfg Mission specific version number for cFE ** @@ -1804,7 +1743,7 @@ ** Must be defined as a numeric value that is greater than ** or equal to zero. */ -#define CFE_MISSION_REV 0 +#define CFE_MISSION_REV 0 /** \cfeescfg Poll timer for startup sync delay ** @@ -1826,7 +1765,7 @@ ** Must be defined as an integer value that is greater than ** or equal to zero. */ -#define CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC 50 +#define CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC 50 /** \cfeescfg CFE core application startup timeout ** @@ -1850,7 +1789,7 @@ ** or equal to zero. ** */ -#define CFE_PLATFORM_CORE_MAX_STARTUP_MSEC 30000 +#define CFE_PLATFORM_CORE_MAX_STARTUP_MSEC 30000 /** \cfeescfg Startup script timeout ** @@ -1867,9 +1806,8 @@ ** \par Limits: ** Must be defined as an integer value that is greater than ** or equal to zero. - */ -#define CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC 1000 - +*/ +#define CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC 1000 /* * Compatibility layer for CFE release 6.6 @@ -1886,198 +1824,197 @@ */ #ifndef CFE_OMIT_DEPRECATED_6_6 -#define CFE_CPU_ID CFE_PLATFORM_CPU_ID -#define CFE_CPU_NAME CFE_PLATFORM_CPU_NAME -#define CFE_SB_MAX_MSG_IDS CFE_PLATFORM_SB_MAX_MSG_IDS -#define CFE_SB_MAX_PIPES CFE_PLATFORM_SB_MAX_PIPES -#define CFE_SB_MAX_DEST_PER_PKT CFE_PLATFORM_SB_MAX_DEST_PER_PKT -#define CFE_SB_DEFAULT_MSG_LIMIT CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT -#define CFE_SB_BUF_MEMORY_BYTES CFE_PLATFORM_SB_BUF_MEMORY_BYTES -#define CFE_SB_MAX_PIPE_DEPTH CFE_PLATFORM_SB_MAX_PIPE_DEPTH -#define CFE_SB_HIGHEST_VALID_MSGID CFE_PLATFORM_SB_HIGHEST_VALID_MSGID -#define CFE_SB_DEFAULT_ROUTING_FILENAME CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME -#define CFE_SB_DEFAULT_PIPE_FILENAME CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME -#define CFE_SB_DEFAULT_MAP_FILENAME CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME -#define CFE_SB_FILTERED_EVENT1 CFE_PLATFORM_SB_FILTERED_EVENT1 -#define CFE_SB_FILTER_MASK1 CFE_PLATFORM_SB_FILTER_MASK1 -#define CFE_SB_FILTERED_EVENT2 CFE_PLATFORM_SB_FILTERED_EVENT2 -#define CFE_SB_FILTER_MASK2 CFE_PLATFORM_SB_FILTER_MASK2 -#define CFE_SB_FILTERED_EVENT3 CFE_PLATFORM_SB_FILTERED_EVENT3 -#define CFE_SB_FILTER_MASK3 CFE_PLATFORM_SB_FILTER_MASK3 -#define CFE_SB_FILTERED_EVENT4 CFE_PLATFORM_SB_FILTERED_EVENT4 -#define CFE_SB_FILTER_MASK4 CFE_PLATFORM_SB_FILTER_MASK4 -#define CFE_SB_FILTERED_EVENT5 CFE_PLATFORM_SB_FILTERED_EVENT5 -#define CFE_SB_FILTER_MASK5 CFE_PLATFORM_SB_FILTER_MASK5 -#define CFE_SB_FILTERED_EVENT6 CFE_PLATFORM_SB_FILTERED_EVENT6 -#define CFE_SB_FILTER_MASK6 CFE_PLATFORM_SB_FILTER_MASK6 -#define CFE_SB_FILTERED_EVENT7 CFE_PLATFORM_SB_FILTERED_EVENT7 -#define CFE_SB_FILTER_MASK7 CFE_PLATFORM_SB_FILTER_MASK7 -#define CFE_SB_FILTERED_EVENT8 CFE_PLATFORM_SB_FILTERED_EVENT8 -#define CFE_SB_FILTER_MASK8 CFE_PLATFORM_SB_FILTER_MASK8 -#define CFE_SB_MEM_BLOCK_SIZE_01 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 -#define CFE_SB_MEM_BLOCK_SIZE_02 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 -#define CFE_SB_MEM_BLOCK_SIZE_03 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 -#define CFE_SB_MEM_BLOCK_SIZE_04 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 -#define CFE_SB_MEM_BLOCK_SIZE_05 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 -#define CFE_SB_MEM_BLOCK_SIZE_06 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 -#define CFE_SB_MEM_BLOCK_SIZE_07 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 -#define CFE_SB_MEM_BLOCK_SIZE_08 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 -#define CFE_SB_MEM_BLOCK_SIZE_09 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 -#define CFE_SB_MEM_BLOCK_SIZE_10 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 -#define CFE_SB_MEM_BLOCK_SIZE_11 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 -#define CFE_SB_MEM_BLOCK_SIZE_12 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 -#define CFE_SB_MEM_BLOCK_SIZE_13 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 -#define CFE_SB_MEM_BLOCK_SIZE_14 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 -#define CFE_SB_MEM_BLOCK_SIZE_15 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 -#define CFE_SB_MEM_BLOCK_SIZE_16 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 -#define CFE_SB_MAX_BLOCK_SIZE CFE_PLATFORM_SB_MAX_BLOCK_SIZE -#define CFE_SB_DEFAULT_REPORT_SENDER CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER -#define CFE_TIME_CFG_SERVER CFE_PLATFORM_TIME_CFG_SERVER -#define CFE_TIME_CFG_CLIENT CFE_PLATFORM_TIME_CFG_CLIENT -#define CFE_TIME_CFG_VIRTUAL CFE_PLATFORM_TIME_CFG_VIRTUAL -#define CFE_TIME_CFG_SIGNAL CFE_PLATFORM_TIME_CFG_SIGNAL -#define CFE_TIME_CFG_SOURCE CFE_PLATFORM_TIME_CFG_SOURCE -#define CFE_TIME_CFG_SRC_MET CFE_PLATFORM_TIME_CFG_SRC_MET -#define CFE_TIME_CFG_SRC_GPS CFE_PLATFORM_TIME_CFG_SRC_GPS -#define CFE_TIME_CFG_SRC_TIME CFE_PLATFORM_TIME_CFG_SRC_TIME -#define CFE_TIME_MAX_DELTA_SECS CFE_PLATFORM_TIME_MAX_DELTA_SECS -#define CFE_TIME_MAX_DELTA_SUBS CFE_PLATFORM_TIME_MAX_DELTA_SUBS -#define CFE_TIME_MAX_LOCAL_SECS CFE_PLATFORM_TIME_MAX_LOCAL_SECS -#define CFE_TIME_MAX_LOCAL_SUBS CFE_PLATFORM_TIME_MAX_LOCAL_SUBS -#define CFE_TIME_CFG_TONE_LIMIT CFE_PLATFORM_TIME_CFG_TONE_LIMIT -#define CFE_TIME_CFG_START_FLY CFE_PLATFORM_TIME_CFG_START_FLY -#define CFE_TIME_CFG_LATCH_FLY CFE_PLATFORM_TIME_CFG_LATCH_FLY -#define CFE_ES_MAX_APPLICATIONS CFE_PLATFORM_ES_MAX_APPLICATIONS -#define CFE_ES_MAX_LIBRARIES CFE_PLATFORM_ES_MAX_LIBRARIES -#define CFE_ES_ER_LOG_ENTRIES CFE_PLATFORM_ES_ER_LOG_ENTRIES -#define CFE_ES_ER_LOG_MAX_CONTEXT_SIZE CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE -#define CFE_ES_SYSTEM_LOG_SIZE CFE_PLATFORM_ES_SYSTEM_LOG_SIZE -#define CFE_ES_OBJECT_TABLE_SIZE CFE_PLATFORM_ES_OBJECT_TABLE_SIZE -#define CFE_ES_MAX_GEN_COUNTERS CFE_PLATFORM_ES_MAX_GEN_COUNTERS -#define CFE_ES_APP_SCAN_RATE CFE_PLATFORM_ES_APP_SCAN_RATE -#define CFE_ES_APP_KILL_TIMEOUT CFE_PLATFORM_ES_APP_KILL_TIMEOUT -#define CFE_ES_RAM_DISK_SECTOR_SIZE CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE -#define CFE_ES_RAM_DISK_NUM_SECTORS CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS -#define CFE_ES_RAM_DISK_PERCENT_RESERVED CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED -#define CFE_ES_RAM_DISK_MOUNT_STRING CFE_PLATFORM_ES_RAM_DISK_MOUNT_STRING -#define CFE_ES_CDS_SIZE CFE_PLATFORM_ES_CDS_SIZE -#define CFE_ES_USER_RESERVED_SIZE CFE_PLATFORM_ES_USER_RESERVED_SIZE -#define CFE_ES_RESET_AREA_SIZE CFE_PLATFORM_ES_RESET_AREA_SIZE -#define CFE_ES_NONVOL_STARTUP_FILE CFE_PLATFORM_ES_NONVOL_STARTUP_FILE -#define CFE_ES_VOLATILE_STARTUP_FILE CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE -#define CFE_ES_DEFAULT_SHELL_FILENAME CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME -#define CFE_ES_MAX_SHELL_CMD CFE_PLATFORM_ES_MAX_SHELL_CMD -#define CFE_ES_MAX_SHELL_PKT CFE_PLATFORM_ES_MAX_SHELL_PKT -#define CFE_ES_DEFAULT_APP_LOG_FILE CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE -#define CFE_ES_DEFAULT_TASK_LOG_FILE CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE -#define CFE_ES_DEFAULT_SYSLOG_FILE CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE -#define CFE_ES_DEFAULT_ER_LOG_FILE CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE -#define CFE_ES_DEFAULT_PERF_DUMP_FILENAME CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME -#define CFE_ES_DEFAULT_CDS_REG_DUMP_FILE CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE -#define CFE_ES_DEFAULT_SYSLOG_MODE CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE -#define CFE_ES_PERF_MAX_IDS CFE_PLATFORM_ES_PERF_MAX_IDS -#define CFE_ES_PERF_DATA_BUFFER_SIZE CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE -#define CFE_ES_PERF_FILTMASK_NONE CFE_PLATFORM_ES_PERF_FILTMASK_NONE -#define CFE_ES_PERF_FILTMASK_ALL CFE_PLATFORM_ES_PERF_FILTMASK_ALL -#define CFE_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_INIT -#define CFE_ES_PERF_TRIGMASK_NONE CFE_PLATFORM_ES_PERF_TRIGMASK_NONE -#define CFE_ES_PERF_TRIGMASK_ALL CFE_PLATFORM_ES_PERF_TRIGMASK_ALL -#define CFE_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_INIT -#define CFE_ES_PERF_CHILD_PRIORITY CFE_PLATFORM_ES_PERF_CHILD_PRIORITY -#define CFE_ES_PERF_CHILD_STACK_SIZE CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE -#define CFE_ES_PERF_CHILD_MS_DELAY CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY -#define CFE_ES_PERF_ENTRIES_BTWN_DLYS CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS -#define CFE_ES_DEFAULT_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE -#define CFE_ES_EXCEPTION_FUNCTION CFE_PLATFORM_ES_EXCEPTION_FUNCTION -#define CFE_EVS_START_TASK_PRIORITY CFE_PLATFORM_EVS_START_TASK_PRIORITY -#define CFE_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_EVS_START_TASK_STACK_SIZE -#define CFE_SB_START_TASK_PRIORITY CFE_PLATFORM_SB_START_TASK_PRIORITY -#define CFE_SB_START_TASK_STACK_SIZE CFE_PLATFORM_SB_START_TASK_STACK_SIZE -#define CFE_ES_START_TASK_PRIORITY CFE_PLATFORM_ES_START_TASK_PRIORITY -#define CFE_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_START_TASK_STACK_SIZE -#define CFE_TIME_START_TASK_PRIORITY CFE_PLATFORM_TIME_START_TASK_PRIORITY -#define CFE_TIME_TONE_TASK_PRIORITY CFE_PLATFORM_TIME_TONE_TASK_PRIORITY -#define CFE_TIME_1HZ_TASK_PRIORITY CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY -#define CFE_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_TIME_START_TASK_STACK_SIZE -#define CFE_TIME_TONE_TASK_STACK_SIZE CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE -#define CFE_TIME_1HZ_TASK_STACK_SIZE CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE -#define CFE_TBL_START_TASK_PRIORITY CFE_PLATFORM_TBL_START_TASK_PRIORITY -#define CFE_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_TBL_START_TASK_STACK_SIZE -#define CFE_ES_CDS_MAX_NUM_ENTRIES CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES -#define CFE_ES_MAX_PROCESSOR_RESETS CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS -#define CFE_ES_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 -#define CFE_ES_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 -#define CFE_ES_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 -#define CFE_ES_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 -#define CFE_ES_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 -#define CFE_ES_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 -#define CFE_ES_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 -#define CFE_ES_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 -#define CFE_ES_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 -#define CFE_ES_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 -#define CFE_ES_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 -#define CFE_ES_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 -#define CFE_ES_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 -#define CFE_ES_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 -#define CFE_ES_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 -#define CFE_ES_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 -#define CFE_ES_MAX_BLOCK_SIZE CFE_PLATFORM_ES_MAX_BLOCK_SIZE -#define CFE_ES_CDS_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 -#define CFE_ES_CDS_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 -#define CFE_ES_CDS_MAX_BLOCK_SIZE CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE -#define CFE_EVS_MAX_EVENT_FILTERS CFE_PLATFORM_EVS_MAX_EVENT_FILTERS -#define CFE_EVS_LOG_ON CFE_PLATFORM_EVS_LOG_ON -#define CFE_EVS_DEFAULT_LOG_FILE CFE_PLATFORM_EVS_DEFAULT_LOG_FILE -#define CFE_EVS_LOG_MAX CFE_PLATFORM_EVS_LOG_MAX -#define CFE_EVS_DEFAULT_APP_DATA_FILE CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE -#define CFE_EVS_PORT_DEFAULT CFE_PLATFORM_EVS_PORT_DEFAULT -#define CFE_EVS_DEFAULT_TYPE_FLAG CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG -#define CFE_EVS_DEFAULT_LOG_MODE CFE_PLATFORM_EVS_DEFAULT_LOG_MODE -#define CFE_EVS_DEFAULT_MSG_FORMAT_MODE CFE_PLATFORM_EVS_DEFAULT_MSG_FORMAT_MODE -#define CFE_TBL_BUF_MEMORY_BYTES CFE_PLATFORM_TBL_BUF_MEMORY_BYTES -#define CFE_TBL_MAX_DBL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE -#define CFE_TBL_MAX_SNGL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE -#define CFE_TBL_MAX_NUM_TABLES CFE_PLATFORM_TBL_MAX_NUM_TABLES -#define CFE_TBL_MAX_CRITICAL_TABLES CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES -#define CFE_TBL_MAX_NUM_HANDLES CFE_PLATFORM_TBL_MAX_NUM_HANDLES -#define CFE_TBL_MAX_SIMULTANEOUS_LOADS CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS -#define CFE_TBL_MAX_NUM_VALIDATIONS CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS -#define CFE_TBL_DEFAULT_REG_DUMP_FILE CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE -#define CFE_TBL_VALID_SCID_COUNT CFE_PLATFORM_TBL_VALID_SCID_COUNT -#define CFE_TBL_U32FROM4CHARS CFE_PLATFORM_TBL_U32FROM4CHARS -#define CFE_TBL_VALID_SCID_1 CFE_PLATFORM_TBL_VALID_SCID_1 -#define CFE_TBL_VALID_SCID_2 CFE_PLATFORM_TBL_VALID_SCID_2 -#define CFE_TBL_VALID_PRID_COUNT CFE_PLATFORM_TBL_VALID_PRID_COUNT -#define CFE_TBL_VALID_PRID_1 CFE_PLATFORM_TBL_VALID_PRID_1 -#define CFE_TBL_VALID_PRID_2 CFE_PLATFORM_TBL_VALID_PRID_2 -#define CFE_TBL_VALID_PRID_3 CFE_PLATFORM_TBL_VALID_PRID_3 -#define CFE_TBL_VALID_PRID_4 CFE_PLATFORM_TBL_VALID_PRID_4 -#define CFE_ES_STARTUP_SYNC_POLL_MSEC CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC -#define CFE_CORE_MAX_STARTUP_MSEC CFE_PLATFORM_CORE_MAX_STARTUP_MSEC -#define CFE_ES_STARTUP_SCRIPT_TIMEOUT_MSEC CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC +#define CFE_CPU_ID CFE_PLATFORM_CPU_ID +#define CFE_CPU_NAME CFE_PLATFORM_CPU_NAME +#define CFE_SB_MAX_MSG_IDS CFE_PLATFORM_SB_MAX_MSG_IDS +#define CFE_SB_MAX_PIPES CFE_PLATFORM_SB_MAX_PIPES +#define CFE_SB_MAX_DEST_PER_PKT CFE_PLATFORM_SB_MAX_DEST_PER_PKT +#define CFE_SB_DEFAULT_MSG_LIMIT CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT +#define CFE_SB_BUF_MEMORY_BYTES CFE_PLATFORM_SB_BUF_MEMORY_BYTES +#define CFE_SB_MAX_PIPE_DEPTH CFE_PLATFORM_SB_MAX_PIPE_DEPTH +#define CFE_SB_HIGHEST_VALID_MSGID CFE_PLATFORM_SB_HIGHEST_VALID_MSGID +#define CFE_SB_DEFAULT_ROUTING_FILENAME CFE_PLATFORM_SB_DEFAULT_ROUTING_FILENAME +#define CFE_SB_DEFAULT_PIPE_FILENAME CFE_PLATFORM_SB_DEFAULT_PIPE_FILENAME +#define CFE_SB_DEFAULT_MAP_FILENAME CFE_PLATFORM_SB_DEFAULT_MAP_FILENAME +#define CFE_SB_FILTERED_EVENT1 CFE_PLATFORM_SB_FILTERED_EVENT1 +#define CFE_SB_FILTER_MASK1 CFE_PLATFORM_SB_FILTER_MASK1 +#define CFE_SB_FILTERED_EVENT2 CFE_PLATFORM_SB_FILTERED_EVENT2 +#define CFE_SB_FILTER_MASK2 CFE_PLATFORM_SB_FILTER_MASK2 +#define CFE_SB_FILTERED_EVENT3 CFE_PLATFORM_SB_FILTERED_EVENT3 +#define CFE_SB_FILTER_MASK3 CFE_PLATFORM_SB_FILTER_MASK3 +#define CFE_SB_FILTERED_EVENT4 CFE_PLATFORM_SB_FILTERED_EVENT4 +#define CFE_SB_FILTER_MASK4 CFE_PLATFORM_SB_FILTER_MASK4 +#define CFE_SB_FILTERED_EVENT5 CFE_PLATFORM_SB_FILTERED_EVENT5 +#define CFE_SB_FILTER_MASK5 CFE_PLATFORM_SB_FILTER_MASK5 +#define CFE_SB_FILTERED_EVENT6 CFE_PLATFORM_SB_FILTERED_EVENT6 +#define CFE_SB_FILTER_MASK6 CFE_PLATFORM_SB_FILTER_MASK6 +#define CFE_SB_FILTERED_EVENT7 CFE_PLATFORM_SB_FILTERED_EVENT7 +#define CFE_SB_FILTER_MASK7 CFE_PLATFORM_SB_FILTER_MASK7 +#define CFE_SB_FILTERED_EVENT8 CFE_PLATFORM_SB_FILTERED_EVENT8 +#define CFE_SB_FILTER_MASK8 CFE_PLATFORM_SB_FILTER_MASK8 +#define CFE_SB_MEM_BLOCK_SIZE_01 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_01 +#define CFE_SB_MEM_BLOCK_SIZE_02 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_02 +#define CFE_SB_MEM_BLOCK_SIZE_03 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_03 +#define CFE_SB_MEM_BLOCK_SIZE_04 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_04 +#define CFE_SB_MEM_BLOCK_SIZE_05 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_05 +#define CFE_SB_MEM_BLOCK_SIZE_06 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_06 +#define CFE_SB_MEM_BLOCK_SIZE_07 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_07 +#define CFE_SB_MEM_BLOCK_SIZE_08 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_08 +#define CFE_SB_MEM_BLOCK_SIZE_09 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_09 +#define CFE_SB_MEM_BLOCK_SIZE_10 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_10 +#define CFE_SB_MEM_BLOCK_SIZE_11 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_11 +#define CFE_SB_MEM_BLOCK_SIZE_12 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_12 +#define CFE_SB_MEM_BLOCK_SIZE_13 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_13 +#define CFE_SB_MEM_BLOCK_SIZE_14 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_14 +#define CFE_SB_MEM_BLOCK_SIZE_15 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_15 +#define CFE_SB_MEM_BLOCK_SIZE_16 CFE_PLATFORM_SB_MEM_BLOCK_SIZE_16 +#define CFE_SB_MAX_BLOCK_SIZE CFE_PLATFORM_SB_MAX_BLOCK_SIZE +#define CFE_SB_DEFAULT_REPORT_SENDER CFE_PLATFORM_SB_DEFAULT_REPORT_SENDER +#define CFE_TIME_CFG_SERVER CFE_PLATFORM_TIME_CFG_SERVER +#define CFE_TIME_CFG_CLIENT CFE_PLATFORM_TIME_CFG_CLIENT +#define CFE_TIME_CFG_VIRTUAL CFE_PLATFORM_TIME_CFG_VIRTUAL +#define CFE_TIME_CFG_SIGNAL CFE_PLATFORM_TIME_CFG_SIGNAL +#define CFE_TIME_CFG_SOURCE CFE_PLATFORM_TIME_CFG_SOURCE +#define CFE_TIME_CFG_SRC_MET CFE_PLATFORM_TIME_CFG_SRC_MET +#define CFE_TIME_CFG_SRC_GPS CFE_PLATFORM_TIME_CFG_SRC_GPS +#define CFE_TIME_CFG_SRC_TIME CFE_PLATFORM_TIME_CFG_SRC_TIME +#define CFE_TIME_MAX_DELTA_SECS CFE_PLATFORM_TIME_MAX_DELTA_SECS +#define CFE_TIME_MAX_DELTA_SUBS CFE_PLATFORM_TIME_MAX_DELTA_SUBS +#define CFE_TIME_MAX_LOCAL_SECS CFE_PLATFORM_TIME_MAX_LOCAL_SECS +#define CFE_TIME_MAX_LOCAL_SUBS CFE_PLATFORM_TIME_MAX_LOCAL_SUBS +#define CFE_TIME_CFG_TONE_LIMIT CFE_PLATFORM_TIME_CFG_TONE_LIMIT +#define CFE_TIME_CFG_START_FLY CFE_PLATFORM_TIME_CFG_START_FLY +#define CFE_TIME_CFG_LATCH_FLY CFE_PLATFORM_TIME_CFG_LATCH_FLY +#define CFE_ES_MAX_APPLICATIONS CFE_PLATFORM_ES_MAX_APPLICATIONS +#define CFE_ES_MAX_LIBRARIES CFE_PLATFORM_ES_MAX_LIBRARIES +#define CFE_ES_ER_LOG_ENTRIES CFE_PLATFORM_ES_ER_LOG_ENTRIES +#define CFE_ES_ER_LOG_MAX_CONTEXT_SIZE CFE_PLATFORM_ES_ER_LOG_MAX_CONTEXT_SIZE +#define CFE_ES_SYSTEM_LOG_SIZE CFE_PLATFORM_ES_SYSTEM_LOG_SIZE +#define CFE_ES_OBJECT_TABLE_SIZE CFE_PLATFORM_ES_OBJECT_TABLE_SIZE +#define CFE_ES_MAX_GEN_COUNTERS CFE_PLATFORM_ES_MAX_GEN_COUNTERS +#define CFE_ES_APP_SCAN_RATE CFE_PLATFORM_ES_APP_SCAN_RATE +#define CFE_ES_APP_KILL_TIMEOUT CFE_PLATFORM_ES_APP_KILL_TIMEOUT +#define CFE_ES_RAM_DISK_SECTOR_SIZE CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE +#define CFE_ES_RAM_DISK_NUM_SECTORS CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS +#define CFE_ES_RAM_DISK_PERCENT_RESERVED CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED +#define CFE_ES_RAM_DISK_MOUNT_STRING CFE_PLATFORM_ES_RAM_DISK_MOUNT_STRING +#define CFE_ES_CDS_SIZE CFE_PLATFORM_ES_CDS_SIZE +#define CFE_ES_USER_RESERVED_SIZE CFE_PLATFORM_ES_USER_RESERVED_SIZE +#define CFE_ES_RESET_AREA_SIZE CFE_PLATFORM_ES_RESET_AREA_SIZE +#define CFE_ES_NONVOL_STARTUP_FILE CFE_PLATFORM_ES_NONVOL_STARTUP_FILE +#define CFE_ES_VOLATILE_STARTUP_FILE CFE_PLATFORM_ES_VOLATILE_STARTUP_FILE +#define CFE_ES_DEFAULT_SHELL_FILENAME CFE_PLATFORM_ES_DEFAULT_SHELL_FILENAME +#define CFE_ES_MAX_SHELL_CMD CFE_PLATFORM_ES_MAX_SHELL_CMD +#define CFE_ES_MAX_SHELL_PKT CFE_PLATFORM_ES_MAX_SHELL_PKT +#define CFE_ES_DEFAULT_APP_LOG_FILE CFE_PLATFORM_ES_DEFAULT_APP_LOG_FILE +#define CFE_ES_DEFAULT_TASK_LOG_FILE CFE_PLATFORM_ES_DEFAULT_TASK_LOG_FILE +#define CFE_ES_DEFAULT_SYSLOG_FILE CFE_PLATFORM_ES_DEFAULT_SYSLOG_FILE +#define CFE_ES_DEFAULT_ER_LOG_FILE CFE_PLATFORM_ES_DEFAULT_ER_LOG_FILE +#define CFE_ES_DEFAULT_PERF_DUMP_FILENAME CFE_PLATFORM_ES_DEFAULT_PERF_DUMP_FILENAME +#define CFE_ES_DEFAULT_CDS_REG_DUMP_FILE CFE_PLATFORM_ES_DEFAULT_CDS_REG_DUMP_FILE +#define CFE_ES_DEFAULT_SYSLOG_MODE CFE_PLATFORM_ES_DEFAULT_PR_SYSLOG_MODE +#define CFE_ES_PERF_MAX_IDS CFE_PLATFORM_ES_PERF_MAX_IDS +#define CFE_ES_PERF_DATA_BUFFER_SIZE CFE_PLATFORM_ES_PERF_DATA_BUFFER_SIZE +#define CFE_ES_PERF_FILTMASK_NONE CFE_PLATFORM_ES_PERF_FILTMASK_NONE +#define CFE_ES_PERF_FILTMASK_ALL CFE_PLATFORM_ES_PERF_FILTMASK_ALL +#define CFE_ES_PERF_FILTMASK_INIT CFE_PLATFORM_ES_PERF_FILTMASK_INIT +#define CFE_ES_PERF_TRIGMASK_NONE CFE_PLATFORM_ES_PERF_TRIGMASK_NONE +#define CFE_ES_PERF_TRIGMASK_ALL CFE_PLATFORM_ES_PERF_TRIGMASK_ALL +#define CFE_ES_PERF_TRIGMASK_INIT CFE_PLATFORM_ES_PERF_TRIGMASK_INIT +#define CFE_ES_PERF_CHILD_PRIORITY CFE_PLATFORM_ES_PERF_CHILD_PRIORITY +#define CFE_ES_PERF_CHILD_STACK_SIZE CFE_PLATFORM_ES_PERF_CHILD_STACK_SIZE +#define CFE_ES_PERF_CHILD_MS_DELAY CFE_PLATFORM_ES_PERF_CHILD_MS_DELAY +#define CFE_ES_PERF_ENTRIES_BTWN_DLYS CFE_PLATFORM_ES_PERF_ENTRIES_BTWN_DLYS +#define CFE_ES_DEFAULT_STACK_SIZE CFE_PLATFORM_ES_DEFAULT_STACK_SIZE +#define CFE_ES_EXCEPTION_FUNCTION CFE_PLATFORM_ES_EXCEPTION_FUNCTION +#define CFE_EVS_START_TASK_PRIORITY CFE_PLATFORM_EVS_START_TASK_PRIORITY +#define CFE_EVS_START_TASK_STACK_SIZE CFE_PLATFORM_EVS_START_TASK_STACK_SIZE +#define CFE_SB_START_TASK_PRIORITY CFE_PLATFORM_SB_START_TASK_PRIORITY +#define CFE_SB_START_TASK_STACK_SIZE CFE_PLATFORM_SB_START_TASK_STACK_SIZE +#define CFE_ES_START_TASK_PRIORITY CFE_PLATFORM_ES_START_TASK_PRIORITY +#define CFE_ES_START_TASK_STACK_SIZE CFE_PLATFORM_ES_START_TASK_STACK_SIZE +#define CFE_TIME_START_TASK_PRIORITY CFE_PLATFORM_TIME_START_TASK_PRIORITY +#define CFE_TIME_TONE_TASK_PRIORITY CFE_PLATFORM_TIME_TONE_TASK_PRIORITY +#define CFE_TIME_1HZ_TASK_PRIORITY CFE_PLATFORM_TIME_1HZ_TASK_PRIORITY +#define CFE_TIME_START_TASK_STACK_SIZE CFE_PLATFORM_TIME_START_TASK_STACK_SIZE +#define CFE_TIME_TONE_TASK_STACK_SIZE CFE_PLATFORM_TIME_TONE_TASK_STACK_SIZE +#define CFE_TIME_1HZ_TASK_STACK_SIZE CFE_PLATFORM_TIME_1HZ_TASK_STACK_SIZE +#define CFE_TBL_START_TASK_PRIORITY CFE_PLATFORM_TBL_START_TASK_PRIORITY +#define CFE_TBL_START_TASK_STACK_SIZE CFE_PLATFORM_TBL_START_TASK_STACK_SIZE +#define CFE_ES_CDS_MAX_NUM_ENTRIES CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES +#define CFE_ES_MAX_PROCESSOR_RESETS CFE_PLATFORM_ES_MAX_PROCESSOR_RESETS +#define CFE_ES_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_01 +#define CFE_ES_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_02 +#define CFE_ES_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_03 +#define CFE_ES_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_04 +#define CFE_ES_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_05 +#define CFE_ES_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_06 +#define CFE_ES_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_07 +#define CFE_ES_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_08 +#define CFE_ES_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_09 +#define CFE_ES_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_10 +#define CFE_ES_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_11 +#define CFE_ES_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_12 +#define CFE_ES_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_13 +#define CFE_ES_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_14 +#define CFE_ES_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_15 +#define CFE_ES_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_MEM_BLOCK_SIZE_16 +#define CFE_ES_MAX_BLOCK_SIZE CFE_PLATFORM_ES_MAX_BLOCK_SIZE +#define CFE_ES_CDS_MEM_BLOCK_SIZE_01 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_01 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_02 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_02 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_03 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_03 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_04 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_04 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_05 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_05 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_06 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_06 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_07 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_07 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_08 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_08 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_09 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_09 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_10 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_10 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_11 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_11 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_12 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_12 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_13 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_13 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_14 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_14 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_15 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_15 +#define CFE_ES_CDS_MEM_BLOCK_SIZE_16 CFE_PLATFORM_ES_CDS_MEM_BLOCK_SIZE_16 +#define CFE_ES_CDS_MAX_BLOCK_SIZE CFE_PLATFORM_ES_CDS_MAX_BLOCK_SIZE +#define CFE_EVS_MAX_EVENT_FILTERS CFE_PLATFORM_EVS_MAX_EVENT_FILTERS +#define CFE_EVS_LOG_ON CFE_PLATFORM_EVS_LOG_ON +#define CFE_EVS_DEFAULT_LOG_FILE CFE_PLATFORM_EVS_DEFAULT_LOG_FILE +#define CFE_EVS_LOG_MAX CFE_PLATFORM_EVS_LOG_MAX +#define CFE_EVS_DEFAULT_APP_DATA_FILE CFE_PLATFORM_EVS_DEFAULT_APP_DATA_FILE +#define CFE_EVS_PORT_DEFAULT CFE_PLATFORM_EVS_PORT_DEFAULT +#define CFE_EVS_DEFAULT_TYPE_FLAG CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG +#define CFE_EVS_DEFAULT_LOG_MODE CFE_PLATFORM_EVS_DEFAULT_LOG_MODE +#define CFE_EVS_DEFAULT_MSG_FORMAT_MODE CFE_PLATFORM_EVS_DEFAULT_MSG_FORMAT_MODE +#define CFE_TBL_BUF_MEMORY_BYTES CFE_PLATFORM_TBL_BUF_MEMORY_BYTES +#define CFE_TBL_MAX_DBL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_DBL_TABLE_SIZE +#define CFE_TBL_MAX_SNGL_TABLE_SIZE CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE +#define CFE_TBL_MAX_NUM_TABLES CFE_PLATFORM_TBL_MAX_NUM_TABLES +#define CFE_TBL_MAX_CRITICAL_TABLES CFE_PLATFORM_TBL_MAX_CRITICAL_TABLES +#define CFE_TBL_MAX_NUM_HANDLES CFE_PLATFORM_TBL_MAX_NUM_HANDLES +#define CFE_TBL_MAX_SIMULTANEOUS_LOADS CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS +#define CFE_TBL_MAX_NUM_VALIDATIONS CFE_PLATFORM_TBL_MAX_NUM_VALIDATIONS +#define CFE_TBL_DEFAULT_REG_DUMP_FILE CFE_PLATFORM_TBL_DEFAULT_REG_DUMP_FILE +#define CFE_TBL_VALID_SCID_COUNT CFE_PLATFORM_TBL_VALID_SCID_COUNT +#define CFE_TBL_U32FROM4CHARS CFE_PLATFORM_TBL_U32FROM4CHARS +#define CFE_TBL_VALID_SCID_1 CFE_PLATFORM_TBL_VALID_SCID_1 +#define CFE_TBL_VALID_SCID_2 CFE_PLATFORM_TBL_VALID_SCID_2 +#define CFE_TBL_VALID_PRID_COUNT CFE_PLATFORM_TBL_VALID_PRID_COUNT +#define CFE_TBL_VALID_PRID_1 CFE_PLATFORM_TBL_VALID_PRID_1 +#define CFE_TBL_VALID_PRID_2 CFE_PLATFORM_TBL_VALID_PRID_2 +#define CFE_TBL_VALID_PRID_3 CFE_PLATFORM_TBL_VALID_PRID_3 +#define CFE_TBL_VALID_PRID_4 CFE_PLATFORM_TBL_VALID_PRID_4 +#define CFE_ES_STARTUP_SYNC_POLL_MSEC CFE_PLATFORM_ES_STARTUP_SYNC_POLL_MSEC +#define CFE_CORE_MAX_STARTUP_MSEC CFE_PLATFORM_CORE_MAX_STARTUP_MSEC +#define CFE_ES_STARTUP_SCRIPT_TIMEOUT_MSEC CFE_PLATFORM_ES_STARTUP_SCRIPT_TIMEOUT_MSEC /* * This was previously configurable, now fixed. * Keeping it here will trigger a "redefined" warning if some mission * had configured it as "false" for some reason. */ -#define CFE_TIME_ENA_1HZ_CMD_PKT true - -#endif /* CFE_OMIT_DEPRECATED_6_6 */ +#define CFE_TIME_ENA_1HZ_CMD_PKT true -#endif /* _cfe_platform_cfg_ */ +#endif /* CFE_OMIT_DEPRECATED_6_6 */ +#endif /* _cfe_platform_cfg_ */ diff --git a/examples/cFS/sample_defs/sample_mission_cfg.h b/examples/cFS/sample_defs/sample_mission_cfg.h index d396f8f2..62a48410 100644 --- a/examples/cFS/sample_defs/sample_mission_cfg.h +++ b/examples/cFS/sample_defs/sample_mission_cfg.h @@ -37,7 +37,6 @@ #ifndef _cfe_mission_cfg_ #define _cfe_mission_cfg_ - /** ** \cfemissioncfg Spacecraft ID ** @@ -49,8 +48,7 @@ ** The cFE does not place a limit on this configuration paramter. ** CCSDS allocates 8 bits for this field in the standard VCDU. */ -#define CFE_MISSION_SPACECRAFT_ID 0x42 - +#define CFE_MISSION_SPACECRAFT_ID 0x42 /** ** \cfemissioncfg cFE SB message format @@ -66,13 +64,11 @@ /* #define MESSAGE_FORMAT_IS_CCSDS_VER_2 */ #undef MESSAGE_FORMAT_IS_CCSDS_VER_2 - - /** \name Packet timestamp format identifiers */ /** \{ */ -#define CFE_MISSION_SB_TIME_32_16_SUBS 1 /**< \brief 32 bits seconds + 16 bits subseconds (units = 2^^-16) */ -#define CFE_MISSION_SB_TIME_32_32_SUBS 2 /**< \brief 32 bits seconds + 32 bits subseconds (units = 2^^-32) */ -#define CFE_MISSION_SB_TIME_32_32_M_20 3 /**< \brief 32 bits seconds + 20 bits microsecs + 12 bits reserved */ +#define CFE_MISSION_SB_TIME_32_16_SUBS 1 /**< \brief 32 bits seconds + 16 bits subseconds (units = 2^^-16) */ +#define CFE_MISSION_SB_TIME_32_32_SUBS 2 /**< \brief 32 bits seconds + 32 bits subseconds (units = 2^^-32) */ +#define CFE_MISSION_SB_TIME_32_32_M_20 3 /**< \brief 32 bits seconds + 20 bits microsecs + 12 bits reserved */ /** \} */ /** @@ -84,8 +80,7 @@ ** \par Limits ** Must be defined as one of the supported formats listed above */ -#define CFE_MISSION_SB_PACKET_TIME_FORMAT CFE_MISSION_SB_TIME_32_16_SUBS - +#define CFE_MISSION_SB_PACKET_TIME_FORMAT CFE_MISSION_SB_TIME_32_16_SUBS /** ** \cfesbcfg Maximum SB Message Size @@ -103,8 +98,7 @@ ** 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 - +#define CFE_MISSION_SB_MAX_SB_MSG_SIZE 32768 /** ** \cfetimecfg Default Time Format @@ -124,9 +118,8 @@ ** if CFE_MISSION_TIME_CFG_DEFAULT_TAI is defined as false then CFE_MISSION_TIME_CFG_DEFAULT_UTC must be ** defined as true. */ -#define CFE_MISSION_TIME_CFG_DEFAULT_TAI true -#define CFE_MISSION_TIME_CFG_DEFAULT_UTC false - +#define CFE_MISSION_TIME_CFG_DEFAULT_TAI true +#define CFE_MISSION_TIME_CFG_DEFAULT_UTC false /** ** \cfetimecfg Default Time Format @@ -139,8 +132,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_MISSION_TIME_CFG_FAKE_TONE true - +#define CFE_MISSION_TIME_CFG_FAKE_TONE true /** ** \cfetimecfg Default Time and Tone Order @@ -163,8 +155,8 @@ ** Either CFE_MISSION_TIME_AT_TONE_WAS or CFE_MISSION_TIME_AT_TONE_WILL_BE must be set to true. ** They may not both be true and they may not both be false. */ -#define CFE_MISSION_TIME_AT_TONE_WAS true -#define CFE_MISSION_TIME_AT_TONE_WILL_BE false +#define CFE_MISSION_TIME_AT_TONE_WAS true +#define CFE_MISSION_TIME_AT_TONE_WILL_BE false /** ** \cfetimecfg Min and Max Time Elapsed @@ -189,9 +181,8 @@ ** \par Limits ** 0 to 999,999 decimal */ -#define CFE_MISSION_TIME_MIN_ELAPSED 0 -#define CFE_MISSION_TIME_MAX_ELAPSED 200000 - +#define CFE_MISSION_TIME_MIN_ELAPSED 0 +#define CFE_MISSION_TIME_MAX_ELAPSED 200000 /** ** \cfetimecfg Default Time Values @@ -216,17 +207,16 @@ ** \par Limits ** Not Applicable */ -#define CFE_MISSION_TIME_DEF_MET_SECS 1000 -#define CFE_MISSION_TIME_DEF_MET_SUBS 0 - -#define CFE_MISSION_TIME_DEF_STCF_SECS 1000000 -#define CFE_MISSION_TIME_DEF_STCF_SUBS 0 +#define CFE_MISSION_TIME_DEF_MET_SECS 1000 +#define CFE_MISSION_TIME_DEF_MET_SUBS 0 -#define CFE_MISSION_TIME_DEF_LEAPS 32 +#define CFE_MISSION_TIME_DEF_STCF_SECS 1000000 +#define CFE_MISSION_TIME_DEF_STCF_SUBS 0 -#define CFE_MISSION_TIME_DEF_DELAY_SECS 0 -#define CFE_MISSION_TIME_DEF_DELAY_SUBS 1000 +#define CFE_MISSION_TIME_DEF_LEAPS 32 +#define CFE_MISSION_TIME_DEF_DELAY_SECS 0 +#define CFE_MISSION_TIME_DEF_DELAY_SUBS 1000 /** ** \cfetimecfg Default EPOCH Values @@ -242,12 +232,11 @@ ** Minute - 0 to 59 ** Second - 0 to 59 */ -#define CFE_MISSION_TIME_EPOCH_YEAR 1980 -#define CFE_MISSION_TIME_EPOCH_DAY 1 -#define CFE_MISSION_TIME_EPOCH_HOUR 0 -#define CFE_MISSION_TIME_EPOCH_MINUTE 0 -#define CFE_MISSION_TIME_EPOCH_SECOND 0 - +#define CFE_MISSION_TIME_EPOCH_YEAR 1980 +#define CFE_MISSION_TIME_EPOCH_DAY 1 +#define CFE_MISSION_TIME_EPOCH_HOUR 0 +#define CFE_MISSION_TIME_EPOCH_MINUTE 0 +#define CFE_MISSION_TIME_EPOCH_SECOND 0 /** ** \cfetimecfg Time File System Factor @@ -285,8 +274,7 @@ ** \par Limits ** Not Applicable */ -#define CFE_MISSION_TIME_FS_FACTOR 789004800 - +#define CFE_MISSION_TIME_FS_FACTOR 789004800 /** ** \cfeescfg Maximum Length of CDS Name @@ -302,9 +290,7 @@ ** any possible neighboring fields without implicit padding. ** */ -#define CFE_MISSION_ES_CDS_MAX_NAME_LENGTH 16 - - +#define CFE_MISSION_ES_CDS_MAX_NAME_LENGTH 16 /** ** \cfeevscfg Maximum Event Message Length @@ -316,14 +302,15 @@ ** \par Limits ** Not Applicable */ -#define CFE_MISSION_EVS_MAX_MESSAGE_LENGTH 122 - +#define CFE_MISSION_EVS_MAX_MESSAGE_LENGTH 122 /** \name Checksum/CRC algorithm identifiers */ /** \{ */ -#define CFE_MISSION_ES_CRC_8 1 /**< \brief CRC ( 8 bit additive - returns 32 bit total) (Currently not implemented) */ -#define CFE_MISSION_ES_CRC_16 2 /**< \brief CRC (16 bit additive - returns 32 bit total) */ -#define CFE_MISSION_ES_CRC_32 3 /**< \brief CRC (32 bit additive - returns 32 bit total) (Currently not implemented) */ +#define CFE_MISSION_ES_CRC_8 1 /**< \brief CRC ( 8 bit additive - returns 32 bit total) (Currently not implemented) */ +#define CFE_MISSION_ES_CRC_16 2 /**< \brief CRC (16 bit additive - returns 32 bit total) */ +#define CFE_MISSION_ES_CRC_32 \ + 3 /**< \brief CRC (32 bit additive - returns 32 bit total) (Currently not implemented) \ + */ /** \} */ /** @@ -337,8 +324,7 @@ ** \par Limits ** Currently only CFE_MISSION_ES_CRC_16 is supported (see #CFE_MISSION_ES_CRC_16) */ -#define CFE_MISSION_ES_DEFAULT_CRC CFE_MISSION_ES_CRC_16 - +#define CFE_MISSION_ES_DEFAULT_CRC CFE_MISSION_ES_CRC_16 /** ** \cfetblcfg Maximum Table Name Length @@ -352,8 +338,7 @@ ** This value should be kept as a multiple of 4, to maintain alignment of ** any possible neighboring fields without implicit padding. */ -#define CFE_MISSION_TBL_MAX_NAME_LENGTH 16 - +#define CFE_MISSION_TBL_MAX_NAME_LENGTH 16 /** ** \cfemissioncfg cFE Message ID Base Numbers @@ -377,30 +362,28 @@ ** Must be less than CFE_PLATFORM_SB_HIGHEST_VALID_MSGID */ #ifndef MESSAGE_FORMAT_IS_CCSDS_VER_2 -#define CFE_MISSION_CMD_MID_BASE1 0x1800 -#define CFE_MISSION_TLM_MID_BASE1 0x0800 -#define CFE_MISSION_CMD_MID_BASE2 0x1818 -#define CFE_MISSION_TLM_MID_BASE2 0x0818 -#define CFE_MISSION_CMD_MID_BASE3 0x1830 -#define CFE_MISSION_TLM_MID_BASE3 0x0830 +#define CFE_MISSION_CMD_MID_BASE1 0x1800 +#define CFE_MISSION_TLM_MID_BASE1 0x0800 +#define CFE_MISSION_CMD_MID_BASE2 0x1818 +#define CFE_MISSION_TLM_MID_BASE2 0x0818 +#define CFE_MISSION_CMD_MID_BASE3 0x1830 +#define CFE_MISSION_TLM_MID_BASE3 0x0830 #else -#define CFE_MISSION_CMD_MID_BASE1 0x0080 -#define CFE_MISSION_TLM_MID_BASE1 0x0000 +#define CFE_MISSION_CMD_MID_BASE1 0x0080 +#define CFE_MISSION_TLM_MID_BASE1 0x0000 #endif #define CFE_MISSION_CMD_APPID_BASE1 1 #define CFE_MISSION_TLM_APPID_BASE1 0 #ifndef MESSAGE_FORMAT_IS_CCSDS_VER_2 -#define CFE_MISSION_CMD_MID_BASE_GLOB 0x1860 -#define CFE_MISSION_TLM_MID_BASE_GLOB 0x0860 +#define CFE_MISSION_CMD_MID_BASE_GLOB 0x1860 +#define CFE_MISSION_TLM_MID_BASE_GLOB 0x0860 #else -#define CFE_MISSION_CMD_MID_BASE_GLOB 0x00E0 -#define CFE_MISSION_TLM_MID_BASE_GLOB 0x0060 +#define CFE_MISSION_CMD_MID_BASE_GLOB 0x00E0 +#define CFE_MISSION_TLM_MID_BASE_GLOB 0x0060 #endif - - /** ** \cfemissioncfg cFE Portable Message Numbers for Commands ** @@ -412,25 +395,24 @@ ** \par Limits ** Not Applicable */ -#define CFE_MISSION_EVS_CMD_MSG 1 - /* Offset 2 is available */ -#define CFE_MISSION_SB_CMD_MSG 3 -#define CFE_MISSION_TBL_CMD_MSG 4 -#define CFE_MISSION_TIME_CMD_MSG 5 -#define CFE_MISSION_ES_CMD_MSG 6 - -#define CFE_MISSION_ES_SEND_HK_MSG 8 -#define CFE_MISSION_EVS_SEND_HK_MSG 9 - /* Offset 10 is available */ -#define CFE_MISSION_SB_SEND_HK_MSG 11 -#define CFE_MISSION_TBL_SEND_HK_MSG 12 -#define CFE_MISSION_TIME_SEND_HK_MSG 13 +#define CFE_MISSION_EVS_CMD_MSG 1 +/* Offset 2 is available */ +#define CFE_MISSION_SB_CMD_MSG 3 +#define CFE_MISSION_TBL_CMD_MSG 4 +#define CFE_MISSION_TIME_CMD_MSG 5 +#define CFE_MISSION_ES_CMD_MSG 6 + +#define CFE_MISSION_ES_SEND_HK_MSG 8 +#define CFE_MISSION_EVS_SEND_HK_MSG 9 +/* Offset 10 is available */ +#define CFE_MISSION_SB_SEND_HK_MSG 11 +#define CFE_MISSION_TBL_SEND_HK_MSG 12 +#define CFE_MISSION_TIME_SEND_HK_MSG 13 #define CFE_MISSION_SB_SUB_RPT_CTRL_MSG 14 -#define CFE_MISSION_TIME_TONE_CMD_MSG 16 -#define CFE_MISSION_TIME_1HZ_CMD_MSG 17 - +#define CFE_MISSION_TIME_TONE_CMD_MSG 16 +#define CFE_MISSION_TIME_1HZ_CMD_MSG 17 /** ** \cfemissioncfg cFE Portable Message Numbers for Global Messages @@ -443,9 +425,8 @@ ** \par Limits ** Not Applicable */ -#define CFE_MISSION_TIME_DATA_CMD_MSG 0 -#define CFE_MISSION_TIME_SEND_CMD_MSG 2 - +#define CFE_MISSION_TIME_DATA_CMD_MSG 0 +#define CFE_MISSION_TIME_SEND_CMD_MSG 2 /** ** \cfemissioncfg cFE Portable Message Numbers for Telemetry @@ -458,23 +439,23 @@ ** \par Limits ** Not Applicable */ -#define CFE_MISSION_ES_HK_TLM_MSG 0 -#define CFE_MISSION_EVS_HK_TLM_MSG 1 - /* Offset 2 is available */ -#define CFE_MISSION_SB_HK_TLM_MSG 3 -#define CFE_MISSION_TBL_HK_TLM_MSG 4 -#define CFE_MISSION_TIME_HK_TLM_MSG 5 -#define CFE_MISSION_TIME_DIAG_TLM_MSG 6 - -#define CFE_MISSION_EVS_LONG_EVENT_MSG_MSG 8 -#define CFE_MISSION_EVS_SHORT_EVENT_MSG_MSG 9 -#define CFE_MISSION_SB_STATS_TLM_MSG 10 -#define CFE_MISSION_ES_APP_TLM_MSG 11 -#define CFE_MISSION_TBL_REG_TLM_MSG 12 -#define CFE_MISSION_SB_ALLSUBS_TLM_MSG 13 -#define CFE_MISSION_SB_ONESUB_TLM_MSG 14 -#define CFE_MISSION_ES_SHELL_TLM_MSG 15 -#define CFE_MISSION_ES_MEMSTATS_TLM_MSG 16 +#define CFE_MISSION_ES_HK_TLM_MSG 0 +#define CFE_MISSION_EVS_HK_TLM_MSG 1 +/* Offset 2 is available */ +#define CFE_MISSION_SB_HK_TLM_MSG 3 +#define CFE_MISSION_TBL_HK_TLM_MSG 4 +#define CFE_MISSION_TIME_HK_TLM_MSG 5 +#define CFE_MISSION_TIME_DIAG_TLM_MSG 6 + +#define CFE_MISSION_EVS_LONG_EVENT_MSG_MSG 8 +#define CFE_MISSION_EVS_SHORT_EVENT_MSG_MSG 9 +#define CFE_MISSION_SB_STATS_TLM_MSG 10 +#define CFE_MISSION_ES_APP_TLM_MSG 11 +#define CFE_MISSION_TBL_REG_TLM_MSG 12 +#define CFE_MISSION_SB_ALLSUBS_TLM_MSG 13 +#define CFE_MISSION_SB_ONESUB_TLM_MSG 14 +#define CFE_MISSION_ES_SHELL_TLM_MSG 15 +#define CFE_MISSION_ES_MEMSTATS_TLM_MSG 16 /** ** \cfeescfg Mission Max Apps in a message @@ -490,8 +471,7 @@ ** Note this affects the size of messages, so it must not cause any message ** to exceed the max length. */ -#define CFE_MISSION_ES_MAX_APPLICATIONS 16 - +#define CFE_MISSION_ES_MAX_APPLICATIONS 16 /** ** \cfeescfg Define Max Shell Command Size for messages @@ -510,8 +490,7 @@ ** This value should be kept as a multiple of 4, to maintain alignment of ** any possible neighboring fields without implicit padding. */ -#define CFE_MISSION_ES_MAX_SHELL_CMD 64 - +#define CFE_MISSION_ES_MAX_SHELL_CMD 64 /** ** \cfeescfg Define Shell Command Telemetry Pkt Segment Size for messages @@ -535,7 +514,7 @@ ** any possible neighboring fields without implicit padding. ** */ -#define CFE_MISSION_ES_MAX_SHELL_PKT 64 +#define CFE_MISSION_ES_MAX_SHELL_PKT 64 /** ** \cfeescfg Define Max Number of Performance IDs for messages @@ -552,7 +531,7 @@ ** to exceed the max length. ** */ -#define CFE_MISSION_ES_PERF_MAX_IDS 128 +#define CFE_MISSION_ES_PERF_MAX_IDS 128 /** ** \cfetblcfg Maximum Length of Full Table Name in messages @@ -572,7 +551,7 @@ ** This value should be kept as a multiple of 4, to maintain alignment of ** any possible neighboring fields without implicit padding. */ -#define CFE_MISSION_TBL_MAX_FULL_NAME_LEN (CFE_MISSION_TBL_MAX_NAME_LENGTH + CFE_MISSION_MAX_API_LEN + 4) +#define CFE_MISSION_TBL_MAX_FULL_NAME_LEN (CFE_MISSION_TBL_MAX_NAME_LENGTH + CFE_MISSION_MAX_API_LEN + 4) /** ** \cfesbcfg Maximum Number of pipes that SB command/telemetry messages may hold @@ -589,8 +568,7 @@ ** to exceed the max length. ** */ -#define CFE_MISSION_SB_MAX_PIPES 64 - +#define CFE_MISSION_SB_MAX_PIPES 64 /** ** \cfemissioncfg cFE Maximum length for pathnames within data exchange structures @@ -615,7 +593,7 @@ ** This value should be kept as a multiple of 4, to maintain alignment of ** any possible neighboring fields without implicit padding. */ -#define CFE_MISSION_MAX_PATH_LEN 64 +#define CFE_MISSION_MAX_PATH_LEN 64 /** ** \cfemissioncfg cFE Maximum length for filenames within data exchange structures @@ -640,7 +618,7 @@ ** This value should be kept as a multiple of 4, to maintain alignment of ** any possible neighboring fields without implicit padding. */ -#define CFE_MISSION_MAX_FILE_LEN 20 +#define CFE_MISSION_MAX_FILE_LEN 20 /** ** \cfemissioncfg cFE Maximum length for API names within data exchange structures @@ -664,7 +642,7 @@ ** This value should be kept as a multiple of 4, to maintain alignment of ** any possible neighboring fields without implicit padding. */ -#define CFE_MISSION_MAX_API_LEN 20 +#define CFE_MISSION_MAX_API_LEN 20 /** ** \cfeescfg Maximum Length of Full CDS Name in messages @@ -684,8 +662,7 @@ ** This value should be kept as a multiple of 4, to maintain alignment of ** any possible neighboring fields without implicit padding. */ -#define CFE_MISSION_ES_CDS_MAX_NAME_LEN (CFE_MISSION_ES_CDS_MAX_NAME_LENGTH + CFE_MISSION_MAX_API_LEN + 4) - +#define CFE_MISSION_ES_CDS_MAX_NAME_LEN (CFE_MISSION_ES_CDS_MAX_NAME_LENGTH + CFE_MISSION_MAX_API_LEN + 4) /* * Compatibility layer for CFE release 6.6 @@ -702,87 +679,82 @@ */ #ifndef CFE_OMIT_DEPRECATED_6_6 -#define CFE_SPACECRAFT_ID CFE_MISSION_SPACECRAFT_ID -#define CFE_SB_TIME_32_16_SUBS CFE_MISSION_SB_TIME_32_16_SUBS -#define CFE_SB_TIME_32_32_SUBS CFE_MISSION_SB_TIME_32_32_SUBS -#define CFE_SB_TIME_32_32_M_20 CFE_MISSION_SB_TIME_32_32_M_20 -#define CFE_SB_PACKET_TIME_FORMAT CFE_MISSION_SB_PACKET_TIME_FORMAT -#define CFE_SB_MAX_SB_MSG_SIZE CFE_MISSION_SB_MAX_SB_MSG_SIZE -#define CFE_TIME_CFG_DEFAULT_TAI CFE_MISSION_TIME_CFG_DEFAULT_TAI -#define CFE_TIME_CFG_DEFAULT_UTC CFE_MISSION_TIME_CFG_DEFAULT_UTC -#define CFE_TIME_CFG_FAKE_TONE CFE_MISSION_TIME_CFG_FAKE_TONE -#define CFE_TIME_AT_TONE_WAS CFE_MISSION_TIME_AT_TONE_WAS -#define CFE_TIME_AT_TONE_WILL_BE CFE_MISSION_TIME_AT_TONE_WILL_BE -#define CFE_TIME_MIN_ELAPSED CFE_MISSION_TIME_MIN_ELAPSED -#define CFE_TIME_MAX_ELAPSED CFE_MISSION_TIME_MAX_ELAPSED -#define CFE_TIME_DEF_MET_SECS CFE_MISSION_TIME_DEF_MET_SECS -#define CFE_TIME_DEF_MET_SUBS CFE_MISSION_TIME_DEF_MET_SUBS -#define CFE_TIME_DEF_STCF_SECS CFE_MISSION_TIME_DEF_STCF_SECS -#define CFE_TIME_DEF_STCF_SUBS CFE_MISSION_TIME_DEF_STCF_SUBS -#define CFE_TIME_DEF_LEAPS CFE_MISSION_TIME_DEF_LEAPS -#define CFE_TIME_DEF_DELAY_SECS CFE_MISSION_TIME_DEF_DELAY_SECS -#define CFE_TIME_DEF_DELAY_SUBS CFE_MISSION_TIME_DEF_DELAY_SUBS -#define CFE_TIME_EPOCH_YEAR CFE_MISSION_TIME_EPOCH_YEAR -#define CFE_TIME_EPOCH_DAY CFE_MISSION_TIME_EPOCH_DAY -#define CFE_TIME_EPOCH_HOUR CFE_MISSION_TIME_EPOCH_HOUR -#define CFE_TIME_EPOCH_MINUTE CFE_MISSION_TIME_EPOCH_MINUTE -#define CFE_TIME_EPOCH_SECOND CFE_MISSION_TIME_EPOCH_SECOND -#define CFE_TIME_FS_FACTOR CFE_MISSION_TIME_FS_FACTOR -#define CFE_ES_CDS_MAX_NAME_LENGTH CFE_MISSION_ES_CDS_MAX_NAME_LENGTH -#define CFE_EVS_MAX_MESSAGE_LENGTH CFE_MISSION_EVS_MAX_MESSAGE_LENGTH -#define CFE_ES_CRC_8 CFE_MISSION_ES_CRC_8 -#define CFE_ES_CRC_16 CFE_MISSION_ES_CRC_16 -#define CFE_ES_CRC_32 CFE_MISSION_ES_CRC_32 -#define CFE_ES_DEFAULT_CRC CFE_MISSION_ES_DEFAULT_CRC -#define CFE_TBL_MAX_NAME_LENGTH CFE_MISSION_TBL_MAX_NAME_LENGTH -#define CFE_CMD_MID_BASE_CPU1 CFE_MISSION_CMD_MID_BASE_CPU1 -#define CFE_TLM_MID_BASE_CPU1 CFE_MISSION_TLM_MID_BASE_CPU1 -#define CFE_CMD_APPID_BASE_CPU1 CFE_MISSION_CMD_APPID_BASE_CPU1 -#define CFE_TLM_APPID_BASE_CPU1 CFE_MISSION_TLM_APPID_BASE_CPU1 -#define CFE_CMD_MID_BASE_CPU2 CFE_MISSION_CMD_MID_BASE_CPU2 -#define CFE_TLM_MID_BASE_CPU2 CFE_MISSION_TLM_MID_BASE_CPU2 -#define CFE_CMD_APPID_BASE_CPU2 CFE_MISSION_CMD_APPID_BASE_CPU2 -#define CFE_TLM_APPID_BASE_CPU2 CFE_MISSION_TLM_APPID_BASE_CPU2 -#define CFE_CMD_MID_BASE_CPU3 CFE_MISSION_CMD_MID_BASE_CPU3 -#define CFE_TLM_MID_BASE_CPU3 CFE_MISSION_TLM_MID_BASE_CPU3 -#define CFE_CMD_APPID_BASE_CPU3 CFE_MISSION_CMD_APPID_BASE_CPU3 -#define CFE_TLM_APPID_BASE_CPU3 CFE_MISSION_TLM_APPID_BASE_CPU3 -#define CFE_CMD_MID_BASE_GLOB CFE_MISSION_CMD_MID_BASE_GLOB -#define CFE_TLM_MID_BASE_GLOB CFE_MISSION_TLM_MID_BASE_GLOB -#define CFE_EVS_CMD_MSG CFE_MISSION_EVS_CMD_MSG -#define CFE_SB_CMD_MSG CFE_MISSION_SB_CMD_MSG -#define CFE_TBL_CMD_MSG CFE_MISSION_TBL_CMD_MSG -#define CFE_TIME_CMD_MSG CFE_MISSION_TIME_CMD_MSG -#define CFE_ES_CMD_MSG CFE_MISSION_ES_CMD_MSG -#define CFE_ES_SEND_HK_MSG CFE_MISSION_ES_SEND_HK_MSG -#define CFE_EVS_SEND_HK_MSG CFE_MISSION_EVS_SEND_HK_MSG -#define CFE_SB_SEND_HK_MSG CFE_MISSION_SB_SEND_HK_MSG -#define CFE_TBL_SEND_HK_MSG CFE_MISSION_TBL_SEND_HK_MSG -#define CFE_TIME_SEND_HK_MSG CFE_MISSION_TIME_SEND_HK_MSG -#define CFE_TIME_TONE_CMD_MSG CFE_MISSION_TIME_TONE_CMD_MSG -#define CFE_TIME_1HZ_CMD_MSG CFE_MISSION_TIME_1HZ_CMD_MSG -#define CFE_TIME_DATA_CMD_MSG CFE_MISSION_TIME_DATA_CMD_MSG -#define CFE_TIME_SEND_CMD_MSG CFE_MISSION_TIME_SEND_CMD_MSG -#define CFE_ES_HK_TLM_MSG CFE_MISSION_ES_HK_TLM_MSG -#define CFE_EVS_HK_TLM_MSG CFE_MISSION_EVS_HK_TLM_MSG -#define CFE_SB_HK_TLM_MSG CFE_MISSION_SB_HK_TLM_MSG -#define CFE_TBL_HK_TLM_MSG CFE_MISSION_TBL_HK_TLM_MSG -#define CFE_TIME_HK_TLM_MSG CFE_MISSION_TIME_HK_TLM_MSG -#define CFE_TIME_DIAG_TLM_MSG CFE_MISSION_TIME_DIAG_TLM_MSG -#define CFE_EVS_EVENT_MSG_MSG CFE_MISSION_EVS_LONG_EVENT_MSG_MSG -#define CFE_SB_STATS_TLM_MSG CFE_MISSION_SB_STATS_TLM_MSG -#define CFE_ES_APP_TLM_MSG CFE_MISSION_ES_APP_TLM_MSG -#define CFE_TBL_REG_TLM_MSG CFE_MISSION_TBL_REG_TLM_MSG -#define CFE_SB_ALLSUBS_TLM_MSG CFE_MISSION_SB_ALLSUBS_TLM_MSG -#define CFE_SB_ONESUB_TLM_MSG CFE_MISSION_SB_ONESUB_TLM_MSG -#define CFE_ES_SHELL_TLM_MSG CFE_MISSION_ES_SHELL_TLM_MSG -#define CFE_ES_MEMSTATS_TLM_MSG CFE_MISSION_ES_MEMSTATS_TLM_MSG +#define CFE_SPACECRAFT_ID CFE_MISSION_SPACECRAFT_ID +#define CFE_SB_TIME_32_16_SUBS CFE_MISSION_SB_TIME_32_16_SUBS +#define CFE_SB_TIME_32_32_SUBS CFE_MISSION_SB_TIME_32_32_SUBS +#define CFE_SB_TIME_32_32_M_20 CFE_MISSION_SB_TIME_32_32_M_20 +#define CFE_SB_PACKET_TIME_FORMAT CFE_MISSION_SB_PACKET_TIME_FORMAT +#define CFE_SB_MAX_SB_MSG_SIZE CFE_MISSION_SB_MAX_SB_MSG_SIZE +#define CFE_TIME_CFG_DEFAULT_TAI CFE_MISSION_TIME_CFG_DEFAULT_TAI +#define CFE_TIME_CFG_DEFAULT_UTC CFE_MISSION_TIME_CFG_DEFAULT_UTC +#define CFE_TIME_CFG_FAKE_TONE CFE_MISSION_TIME_CFG_FAKE_TONE +#define CFE_TIME_AT_TONE_WAS CFE_MISSION_TIME_AT_TONE_WAS +#define CFE_TIME_AT_TONE_WILL_BE CFE_MISSION_TIME_AT_TONE_WILL_BE +#define CFE_TIME_MIN_ELAPSED CFE_MISSION_TIME_MIN_ELAPSED +#define CFE_TIME_MAX_ELAPSED CFE_MISSION_TIME_MAX_ELAPSED +#define CFE_TIME_DEF_MET_SECS CFE_MISSION_TIME_DEF_MET_SECS +#define CFE_TIME_DEF_MET_SUBS CFE_MISSION_TIME_DEF_MET_SUBS +#define CFE_TIME_DEF_STCF_SECS CFE_MISSION_TIME_DEF_STCF_SECS +#define CFE_TIME_DEF_STCF_SUBS CFE_MISSION_TIME_DEF_STCF_SUBS +#define CFE_TIME_DEF_LEAPS CFE_MISSION_TIME_DEF_LEAPS +#define CFE_TIME_DEF_DELAY_SECS CFE_MISSION_TIME_DEF_DELAY_SECS +#define CFE_TIME_DEF_DELAY_SUBS CFE_MISSION_TIME_DEF_DELAY_SUBS +#define CFE_TIME_EPOCH_YEAR CFE_MISSION_TIME_EPOCH_YEAR +#define CFE_TIME_EPOCH_DAY CFE_MISSION_TIME_EPOCH_DAY +#define CFE_TIME_EPOCH_HOUR CFE_MISSION_TIME_EPOCH_HOUR +#define CFE_TIME_EPOCH_MINUTE CFE_MISSION_TIME_EPOCH_MINUTE +#define CFE_TIME_EPOCH_SECOND CFE_MISSION_TIME_EPOCH_SECOND +#define CFE_TIME_FS_FACTOR CFE_MISSION_TIME_FS_FACTOR +#define CFE_ES_CDS_MAX_NAME_LENGTH CFE_MISSION_ES_CDS_MAX_NAME_LENGTH +#define CFE_EVS_MAX_MESSAGE_LENGTH CFE_MISSION_EVS_MAX_MESSAGE_LENGTH +#define CFE_ES_CRC_8 CFE_MISSION_ES_CRC_8 +#define CFE_ES_CRC_16 CFE_MISSION_ES_CRC_16 +#define CFE_ES_CRC_32 CFE_MISSION_ES_CRC_32 +#define CFE_ES_DEFAULT_CRC CFE_MISSION_ES_DEFAULT_CRC +#define CFE_TBL_MAX_NAME_LENGTH CFE_MISSION_TBL_MAX_NAME_LENGTH +#define CFE_CMD_MID_BASE_CPU1 CFE_MISSION_CMD_MID_BASE_CPU1 +#define CFE_TLM_MID_BASE_CPU1 CFE_MISSION_TLM_MID_BASE_CPU1 +#define CFE_CMD_APPID_BASE_CPU1 CFE_MISSION_CMD_APPID_BASE_CPU1 +#define CFE_TLM_APPID_BASE_CPU1 CFE_MISSION_TLM_APPID_BASE_CPU1 +#define CFE_CMD_MID_BASE_CPU2 CFE_MISSION_CMD_MID_BASE_CPU2 +#define CFE_TLM_MID_BASE_CPU2 CFE_MISSION_TLM_MID_BASE_CPU2 +#define CFE_CMD_APPID_BASE_CPU2 CFE_MISSION_CMD_APPID_BASE_CPU2 +#define CFE_TLM_APPID_BASE_CPU2 CFE_MISSION_TLM_APPID_BASE_CPU2 +#define CFE_CMD_MID_BASE_CPU3 CFE_MISSION_CMD_MID_BASE_CPU3 +#define CFE_TLM_MID_BASE_CPU3 CFE_MISSION_TLM_MID_BASE_CPU3 +#define CFE_CMD_APPID_BASE_CPU3 CFE_MISSION_CMD_APPID_BASE_CPU3 +#define CFE_TLM_APPID_BASE_CPU3 CFE_MISSION_TLM_APPID_BASE_CPU3 +#define CFE_CMD_MID_BASE_GLOB CFE_MISSION_CMD_MID_BASE_GLOB +#define CFE_TLM_MID_BASE_GLOB CFE_MISSION_TLM_MID_BASE_GLOB +#define CFE_EVS_CMD_MSG CFE_MISSION_EVS_CMD_MSG +#define CFE_SB_CMD_MSG CFE_MISSION_SB_CMD_MSG +#define CFE_TBL_CMD_MSG CFE_MISSION_TBL_CMD_MSG +#define CFE_TIME_CMD_MSG CFE_MISSION_TIME_CMD_MSG +#define CFE_ES_CMD_MSG CFE_MISSION_ES_CMD_MSG +#define CFE_ES_SEND_HK_MSG CFE_MISSION_ES_SEND_HK_MSG +#define CFE_EVS_SEND_HK_MSG CFE_MISSION_EVS_SEND_HK_MSG +#define CFE_SB_SEND_HK_MSG CFE_MISSION_SB_SEND_HK_MSG +#define CFE_TBL_SEND_HK_MSG CFE_MISSION_TBL_SEND_HK_MSG +#define CFE_TIME_SEND_HK_MSG CFE_MISSION_TIME_SEND_HK_MSG +#define CFE_TIME_TONE_CMD_MSG CFE_MISSION_TIME_TONE_CMD_MSG +#define CFE_TIME_1HZ_CMD_MSG CFE_MISSION_TIME_1HZ_CMD_MSG +#define CFE_TIME_DATA_CMD_MSG CFE_MISSION_TIME_DATA_CMD_MSG +#define CFE_TIME_SEND_CMD_MSG CFE_MISSION_TIME_SEND_CMD_MSG +#define CFE_ES_HK_TLM_MSG CFE_MISSION_ES_HK_TLM_MSG +#define CFE_EVS_HK_TLM_MSG CFE_MISSION_EVS_HK_TLM_MSG +#define CFE_SB_HK_TLM_MSG CFE_MISSION_SB_HK_TLM_MSG +#define CFE_TBL_HK_TLM_MSG CFE_MISSION_TBL_HK_TLM_MSG +#define CFE_TIME_HK_TLM_MSG CFE_MISSION_TIME_HK_TLM_MSG +#define CFE_TIME_DIAG_TLM_MSG CFE_MISSION_TIME_DIAG_TLM_MSG +#define CFE_EVS_EVENT_MSG_MSG CFE_MISSION_EVS_LONG_EVENT_MSG_MSG +#define CFE_SB_STATS_TLM_MSG CFE_MISSION_SB_STATS_TLM_MSG +#define CFE_ES_APP_TLM_MSG CFE_MISSION_ES_APP_TLM_MSG +#define CFE_TBL_REG_TLM_MSG CFE_MISSION_TBL_REG_TLM_MSG +#define CFE_SB_ALLSUBS_TLM_MSG CFE_MISSION_SB_ALLSUBS_TLM_MSG +#define CFE_SB_ONESUB_TLM_MSG CFE_MISSION_SB_ONESUB_TLM_MSG +#define CFE_ES_SHELL_TLM_MSG CFE_MISSION_ES_SHELL_TLM_MSG +#define CFE_ES_MEMSTATS_TLM_MSG CFE_MISSION_ES_MEMSTATS_TLM_MSG #endif /* CFE_OMIT_DEPRECATED_6_6 */ - - - #endif /* _cfe_mission_cfg_ */ - - diff --git a/examples/cFS/sample_defs/sample_perfids.h b/examples/cFS/sample_defs/sample_perfids.h index 34b05a18..aa1ecc23 100644 --- a/examples/cFS/sample_defs/sample_perfids.h +++ b/examples/cFS/sample_defs/sample_perfids.h @@ -37,29 +37,25 @@ #ifndef _cfe_perfids_ #define _cfe_perfids_ - -#define CFE_MISSION_ES_PERF_EXIT_BIT 31 /**< \brief bit (31) is reserved by the perf utilities */ +#define CFE_MISSION_ES_PERF_EXIT_BIT 31 /**< \brief bit (31) is reserved by the perf utilities */ /** \name cFE Performance Monitor IDs (Reserved IDs 0-31) */ /** \{ */ -#define CFE_MISSION_ES_MAIN_PERF_ID 1 /**< \brief Performance ID for Executive Services Task */ -#define CFE_MISSION_EVS_MAIN_PERF_ID 2 /**< \brief Performance ID for Events Services Task */ -#define CFE_MISSION_TBL_MAIN_PERF_ID 3 /**< \brief Performance ID for Table Services Task */ -#define CFE_MISSION_SB_MAIN_PERF_ID 4 /**< \brief Performance ID for Software Bus Services Task */ -#define CFE_MISSION_SB_MSG_LIM_PERF_ID 5 /**< \brief Performance ID for Software Bus Msg Limit Errors */ -#define CFE_MISSION_SB_PIPE_OFLOW_PERF_ID 27 /**< \brief Performance ID for Software Bus Pipe Overflow Errors */ - +#define CFE_MISSION_ES_MAIN_PERF_ID 1 /**< \brief Performance ID for Executive Services Task */ +#define CFE_MISSION_EVS_MAIN_PERF_ID 2 /**< \brief Performance ID for Events Services Task */ +#define CFE_MISSION_TBL_MAIN_PERF_ID 3 /**< \brief Performance ID for Table Services Task */ +#define CFE_MISSION_SB_MAIN_PERF_ID 4 /**< \brief Performance ID for Software Bus Services Task */ +#define CFE_MISSION_SB_MSG_LIM_PERF_ID 5 /**< \brief Performance ID for Software Bus Msg Limit Errors */ +#define CFE_MISSION_SB_PIPE_OFLOW_PERF_ID 27 /**< \brief Performance ID for Software Bus Pipe Overflow Errors */ -#define CFE_MISSION_TIME_MAIN_PERF_ID 6 /**< \brief Performance ID for Time Services Task */ -#define CFE_MISSION_TIME_TONE1HZISR_PERF_ID 7 /**< \brief Performance ID for 1 Hz Tone ISR */ -#define CFE_MISSION_TIME_LOCAL1HZISR_PERF_ID 8 /**< \brief Performance ID for 1 Hz Local ISR */ - -#define CFE_MISSION_TIME_SENDMET_PERF_ID 9 /**< \brief Performance ID for Time ToneSendMET */ -#define CFE_MISSION_TIME_LOCAL1HZTASK_PERF_ID 10 /**< \brief Performance ID for 1 Hz Local Task */ -#define CFE_MISSION_TIME_TONE1HZTASK_PERF_ID 11 /**< \brief Performance ID for 1 Hz Tone Task */ +#define CFE_MISSION_TIME_MAIN_PERF_ID 6 /**< \brief Performance ID for Time Services Task */ +#define CFE_MISSION_TIME_TONE1HZISR_PERF_ID 7 /**< \brief Performance ID for 1 Hz Tone ISR */ +#define CFE_MISSION_TIME_LOCAL1HZISR_PERF_ID 8 /**< \brief Performance ID for 1 Hz Local ISR */ +#define CFE_MISSION_TIME_SENDMET_PERF_ID 9 /**< \brief Performance ID for Time ToneSendMET */ +#define CFE_MISSION_TIME_LOCAL1HZTASK_PERF_ID 10 /**< \brief Performance ID for 1 Hz Local Task */ +#define CFE_MISSION_TIME_TONE1HZTASK_PERF_ID 11 /**< \brief Performance ID for 1 Hz Tone Task */ /** \} */ - -#endif /* _cfe_perfids_ */ +#endif /* _cfe_perfids_ */ diff --git a/examples/sbnhk/to_lab_sub_table.h b/examples/sbnhk/to_lab_sub_table.h index 1db208fa..d2967a2a 100644 --- a/examples/sbnhk/to_lab_sub_table.h +++ b/examples/sbnhk/to_lab_sub_table.h @@ -8,7 +8,8 @@ ** ** $Log: to_lab_sub_table.h $ ** Revision 1.3 2014/07/16 14:44:45GMT-05:00 acudmore -** Member renamed from to_sub_table.h to to_lab_sub_table.h in project c:/MKSDATA/MKS-REPOSITORY/CFS-REPOSITORY/to_lab/fsw/platform_inc/project.pj. +** Member renamed from to_sub_table.h to to_lab_sub_table.h in project +*c:/MKSDATA/MKS-REPOSITORY/CFS-REPOSITORY/to_lab/fsw/platform_inc/project.pj. ** Revision 1.2 2014/07/16 14:44:45ACT acudmore ** Updated TO_LAB subscription table header file ( comments, clean up ) ** @@ -32,14 +33,13 @@ #include "lc_msgids.h" #endif -static TO_subscription_t TO_SubTable[] = -{ - /* CFS App Subscriptions */ - {0x0843, {0,0}, 4}, - {0x08FA, {0,0}, 4}, - /* telemetry test sub */ - {0x0888, {0,0}, 4}, - {TO_UNUSED, {0,0}, 0} +static TO_subscription_t TO_SubTable[] = { + /* CFS App Subscriptions */ + { 0x0843, { 0, 0 }, 4 }, + { 0x08FA, { 0, 0 }, 4 }, + /* telemetry test sub */ + { 0x0888, { 0, 0 }, 4 }, + { TO_UNUSED, { 0, 0 }, 0 } }; /************************ diff --git a/fsw/platform_inc/sbn_interfaces.h b/fsw/platform_inc/sbn_interfaces.h index fe6fe02d..27e7ccde 100644 --- a/fsw/platform_inc/sbn_interfaces.h +++ b/fsw/platform_inc/sbn_interfaces.h @@ -37,7 +37,8 @@ typedef struct SBN_PeerInterface_s SBN_PeerInterface_t; * SBN headers are MsgSz + MsgType + ProcessorID * SBN subscription messages are MsgID + QoS */ -#define SBN_PACKED_HDR_SZ (sizeof(SBN_MsgSz_t) + sizeof(SBN_MsgType_t) + sizeof(CFE_ProcessorID_t) + sizeof(CFE_SpacecraftID_t)) +#define SBN_PACKED_HDR_SZ \ + (sizeof(SBN_MsgSz_t) + sizeof(SBN_MsgType_t) + sizeof(CFE_ProcessorID_t) + sizeof(CFE_SpacecraftID_t)) #define SBN_PACKED_SUB_SZ \ (SBN_PACKED_HDR_SZ + sizeof(SBN_SubCnt_t) + (sizeof(CFE_SB_MsgId_t) + sizeof(CFE_SB_Qos_t)) * SBN_MAX_SUBS_PER_PEER) #define SBN_MAX_PACKED_MSG_SZ (SBN_PACKED_HDR_SZ + CFE_MISSION_SB_MAX_SB_MSG_SIZE) @@ -160,13 +161,13 @@ struct SBN_PeerInterface_s bool Connected; /** @brief generic blob of bytes for the module-specific data. */ - union { - uint8 _buf[128]; - uint32 _align; + union + { + uint8 _buf[128]; + uint32 _align; } ModulePvt[1]; }; - struct SBN_NetInterface_s { bool Configured; @@ -198,9 +199,10 @@ struct SBN_NetInterface_s SBN_ModuleIdx_t FilterCnt; /** @brief generic blob of bytes, module-specific */ - union { - uint8 _buf[128]; - uint32 _align; + union + { + uint8 _buf[128]; + uint32 _align; } ModulePvt[1]; }; @@ -223,8 +225,12 @@ typedef struct * * @sa UnpackMsg */ - void (*PackMsg)(void *SBNMsgBuf, SBN_MsgSz_t MsgSz, SBN_MsgType_t MsgType, CFE_ProcessorID_t ProcessorID, - CFE_SpacecraftID_t SpacecraftID, void *Msg); + void (*PackMsg)(void *SBNMsgBuf, + SBN_MsgSz_t MsgSz, + SBN_MsgType_t MsgType, + CFE_ProcessorID_t ProcessorID, + CFE_SpacecraftID_t SpacecraftID, + void *Msg); /** * @brief Used by modules to unpack messages received. @@ -240,8 +246,12 @@ typedef struct * * @sa PackMsg */ - bool (*UnpackMsg)(void *SBNBuf, SBN_MsgSz_t *MsgSzPtr, SBN_MsgType_t *MsgTypePtr, CFE_ProcessorID_t *ProcessorIDPtr, - CFE_SpacecraftID_t *SpacecraftIDPtr, void *Msg); + bool (*UnpackMsg)(void *SBNBuf, + SBN_MsgSz_t *MsgSzPtr, + SBN_MsgType_t *MsgTypePtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *Msg); /** * Called by backend modules to signal that the connection has been @@ -284,7 +294,9 @@ typedef struct * * @return A pointer to the peer interface structure. */ - SBN_PeerInterface_t *(*GetPeer)(SBN_NetInterface_t *Net, CFE_ProcessorID_t ProcessorID, CFE_SpacecraftID_t SpacecraftID); + SBN_PeerInterface_t *(*GetPeer)(SBN_NetInterface_t *Net, + CFE_ProcessorID_t ProcessorID, + CFE_SpacecraftID_t SpacecraftID); } SBN_ProtocolOutlet_t; /** @@ -388,8 +400,13 @@ struct SBN_IfOps_s * * @return SBN_SUCCESS on success, SBN_ERROR on failure */ - SBN_Status_t (*RecvFromPeer)(SBN_NetInterface_t *Net, SBN_PeerInterface_t *Peer, SBN_MsgType_t *MsgTypePtr, - SBN_MsgSz_t *MsgSzPtr, CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, void *PayloadBuffer); + SBN_Status_t (*RecvFromPeer)(SBN_NetInterface_t *Net, + SBN_PeerInterface_t *Peer, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *PayloadBuffer); /** * Receives an individual message from the network. @@ -404,8 +421,12 @@ struct SBN_IfOps_s * * @return SBN_SUCCESS on success, SBN_ERROR on failure */ - SBN_Status_t (*RecvFromNet)(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t *MsgSzPtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, void *PayloadBuffer); + SBN_Status_t (*RecvFromNet)(SBN_NetInterface_t *Net, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *PayloadBuffer); /** * Unload a network. This will unload all associated peers as well. diff --git a/fsw/platform_inc/sbn_msg.h b/fsw/platform_inc/sbn_msg.h index 9f26276d..ebe94817 100644 --- a/fsw/platform_inc/sbn_msg.h +++ b/fsw/platform_inc/sbn_msg.h @@ -16,7 +16,7 @@ * limitations under the License. ************************************************************************/ - #ifndef _sbn_msg_h_ +#ifndef _sbn_msg_h_ #define _sbn_msg_h_ #include "sbn_msgdefs.h" @@ -32,21 +32,23 @@ #define SBN_HK_LEN (sizeof(CFE_MSG_TelemetryHeader_t) + sizeof(uint8) + (sizeof(SBN_HKTlm_t) * 4)) /** @brief CC, SBN_SubCnt_t SubCnt, CFE_SB_MsgId_t Subs[SBN_MAX_SUBS_PER_PEER] */ -#define SBN_HKMYSUBS_LEN \ - (sizeof(CFE_MSG_TelemetryHeader_t) + sizeof(uint8) + sizeof(SBN_SubCnt_t) + SBN_MAX_SUBS_PER_PEER * sizeof(CFE_SB_MsgId_t)) +#define SBN_HKMYSUBS_LEN \ + (sizeof(CFE_MSG_TelemetryHeader_t) + sizeof(uint8) + sizeof(SBN_SubCnt_t) \ + + SBN_MAX_SUBS_PER_PEER * sizeof(CFE_SB_MsgId_t)) /** @brief CC, NetIdx, PeerIdx, SubCnt, Subs[SBN_MAX_SUBS_PER_PEER] */ -#define SBN_HKPEERSUBS_LEN \ - (sizeof(CFE_MSG_TelemetryHeader_t) + sizeof(uint8) + sizeof(SBN_NetIdx_t) + sizeof(SBN_PeerIdx_t) + sizeof(SBN_SubCnt_t) + \ - SBN_MAX_SUBS_PER_PEER * sizeof(CFE_SB_MsgId_t)) +#define SBN_HKPEERSUBS_LEN \ + (sizeof(CFE_MSG_TelemetryHeader_t) + sizeof(uint8) + sizeof(SBN_NetIdx_t) + sizeof(SBN_PeerIdx_t) \ + + sizeof(SBN_SubCnt_t) + SBN_MAX_SUBS_PER_PEER * sizeof(CFE_SB_MsgId_t)) /** @brief CC, SubCnt, ProcessorID, LastSend, LastRecv, SendCnt, RecvCnt, SendErrCnt, RecvErrCnt */ -#define SBN_HKPEER_LEN \ - (sizeof(CFE_MSG_TelemetryHeader_t) + sizeof(uint8) + sizeof(SBN_SubCnt_t) + sizeof(CFE_ProcessorID_t) + sizeof(OS_time_t) * 2 + \ - sizeof(SBN_HKTlm_t) * 4) +#define SBN_HKPEER_LEN \ + (sizeof(CFE_MSG_TelemetryHeader_t) + sizeof(uint8) + sizeof(SBN_SubCnt_t) + sizeof(CFE_ProcessorID_t) \ + + sizeof(OS_time_t) * 2 + sizeof(SBN_HKTlm_t) * 4) /** @brief CC, ProtocolID, PeerCnt */ -#define SBN_HKNET_LEN (sizeof(CFE_MSG_TelemetryHeader_t) + sizeof(uint8) + sizeof(SBN_ModuleIdx_t) + sizeof(SBN_PeerIdx_t)) +#define SBN_HKNET_LEN \ + (sizeof(CFE_MSG_TelemetryHeader_t) + sizeof(uint8) + sizeof(SBN_ModuleIdx_t) + sizeof(SBN_PeerIdx_t)) /** * @brief Module status response packet structure @@ -58,9 +60,9 @@ typedef struct */ CFE_MSG_TelemetryHeader_t TlmHeader; /** @brief The Protocol ID being queried. */ - SBN_ModuleIdx_t ProtocolIdx; + SBN_ModuleIdx_t ProtocolIdx; /** @brief The module status as returned by the module. */ - uint8 ModuleStatus[SBN_MOD_STATUS_MSG_SZ]; + uint8 ModuleStatus[SBN_MOD_STATUS_MSG_SZ]; } SBN_ModuleStatusPacket_t; #endif /* _sbn_msg_h_ */ diff --git a/fsw/platform_inc/sbn_tbl.h b/fsw/platform_inc/sbn_tbl.h index e72d7f73..521c7929 100644 --- a/fsw/platform_inc/sbn_tbl.h +++ b/fsw/platform_inc/sbn_tbl.h @@ -16,7 +16,7 @@ * limitations under the License. ************************************************************************/ - #ifndef _sbn_tbl_h_ +#ifndef _sbn_tbl_h_ #define _sbn_tbl_h_ #include "cfe.h" diff --git a/fsw/platform_inc/sbn_types.h b/fsw/platform_inc/sbn_types.h index a51b131c..3b339a5e 100644 --- a/fsw/platform_inc/sbn_types.h +++ b/fsw/platform_inc/sbn_types.h @@ -94,7 +94,7 @@ typedef struct } SBN_Subs_t; /* most/all scalars should be typedef'd for readability and type checking */ -typedef int16 SBN_MsgSz_t; /* needs to support < 0 for errs */ +typedef uint32 SBN_MsgSz_t; typedef uint8 SBN_MsgType_t; typedef uint8 SBN_ModuleIdx_t; typedef uint8 SBN_NetIdx_t; diff --git a/fsw/src/sbn_app.c b/fsw/src/sbn_app.c index 786e2c6a..a0bfb58f 100644 --- a/fsw/src/sbn_app.c +++ b/fsw/src/sbn_app.c @@ -20,6 +20,7 @@ ** Include Files */ #include +#include #include "sbn_pack.h" #include "sbn_app.h" @@ -32,9 +33,6 @@ /** \brief SBN global application data, indexed by AppID. */ SBN_App_t SBN; -#include -#include "sbn_app.h" - static SBN_Status_t UnloadNets(void); static SBN_Status_t UnloadModules(void) @@ -46,28 +44,28 @@ static SBN_Status_t UnloadModules(void) if (!OS_ObjectIdDefined(SBN.ProtocolModules[i])) { continue; /* this module may have been loaded by ES, so continue in case there are any I loaded. */ - } /* end if */ + } /* end if */ if (OS_ModuleUnload(SBN.ProtocolModules[i]) != OS_SUCCESS) { EVSSendCrit(SBN_TBL_EID, "unable to unload protocol module ID %d", i); return SBN_ERROR; } /* end if */ - } /* end for */ + } /* end for */ for (i = 0; i < SBN_MAX_MOD_CNT; i++) { if (!OS_ObjectIdDefined(SBN.FilterModules[i])) { continue; /* this module may have been loaded by ES, so continue in case there are any I loaded. */ - } /* end if */ + } /* end if */ if (OS_ModuleUnload(SBN.FilterModules[i]) != OS_SUCCESS) { EVSSendCrit(SBN_TBL_EID, "unable to unload filter module ID %d", i); return SBN_ERROR; } /* end if */ - } /* end for */ + } /* end for */ return SBN_SUCCESS; } /* end UnloadModules() */ @@ -84,12 +82,17 @@ static SBN_Status_t UnloadModules(void) * \param[in] SpacecraftID The SpacecraftID of the sender * \param[in] Msg The payload (CCSDS message or SBN sub/unsub.) */ -void SBN_PackMsg(void *SBNBuf, SBN_MsgSz_t MsgSz, SBN_MsgType_t MsgType, CFE_ProcessorID_t ProcessorID, CFE_ProcessorID_t SpacecraftID,void *Msg) +void SBN_PackMsg(void *SBNBuf, + SBN_MsgSz_t MsgSz, + SBN_MsgType_t MsgType, + CFE_ProcessorID_t ProcessorID, + CFE_ProcessorID_t SpacecraftID, + void *Msg) { Pack_t Pack; Pack_Init(&Pack, SBNBuf, MsgSz + SBN_PACKED_HDR_SZ, false); - Pack_Int16(&Pack, MsgSz); + Pack_UInt32(&Pack, MsgSz); Pack_UInt8(&Pack, MsgType); Pack_UInt32(&Pack, ProcessorID); Pack_UInt32(&Pack, SpacecraftID); @@ -118,14 +121,17 @@ void SBN_PackMsg(void *SBNBuf, SBN_MsgSz_t MsgSz, SBN_MsgType_t MsgType, CFE_Pro * are in platform byte order. * \todo Use a type for SBNBuf. */ -bool SBN_UnpackMsg(void *SBNBuf, SBN_MsgSz_t *MsgSzPtr, SBN_MsgType_t *MsgTypePtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, - void *Msg) +bool SBN_UnpackMsg(void *SBNBuf, + SBN_MsgSz_t *MsgSzPtr, + SBN_MsgType_t *MsgTypePtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *Msg) { uint8 t = 0; Pack_t Pack; Pack_Init(&Pack, SBNBuf, SBN_MAX_PACKED_MSG_SZ, false); - Unpack_Int16(&Pack, MsgSzPtr); + Unpack_UInt32(&Pack, MsgSzPtr); Unpack_UInt8(&Pack, &t); *MsgTypePtr = t; Unpack_UInt32(&Pack, ProcessorIDPtr); @@ -155,12 +161,16 @@ bool SBN_UnpackMsg(void *SBNBuf, SBN_MsgSz_t *MsgSzPtr, SBN_MsgType_t *MsgTypePt SBN_Status_t SBN_Connected(SBN_PeerInterface_t *Peer) { static const char FAIL_PREFIX[] = "ERROR: could not disconnect peer:"; - SBN_Status_t SBN_Status = SBN_SUCCESS; - CFE_Status_t CFE_Status; + SBN_Status_t SBN_Status = SBN_SUCCESS; + CFE_Status_t CFE_Status; if (Peer->Connected != 0) { - EVSSendErr(SBN_PEER_EID, "%s peer %d:%d already connected", FAIL_PREFIX, Peer->SpacecraftID, (int)(Peer->ProcessorID)); + EVSSendErr(SBN_PEER_EID, + "%s peer %d:%d already connected", + FAIL_PREFIX, + Peer->SpacecraftID, + (int)(Peer->ProcessorID)); return SBN_ERROR; } /* end if */ @@ -215,27 +225,33 @@ SBN_Status_t SBN_Connected(SBN_PeerInterface_t *Peer) SBN_Status_t SBN_Disconnected(SBN_PeerInterface_t *Peer) { static const char FAIL_PREFIX[] = "ERROR: could not disconnect peer:"; - CFE_Status_t Status; + CFE_Status_t Status; if (Peer->Connected == 0) { - EVSSendErr(SBN_PEER_EID, "%s already not connected to peer %d:%d", FAIL_PREFIX, Peer->SpacecraftID, (int)(Peer->ProcessorID)); + EVSSendErr(SBN_PEER_EID, + "%s already not connected to peer %d:%d", + FAIL_PREFIX, + Peer->SpacecraftID, + (int)(Peer->ProcessorID)); return SBN_ERROR; } Peer->Connected = 0; /**< mark as disconnected before deleting pipe */ - if((Status = CFE_SB_DeletePipe(Peer->Pipe)) != CFE_SUCCESS) { - EVSSendErr(SBN_PEER_EID, "%s could not delete pipe when disconnecting peer %d:%d: 0x%08x", - FAIL_PREFIX, - Peer->SpacecraftID, - Peer->ProcessorID, - Status); + if ((Status = CFE_SB_DeletePipe(Peer->Pipe)) != CFE_SUCCESS) + { + EVSSendErr(SBN_PEER_EID, + "%s could not delete pipe when disconnecting peer %d:%d: 0x%08x", + FAIL_PREFIX, + Peer->SpacecraftID, + Peer->ProcessorID, + Status); } Peer->Pipe = CFE_SB_INVALID_PIPE; - Peer->SendCnt = 0; - Peer->RecvCnt = 0; + Peer->SendCnt = 0; + Peer->RecvCnt = 0; Peer->SendErrCnt = 0; Peer->RecvErrCnt = 0; @@ -257,7 +273,7 @@ typedef struct SBN_PeerIdx_t PeerIdx; SBN_NetIdx_t NetIdx; SBN_PeerInterface_t *Peer; - SBN_NetInterface_t * Net; + SBN_NetInterface_t *Net; CFE_ProcessorID_t ProcessorID; CFE_SpacecraftID_t SpacecraftID; SBN_MsgType_t MsgType; @@ -291,13 +307,13 @@ void SBN_RecvPeerTask(void) { break; } /* end if */ - } /* end for */ + } /* end for */ if (D.PeerIdx < D.Net->PeerCnt) { break; } /* end if */ - } /* end for */ + } /* end for */ if (D.NetIdx == SBN.NetCnt) { @@ -307,12 +323,13 @@ void SBN_RecvPeerTask(void) while (1) { - D.Status = D.Net->IfOps->RecvFromPeer(D.Net, D.Peer, &D.MsgType, &D.MsgSz, &D.ProcessorID, &D.SpacecraftID, &D.Msg); + D.Status = + D.Net->IfOps->RecvFromPeer(D.Net, D.Peer, &D.MsgType, &D.MsgSz, &D.ProcessorID, &D.SpacecraftID, &D.Msg); if (D.Status == SBN_IF_EMPTY) { continue; /* no (more) messages */ - } /* end if */ + } /* end if */ if (D.Status == SBN_SUCCESS) { @@ -333,13 +350,13 @@ void SBN_RecvPeerTask(void) D.Peer->RecvTaskID = CFE_ES_TASKID_UNDEFINED; return; } /* end if */ - } /* end while */ + } /* end while */ } /* end SBN_RecvPeerTask() */ typedef struct RecvNetTaskData_s { SBN_NetIdx_t NetIdx; - SBN_NetInterface_t * Net; + SBN_NetInterface_t *Net; SBN_PeerInterface_t *Peer; SBN_Status_t Status; CFE_ES_TaskId_t RecvTaskID; @@ -370,7 +387,7 @@ void SBN_RecvNetTask(void) { break; } /* end if */ - } /* end for */ + } /* end for */ if (D.NetIdx == SBN.NetCnt) { @@ -380,17 +397,21 @@ void SBN_RecvNetTask(void) while (1) { - EVSSendDbg(SBN_PEERTASK_EID,"Try to receive from net..."); + EVSSendDbg(SBN_PEERTASK_EID, "Try to receive from net..."); D.Status = D.Net->IfOps->RecvFromNet(D.Net, &D.MsgType, &D.MsgSz, &D.ProcessorID, &D.SpacecraftID, &D.Msg); if (D.Status == SBN_IF_EMPTY) { continue; /* no (more) messages */ - } /* end if */ + } /* end if */ if (D.Status != SBN_SUCCESS) { - EVSSendErr(SBN_PEERTASK_EID, "%s RecvFromNet failed for net %d: status=0x%08X", FAIL_PREFIX_RUNNING, D.NetIdx, D.Status); + EVSSendErr(SBN_PEERTASK_EID, + "%s RecvFromNet failed for net %d: status=0x%08X", + FAIL_PREFIX_RUNNING, + D.NetIdx, + D.Status); break; } /* end if */ @@ -410,7 +431,7 @@ void SBN_RecvNetTask(void) EVSSendErr(SBN_PEERTASK_EID, "SBN_ProcessNetMsg failed: 0x%08X", D.Status); break; } /* end if */ - } /* end while */ + } /* end while */ /* Unset the task id so that it can be created if necessary */ D.Net->RecvTaskID = CFE_ES_TASKID_UNDEFINED; @@ -437,7 +458,7 @@ SBN_Status_t SBN_RecvNetMsgs(void) if (Net->TaskFlags & SBN_TASK_RECV) { continue; /* separate task handles receiving from a net */ - } /* end if */ + } /* end if */ if (Net->IfOps->RecvFromNet) { @@ -452,7 +473,7 @@ SBN_Status_t SBN_RecvNetMsgs(void) if (SBN_Status == SBN_IF_EMPTY) { break; /* no (more) messages for this net, continue to next net */ - } /* end if */ + } /* end if */ /* for UDP, the message received may not be from the peer * expected. @@ -468,7 +489,7 @@ SBN_Status_t SBN_RecvNetMsgs(void) OS_GetLocalTime(&Peer->LastRecv); SBN_ProcessNetMsg(Net, MsgType, ProcessorID, SpacecraftID, MsgSz, SBN.MsgBuffer); /* ignore errors */ - } /* end for */ + } /* end for */ } else if (Net->IfOps->RecvFromPeer) { @@ -481,19 +502,21 @@ SBN_Status_t SBN_RecvNetMsgs(void) // TODO: make configurable for (MsgCnt = 0; MsgCnt < 100; MsgCnt++) /* read at most 100 messages from peer */ { - CFE_ProcessorID_t ProcessorID = 0; + CFE_ProcessorID_t ProcessorID = 0; CFE_SpacecraftID_t SpacecraftID = 0; - SBN_MsgType_t MsgType = 0; - SBN_MsgSz_t MsgSz = 0; + SBN_MsgType_t MsgType = 0; + SBN_MsgSz_t MsgSz = 0; memset(SBN.MsgBuffer, 0, sizeof(SBN.MsgBuffer)); - SBN_Status = Net->IfOps->RecvFromPeer(Net, Peer, &MsgType, &MsgSz, &ProcessorID, &SpacecraftID, SBN.MsgBuffer); + SBN_Status = + Net->IfOps + ->RecvFromPeer(Net, Peer, &MsgType, &MsgSz, &ProcessorID, &SpacecraftID, SBN.MsgBuffer); if (SBN_Status == SBN_IF_EMPTY) { break; /* no (more) messages for this peer, continue to next peer */ - } /* end if */ + } /* end if */ OS_GetLocalTime(&Peer->LastRecv); @@ -502,9 +525,9 @@ SBN_Status_t SBN_RecvNetMsgs(void) if (SBN_Status != SBN_SUCCESS) { break; /* continue to next peer */ - } /* end if */ - } /* end for */ - } /* end for */ + } /* end if */ + } /* end for */ + } /* end for */ } else { @@ -512,7 +535,7 @@ SBN_Status_t SBN_RecvNetMsgs(void) /* meanwhile, continue to next net... */ } /* end if */ - } /* end for */ + } /* end for */ return SBN_SUCCESS; } /* end SBN_RecvNetMsgs */ @@ -539,14 +562,16 @@ SBN_Status_t SBN_SendNetMsg(SBN_MsgType_t MsgType, SBN_MsgSz_t MsgSz, void *Msg, EVSSendErr(SBN_PEER_EID, "unable to take send mutex"); return SBN_ERROR; } /* end if */ - } /* end if */ + } /* end if */ SBN_Status = Net->IfOps->Send(Peer, MsgType, MsgSz, Msg); if (SBN_Status != SBN_SUCCESS) { Peer->SendErrCnt++; - } else { + } + else + { Peer->SendCnt++; } /* end if */ @@ -560,7 +585,7 @@ SBN_Status_t SBN_SendNetMsg(SBN_MsgType_t MsgType, SBN_MsgSz_t MsgSz, void *Msg, EVSSendErr(SBN_PEER_EID, "unable to give send mutex"); return SBN_ERROR; } /* end if */ - } /* end if */ + } /* end if */ return SBN_Status; } /* end SBN_SendNetMsg */ @@ -585,7 +610,8 @@ void SBN_SendTask(void) { SendTaskData_t D; SBN_Filter_Ctx_t Filter_Context; - CFE_MSG_Size_t MsgSz = 0; + CFE_MSG_Size_t MsgSz = 0; + SBN_MsgSz_t SBN_MsgSz = 0; Filter_Context.MyProcessorID = CFE_PSP_GetProcessorId(); Filter_Context.MySpacecraftID = CFE_PSP_GetSpacecraftId(); @@ -604,13 +630,13 @@ void SBN_SendTask(void) { break; } /* end if */ - } /* end for */ + } /* end for */ if (D.PeerIdx < D.Net->PeerCnt) { break; /* found a ringer */ - } /* end if */ - } /* end for */ + } /* end if */ + } /* end for */ if (D.NetIdx == SBN.NetCnt) { @@ -653,7 +679,7 @@ void SBN_SendTask(void) { break; } /* end if */ - } /* end for */ + } /* end for */ if (FilterIdx < D.Peer->FilterCnt) { @@ -661,18 +687,20 @@ void SBN_SendTask(void) continue; } /* end if */ - if(CFE_MSG_GetSize(D.MsgPtr, &MsgSz) != CFE_SUCCESS) + if (CFE_MSG_GetSize(D.MsgPtr, &MsgSz) != CFE_SUCCESS) { continue; } /* end if */ - D.Status = SBN_SendNetMsg(SBN_APP_MSG, MsgSz, D.MsgPtr, D.Peer); + SBN_MsgSz = (SBN_MsgSz_t)MsgSz; + + D.Status = SBN_SendNetMsg(SBN_APP_MSG, SBN_MsgSz, D.MsgPtr, D.Peer); if (D.Status == SBN_ERROR) { break; } /* end if */ - } /* end while */ + } /* end while */ /* mark peer as not having a task so that sending will create a new one */ D.Peer->SendTaskID = CFE_ES_TASKID_UNDEFINED; @@ -686,8 +714,9 @@ static SBN_Status_t CheckPeerPipes(void) { CFE_Status_t CFE_Status; int ReceivedFlag = 0, iter = 0; - CFE_MSG_Message_t *MsgPtr = NULL; - CFE_MSG_Size_t MsgSz = 0; + CFE_MSG_Message_t *MsgPtr = NULL; + CFE_MSG_Size_t MsgSz = 0; + SBN_MsgSz_t SBN_MsgSz = 0; SBN_Filter_Ctx_t Filter_Context; Filter_Context.MyProcessorID = CFE_PSP_GetProcessorId(); @@ -714,8 +743,9 @@ static SBN_Status_t CheckPeerPipes(void) SBN_PeerInterface_t *Peer = &Net->Peers[PeerIdx]; // Poll peer here to detect disconnections and to reconnect - if(Net->IfOps->PollPeer(Peer) != SBN_SUCCESS) { - EVSSendErr(SBN_PEERTASK_EID, "failed to poll peer %d:%d", Peer->SpacecraftID, Peer->ProcessorID); + if (Net->IfOps->PollPeer(Peer) != SBN_SUCCESS) + { + EVSSendErr(SBN_PEERTASK_EID, "failed to poll peer %d:%d", Peer->SpacecraftID, Peer->ProcessorID); } if (Peer->Connected == 0) @@ -733,17 +763,30 @@ static SBN_Status_t CheckPeerPipes(void) /* TODO: logic/controls to prevent hammering? */ char SendTaskName[32]; - snprintf(SendTaskName, 32, "sendT_%d_%d_%d", (int)NetIdx, (int)(Peer->ProcessorID), (int)(Peer->SpacecraftID)); - CFE_Status = CFE_ES_CreateChildTask( - &(Peer->SendTaskID), SendTaskName, (CFE_ES_ChildTaskMainFuncPtr_t)&SBN_SendTask, NULL, - CFE_PLATFORM_ES_DEFAULT_STACK_SIZE + 2 * sizeof(SendTaskData_t), 0, 0); + snprintf(SendTaskName, + 32, + "sendT_%d_%d_%d", + (int)NetIdx, + (int)(Peer->ProcessorID), + (int)(Peer->SpacecraftID)); + CFE_Status = + CFE_ES_CreateChildTask(&(Peer->SendTaskID), + SendTaskName, + (CFE_ES_ChildTaskMainFuncPtr_t)&SBN_SendTask, + NULL, + CFE_PLATFORM_ES_DEFAULT_STACK_SIZE + 2 * sizeof(SendTaskData_t), + 0, + 0); if (CFE_Status != CFE_SUCCESS) { - EVSSendErr(SBN_PEER_EID, "error creating send task for peer %d:%d", Peer->SpacecraftID, Peer->ProcessorID); + EVSSendErr(SBN_PEER_EID, + "error creating send task for peer %d:%d", + Peer->SpacecraftID, + Peer->ProcessorID); return SBN_ERROR; } /* end if */ - } /* end if */ + } /* end if */ continue; } /* end if */ @@ -780,7 +823,7 @@ static SBN_Status_t CheckPeerPipes(void) /* something fatal happened, exit */ return SBN_Status; } /* end if */ - } /* end for */ + } /* end for */ if (FilterIdx < Peer->FilterCnt) { @@ -793,15 +836,17 @@ static SBN_Status_t CheckPeerPipes(void) continue; } /* end if */ - SBN_SendNetMsg(SBN_APP_MSG, MsgSz, MsgPtr, Peer); + SBN_MsgSz = (SBN_MsgSz_t)MsgSz; + + SBN_SendNetMsg(SBN_APP_MSG, SBN_MsgSz, MsgPtr, Peer); } /* end for */ - } /* end for */ + } /* end for */ if (!ReceivedFlag) { break; } /* end if */ - } /* end for */ + } /* end for */ return SBN_SUCCESS; } /* end CheckPeerPipes */ @@ -825,16 +870,20 @@ static SBN_Status_t PeerPoll(void) /* TODO: add logic/controls to prevent hammering */ char RecvTaskName[32]; snprintf(RecvTaskName, OS_MAX_API_NAME, "sbn_rs_%d", (int)NetIdx); - CFE_Status = CFE_ES_CreateChildTask( - &(Net->RecvTaskID), RecvTaskName, (CFE_ES_ChildTaskMainFuncPtr_t)&SBN_RecvNetTask, NULL, - CFE_PLATFORM_ES_DEFAULT_STACK_SIZE + 2 * sizeof(RecvNetTaskData_t), 0, 0); + CFE_Status = CFE_ES_CreateChildTask(&(Net->RecvTaskID), + RecvTaskName, + (CFE_ES_ChildTaskMainFuncPtr_t)&SBN_RecvNetTask, + NULL, + CFE_PLATFORM_ES_DEFAULT_STACK_SIZE + 2 * sizeof(RecvNetTaskData_t), + 0, + 0); if (CFE_Status != CFE_SUCCESS) { - EVSSendErr(SBN_PEER_EID, "error creating task for net %d",(int)NetIdx); + EVSSendErr(SBN_PEER_EID, "error creating task for net %d", (int)NetIdx); return SBN_ERROR; } /* end if */ - } /* end if */ + } /* end if */ } else { @@ -850,9 +899,14 @@ static SBN_Status_t PeerPoll(void) /* TODO: add logic/controls to prevent hammering */ char RecvTaskName[32]; snprintf(RecvTaskName, OS_MAX_API_NAME, "sbn_recv_%d", (int)PeerIdx); - CFE_Status = CFE_ES_CreateChildTask( - &(Peer->RecvTaskID), RecvTaskName, (CFE_ES_ChildTaskMainFuncPtr_t)&SBN_RecvPeerTask, NULL, - CFE_PLATFORM_ES_DEFAULT_STACK_SIZE + 2 * sizeof(RecvPeerTaskData_t), 0, 0); + CFE_Status = + CFE_ES_CreateChildTask(&(Peer->RecvTaskID), + RecvTaskName, + (CFE_ES_ChildTaskMainFuncPtr_t)&SBN_RecvPeerTask, + NULL, + CFE_PLATFORM_ES_DEFAULT_STACK_SIZE + 2 * sizeof(RecvPeerTaskData_t), + 0, + 0); /* TODO: more accurate stack size required */ if (CFE_Status != CFE_SUCCESS) @@ -860,15 +914,15 @@ static SBN_Status_t PeerPoll(void) EVSSendErr(SBN_PEER_EID, "error creating task for %d", (int)(Peer->ProcessorID)); return SBN_ERROR; } /* end if */ - } /* end if */ + } /* end if */ } else { Net->IfOps->PollPeer(Peer); } /* end if */ - } /* end for */ - } /* end if */ - } /* end for */ + } /* end for */ + } /* end if */ + } /* end for */ return SBN_SUCCESS; } /* end PeerPoll */ @@ -909,11 +963,16 @@ static SBN_Status_t InitInterfaces(void) { SBN_PeerInterface_t *Peer = &Net->Peers[PeerIdx]; - EVSSendInfo(SBN_PEER_EID, "initializing net: %d peer: %d: sc: %d cpu: %d", (int)NetIdx, (int)PeerIdx, Peer->SpacecraftID, Peer->ProcessorID); + EVSSendInfo(SBN_PEER_EID, + "initializing net: %d peer: %d: sc: %d cpu: %d", + (int)NetIdx, + (int)PeerIdx, + Peer->SpacecraftID, + Peer->ProcessorID); Net->IfOps->InitPeer(Peer); } /* end for */ - } /* end for */ + } /* end for */ EVSSendInfo(SBN_INIT_EID, "configured, %d nets", SBN.NetCnt); @@ -936,7 +995,7 @@ static SBN_Status_t WaitForWakeup(int32 iTimeOut) { CFE_Status_t CFE_Status = CFE_SUCCESS; SBN_Status_t SBN_Status = SBN_SUCCESS; - CFE_MSG_Message_t *MsgPtr = 0; + CFE_MSG_Message_t *MsgPtr = 0; /* Wait for WakeUp messages from scheduler */ CFE_Status = CFE_SB_ReceiveBuffer((CFE_SB_Buffer_t **)&MsgPtr, SBN.CmdPipe, iTimeOut); @@ -962,15 +1021,16 @@ static SBN_Status_t WaitForWakeup(int32 iTimeOut) SBN_RecvNetMsgs(); SBN_Status = SBN_CheckSubscriptionPipe(); - switch(SBN_Status) { - case SBN_IF_EMPTY: - break; - case SBN_ERROR: - EVSSendErr(SBN_PEER_EID, "SBN_CheckSubscriptionPipe failed."); - break; - default: - /* no error */ - break; + switch (SBN_Status) + { + case SBN_IF_EMPTY: + break; + case SBN_ERROR: + EVSSendErr(SBN_PEER_EID, "SBN_CheckSubscriptionPipe failed."); + break; + default: + /* no error */ + break; }; CheckPeerPipes(); @@ -1014,8 +1074,10 @@ static cpuaddr LoadConf_Module(SBN_Module_Entry_t *e, CFE_ES_ModuleID_t *ModuleI EVSSendErr(SBN_TBL_EID, "invalid symbol (Name=%s LibSymbol=%s)", e->Name, e->LibSymbol); return 0; } - } else { - EVSSendInfo(SBN_TBL_EID, "symbol already loaded (%s)", e->LibSymbol); + } + else + { + EVSSendInfo(SBN_TBL_EID, "symbol already loaded (%s)", e->LibSymbol); } /* end if */ return StructAddr; @@ -1032,7 +1094,8 @@ static cpuaddr LoadConf_Module(SBN_Module_Entry_t *e, CFE_ES_ModuleID_t *ModuleI * @param[out] Filters - The function pointers for the filters requested. * @return The number of entries in Filters. */ -static SBN_ModuleIdx_t LoadConf_Filters(SBN_Module_Entry_t *FilterModules, SBN_ModuleIdx_t FilterModuleCnt, +static SBN_ModuleIdx_t LoadConf_Filters(SBN_Module_Entry_t *FilterModules, + SBN_ModuleIdx_t FilterModuleCnt, SBN_FilterInterface_t **ConfFilters, char ModuleNames[SBN_MAX_FILTERS_PER_PEER][SBN_MAX_MOD_NAME_LEN], SBN_FilterInterface_t **Filters) @@ -1051,7 +1114,7 @@ static SBN_ModuleIdx_t LoadConf_Filters(SBN_Module_Entry_t *FilterModules, SBN_M { break; } /* end if */ - } /* end for */ + } /* end for */ if (FilterIdx == FilterModuleCnt) { @@ -1067,11 +1130,16 @@ static SBN_ModuleIdx_t LoadConf_Filters(SBN_Module_Entry_t *FilterModules, SBN_M static SBN_Status_t LoadConf(void) { - SBN_ConfTbl_t * TblPtr = NULL; + SBN_ConfTbl_t *TblPtr = NULL; SBN_ModuleIdx_t ModuleIdx = 0; SBN_PeerIdx_t PeerIdx = 0; SBN_FilterInterface_t *Filters[SBN_MAX_MOD_CNT]; - SBN_ProtocolOutlet_t Outlet = {.PackMsg = SBN_PackMsg, .UnpackMsg = SBN_UnpackMsg, .Connected = SBN_Connected, .Disconnected = SBN_Disconnected, .SendNetMsg = SBN_SendNetMsg, .GetPeer = SBN_GetPeer}; + SBN_ProtocolOutlet_t Outlet = { .PackMsg = SBN_PackMsg, + .UnpackMsg = SBN_UnpackMsg, + .Connected = SBN_Connected, + .Disconnected = SBN_Disconnected, + .SendNetMsg = SBN_SendNetMsg, + .GetPeer = SBN_GetPeer }; memset(Filters, 0, sizeof(Filters)); @@ -1164,7 +1232,7 @@ static SBN_Status_t LoadConf(void) if (e->NetNum + 1 > SBN.NetCnt) { EVSSendInfo(SBN_TBL_EID, "found new highest net id: %d", e->NetNum); - SBN.NetCnt = e->NetNum + 1; + SBN.NetCnt = e->NetNum + 1; SBN.Nets[e->NetNum].PeerCnt = 0; EVSSendInfo(SBN_TBL_EID, "increasing net count to %d", SBN.NetCnt); } /* end if */ @@ -1200,7 +1268,7 @@ static SBN_Status_t LoadConf(void) Peer->TaskFlags = e->TaskFlags; } /* end if */ - } /* end for */ + } /* end for */ /* address only needed at load time, release */ if (CFE_TBL_ReleaseAddress(SBN.ConfTblHandle) != CFE_SUCCESS) @@ -1219,14 +1287,16 @@ static uint32 UnloadConf(void) EVSSendInfo(SBN_TBL_EID, "unloading configuration"); - if((Status = UnloadNets()) != SBN_SUCCESS) { - EVSSendCrit(SBN_TBL_EID, "unable to unload nets"); - return Status; + if ((Status = UnloadNets()) != SBN_SUCCESS) + { + EVSSendCrit(SBN_TBL_EID, "unable to unload nets"); + return Status; } - if((Status = UnloadModules()) != SBN_SUCCESS) { - EVSSendCrit(SBN_TBL_EID, "unable to unload modules"); - return Status; + if ((Status = UnloadModules()) != SBN_SUCCESS) + { + EVSSendCrit(SBN_TBL_EID, "unable to unload modules"); + return Status; } return SBN_SUCCESS; @@ -1234,40 +1304,48 @@ static uint32 UnloadConf(void) static SBN_Status_t UnloadPeer(SBN_PeerInterface_t *Peer) { - SBN_RemoveAllSubsFromPeer(Peer); + SBN_RemoveAllSubsFromPeer(Peer); - SBN_Disconnected(Peer); + SBN_Disconnected(Peer); - if (Peer->TaskFlags & SBN_TASK_SEND) - { - if (CFE_RESOURCEID_TEST_DEFINED(Peer->SendTaskID)) + if (Peer->TaskFlags & SBN_TASK_SEND) { - if(CFE_ES_DeleteChildTask(Peer->SendTaskID) != CFE_SUCCESS) { - EVSSendCrit(SBN_TBL_EID, "unable to delete send task for peer %d:%d", Peer->SpacecraftID, Peer->ProcessorID); - return SBN_ERROR; - } + if (CFE_RESOURCEID_TEST_DEFINED(Peer->SendTaskID)) + { + if (CFE_ES_DeleteChildTask(Peer->SendTaskID) != CFE_SUCCESS) + { + EVSSendCrit(SBN_TBL_EID, + "unable to delete send task for peer %d:%d", + Peer->SpacecraftID, + Peer->ProcessorID); + return SBN_ERROR; + } + } } - } - if (Peer->TaskFlags & SBN_TASK_RECV) - { - if (CFE_RESOURCEID_TEST_DEFINED(Peer->RecvTaskID)) + if (Peer->TaskFlags & SBN_TASK_RECV) { - if(CFE_ES_DeleteChildTask(Peer->RecvTaskID) != CFE_SUCCESS) { - EVSSendCrit(SBN_TBL_EID, "unable to delete recv task for peer %d:%d", Peer->SpacecraftID, Peer->ProcessorID); - } + if (CFE_RESOURCEID_TEST_DEFINED(Peer->RecvTaskID)) + { + if (CFE_ES_DeleteChildTask(Peer->RecvTaskID) != CFE_SUCCESS) + { + EVSSendCrit(SBN_TBL_EID, + "unable to delete recv task for peer %d:%d", + Peer->SpacecraftID, + Peer->ProcessorID); + } + } } - } - // Reset peer description - Peer->ProcessorID = 0; - Peer->SpacecraftID = 0; - Peer->Net = NULL; - Peer->TaskFlags = 0; - Peer->Pipe = CFE_SB_INVALID_PIPE; - Peer->FilterCnt = 0; + // Reset peer description + Peer->ProcessorID = 0; + Peer->SpacecraftID = 0; + Peer->Net = NULL; + Peer->TaskFlags = 0; + Peer->Pipe = CFE_SB_INVALID_PIPE; + Peer->FilterCnt = 0; - return SBN_SUCCESS; + return SBN_SUCCESS; } static SBN_Status_t UnloadNets(void) @@ -1278,14 +1356,16 @@ static SBN_Status_t UnloadNets(void) for (NetIdx = 0; NetIdx < SBN.NetCnt; NetIdx++) { SBN_NetInterface_t *Net = &SBN.Nets[NetIdx]; - Net->Configured = false; + Net->Configured = false; - if(CFE_RESOURCEID_TEST_DEFINED(Net->RecvTaskID)) { - if(CFE_ES_DeleteChildTask(Net->RecvTaskID) != CFE_SUCCESS) { - EVSSendCrit(SBN_TBL_EID, "unable to delete receive task %d", NetIdx); - } + if (CFE_RESOURCEID_TEST_DEFINED(Net->RecvTaskID)) + { + if (CFE_ES_DeleteChildTask(Net->RecvTaskID) != CFE_SUCCESS) + { + EVSSendCrit(SBN_TBL_EID, "unable to delete receive task %d", NetIdx); + } - Net->RecvTaskID = CFE_ES_TASKID_UNDEFINED; + Net->RecvTaskID = CFE_ES_TASKID_UNDEFINED; } // UnloadNet assumes Peers are still valid @@ -1302,14 +1382,14 @@ static SBN_Status_t UnloadNets(void) SBN_PeerIdx_t PeerIdx = 0; for (PeerIdx = 0; PeerIdx < Net->PeerCnt; PeerIdx++) { - SBN_PeerInterface_t *Peer = &Net->Peers[PeerIdx]; + SBN_PeerInterface_t *Peer = &Net->Peers[PeerIdx]; - UnloadPeer(Peer); + UnloadPeer(Peer); } // Peers were cleared, reset the count Net->PeerCnt = 0; - }/* end for */ + } /* end for */ SBN.NetCnt = 0; @@ -1320,8 +1400,8 @@ static uint32 LoadConfTbl(void) { int32 Status = CFE_SUCCESS; - if ((Status = CFE_TBL_Register(&SBN.ConfTblHandle, "SBN_ConfTbl", sizeof(SBN_ConfTbl_t), CFE_TBL_OPT_DEFAULT, - NULL)) != CFE_SUCCESS) + if ((Status = CFE_TBL_Register(&SBN.ConfTblHandle, "SBN_ConfTbl", sizeof(SBN_ConfTbl_t), CFE_TBL_OPT_DEFAULT, NULL)) + != CFE_SUCCESS) { EVSSendErr(SBN_TBL_EID, "unable to register conf tbl handle"); return Status; @@ -1341,7 +1421,8 @@ static uint32 LoadConfTbl(void) return Status; } /* end if */ - if ((Status = CFE_TBL_NotifyByMessage(SBN.ConfTblHandle, CFE_SB_ValueToMsgId(SBN_CMD_MID), SBN_TBL_CC, 0)) != CFE_SUCCESS) + if ((Status = CFE_TBL_NotifyByMessage(SBN.ConfTblHandle, CFE_SB_ValueToMsgId(SBN_CMD_MID), SBN_TBL_CC, 0)) + != CFE_SUCCESS) { EVSSendErr(SBN_TBL_EID, "unable to set notifybymessage for conf tbl"); CFE_TBL_Unregister(SBN.ConfTblHandle); @@ -1378,21 +1459,22 @@ static SBN_Status_t SetupSubPipe(void) return SBN_ERROR; } /* end if */ - Status = CFE_SB_SubscribeLocal(CFE_SB_ValueToMsgId(CFE_SB_ALLSUBS_TLM_MID), SBN.SubPipe, SBN_MAX_ALLSUBS_PKTS_ON_PIPE); + Status = + CFE_SB_SubscribeLocal(CFE_SB_ValueToMsgId(CFE_SB_ALLSUBS_TLM_MID), SBN.SubPipe, SBN_MAX_ALLSUBS_PKTS_ON_PIPE); if (Status != CFE_SUCCESS) { EVSSendErr(SBN_INIT_EID, "failed to subscribe to allsubs (Status=%d)", (int)Status); return SBN_ERROR; } /* end if */ - Status = CFE_SB_SubscribeLocal(CFE_SB_ValueToMsgId(CFE_SB_ONESUB_TLM_MID), SBN.SubPipe, SBN_MAX_ONESUB_PKTS_ON_PIPE); + Status = + CFE_SB_SubscribeLocal(CFE_SB_ValueToMsgId(CFE_SB_ONESUB_TLM_MID), SBN.SubPipe, SBN_MAX_ONESUB_PKTS_ON_PIPE); if (Status != CFE_SUCCESS) { EVSSendErr(SBN_INIT_EID, "failed to subscribe to sub (Status=%d)", (int)Status); return SBN_ERROR; } /* end if */ - return SBN_SUCCESS; } @@ -1401,7 +1483,7 @@ static SBN_Status_t Init(void) static const char FAIL_PREFIX[] = "ERROR: could not initialize SBN:"; /* Load the configuration from the table */ - if(LoadConf() != SBN_SUCCESS) + if (LoadConf() != SBN_SUCCESS) { return SBN_ERROR; } @@ -1412,7 +1494,7 @@ static SBN_Status_t Init(void) return SBN_ERROR; } /* end if */ - if(SetupSubPipe() != SBN_SUCCESS) + if (SetupSubPipe() != SBN_SUCCESS) { EVSSendErr(SBN_INIT_EID, "%s unable to set up subscription pipe", FAIL_PREFIX); return SBN_ERROR; @@ -1428,7 +1510,10 @@ static SBN_Status_t Init(void) EVSSendInfo(SBN_INIT_EID, "initialized (ProcessorID=%d SpacecraftId=%d %s " "SBN.AppID=%d...", - (int)CFE_PSP_GetProcessorId(), (int)CFE_PSP_GetSpacecraftId(), bit_order, (int)CFE_RESOURCEID_TO_ULONG(SBN.AppID)); + (int)CFE_PSP_GetProcessorId(), + (int)CFE_PSP_GetSpacecraftId(), + bit_order, + (int)CFE_RESOURCEID_TO_ULONG(SBN.AppID)); EVSSendInfo(SBN_INIT_EID, "...SBN_IDENT=%s CMD_MID=0x%04X)", SBN_IDENT, SBN_CMD_MID); @@ -1438,7 +1523,9 @@ static SBN_Status_t Init(void) to the above messages. true means it needs to re-send subscription requests */ - while(CFE_ES_WaitForSystemState(CFE_ES_SystemState_OPERATIONAL, 1000) == CFE_ES_OPERATION_TIMED_OUT) /* do nothing but keep waiting */; + while (CFE_ES_WaitForSystemState(CFE_ES_SystemState_OPERATIONAL, 1000) + == CFE_ES_OPERATION_TIMED_OUT) /* do nothing but keep waiting */ + ; EVSSendInfo(SBN_INIT_EID, "Re-sending SB subscription requests..."); SBN_SendSubsRequests(); @@ -1452,7 +1539,8 @@ static SBN_Status_t Cleanup(void) { SBN_Status_t Status; - if ((Status = TeardownSubPipe()) != SBN_SUCCESS) { + if ((Status = TeardownSubPipe()) != SBN_SUCCESS) + { EVSSendErr(SBN_PEER_EID, "unable to tear down sub pipe"); return Status; } @@ -1556,7 +1644,8 @@ void SBN_AppMain(void) return; } /* end if */ - if(Init() != SBN_SUCCESS) { + if (Init() != SBN_SUCCESS) + { RunStatus = CFE_ES_RunStatus_APP_ERROR; } @@ -1571,14 +1660,16 @@ void SBN_AppMain(void) WaitForWakeup(SBN_MAIN_LOOP_DELAY); - if (OS_MutSemGive(SBN.ConfMutex) != OS_SUCCESS) { + if (OS_MutSemGive(SBN.ConfMutex) != OS_SUCCESS) + { EVSSendErr(SBN_PEER_EID, "ERROR: SBN run loop unable to give configuration mutex"); break; } } /* end while */ - if(Cleanup() != SBN_SUCCESS) { - EVSSendErr(SBN_INIT_EID, "ERROR: could not clean up SBN"); + if (Cleanup() != SBN_SUCCESS) + { + EVSSendErr(SBN_INIT_EID, "ERROR: could not clean up SBN"); } CFE_ES_ExitApp(RunStatus); @@ -1595,14 +1686,17 @@ void SBN_AppMain(void) * * @return SBN_SUCCESS on successful processing, SBN_ERROR otherwise */ -SBN_Status_t SBN_ProcessNetMsg(SBN_NetInterface_t *Net, SBN_MsgType_t MsgType, CFE_ProcessorID_t ProcessorID, - CFE_SpacecraftID_t SpacecraftID, - SBN_MsgSz_t MsgSize, void *Msg) +SBN_Status_t SBN_ProcessNetMsg(SBN_NetInterface_t *Net, + SBN_MsgType_t MsgType, + CFE_ProcessorID_t ProcessorID, + CFE_SpacecraftID_t SpacecraftID, + SBN_MsgSz_t MsgSize, + void *Msg) { - static const char FAIL_PREFIX[] = "ERROR: could not process peer message:"; - SBN_Status_t SBN_Status = SBN_SUCCESS; - CFE_Status_t CFE_Status = CFE_SUCCESS; - SBN_PeerInterface_t *Peer = SBN_GetPeer(Net, ProcessorID, SpacecraftID); + static const char FAIL_PREFIX[] = "ERROR: could not process peer message:"; + SBN_Status_t SBN_Status = SBN_SUCCESS; + CFE_Status_t CFE_Status = CFE_SUCCESS; + SBN_PeerInterface_t *Peer = SBN_GetPeer(Net, ProcessorID, SpacecraftID); if (!Peer) { @@ -1611,9 +1705,10 @@ SBN_Status_t SBN_ProcessNetMsg(SBN_NetInterface_t *Net, SBN_MsgType_t MsgType, C } /* end if */ /* Check if message is protocol-specific (unkown to SBN core) */ - if(MsgType & SBN_MODULE_SPECIFIC_MESSAGE_ID_MASK) { - EVSSendDbg(SBN_PEERTASK_EID, "SBN received module-specific message type: 0x%08x", MsgType); - return SBN_SUCCESS; + if (MsgType & SBN_MODULE_SPECIFIC_MESSAGE_ID_MASK) + { + EVSSendDbg(SBN_PEERTASK_EID, "SBN received module-specific message type: 0x%08x", MsgType); + return SBN_SUCCESS; } switch (MsgType) @@ -1628,11 +1723,16 @@ SBN_Status_t SBN_ProcessNetMsg(SBN_NetInterface_t *Net, SBN_MsgType_t MsgType, C "my version=%d, peer version %d", FAIL_PREFIX, Peer->SpacecraftID, - (int)Peer->ProcessorID, (int)SBN_PROTO_VER, (int)Ver); + (int)Peer->ProcessorID, + (int)SBN_PROTO_VER, + (int)Ver); } else { - EVSSendInfo(SBN_SB_EID, "SBN protocol version match with peer %d:%d", (int)Peer->SpacecraftID, (int)Peer->ProcessorID); + EVSSendInfo(SBN_SB_EID, + "SBN protocol version match with peer %d:%d", + (int)Peer->SpacecraftID, + (int)Peer->ProcessorID); } /* end if */ break; } /* end case */ @@ -1660,13 +1760,17 @@ SBN_Status_t SBN_ProcessNetMsg(SBN_NetInterface_t *Net, SBN_MsgType_t MsgType, C { return SBN_Status; } /* end if */ - } /* end for */ + } /* end for */ CFE_Status = CFE_SB_TransmitMsg(Msg, false); if (CFE_Status != CFE_SUCCESS) { - EVSSendErr(SBN_SB_EID, "%s CFE_SB_PassMsg error (Status=%d MsgType=0x%x)", FAIL_PREFIX, (int)CFE_Status, MsgType); + EVSSendErr(SBN_SB_EID, + "%s CFE_SB_PassMsg error (Status=%d MsgType=0x%x)", + FAIL_PREFIX, + (int)CFE_Status, + MsgType); return SBN_ERROR; } /* end if */ break; @@ -1695,7 +1799,8 @@ SBN_Status_t SBN_ProcessNetMsg(SBN_NetInterface_t *Net, SBN_MsgType_t MsgType, C * @param[in] SpacecraftID The SpacecraftI of the peer being sought. * @return The Peer interface pointer, or NULL if not found. */ -SBN_PeerInterface_t *SBN_GetPeer(SBN_NetInterface_t *Net, CFE_ProcessorID_t ProcessorID, CFE_SpacecraftID_t SpacecraftID) +SBN_PeerInterface_t * +SBN_GetPeer(SBN_NetInterface_t *Net, CFE_ProcessorID_t ProcessorID, CFE_SpacecraftID_t SpacecraftID) { SBN_PeerIdx_t PeerIdx = 0; @@ -1705,12 +1810,11 @@ SBN_PeerInterface_t *SBN_GetPeer(SBN_NetInterface_t *Net, CFE_ProcessorID_t Proc { return &Net->Peers[PeerIdx]; } /* end if */ - } /* end for */ + } /* end for */ return NULL; } /* end SBN_GetPeer */ - /** \brief Reload configuration and re-initialize * This is only called after receiving a message from TBL service. */ @@ -1724,24 +1828,27 @@ SBN_Status_t SBN_ReloadConfTbl(void) if (OS_MutSemTake(SBN.ConfMutex) != OS_SUCCESS) { - EVSSendErr(SBN_PEER_EID, "%s could not take configuration mutex", FAIL_PREFIX); - return SBN_ERROR; + EVSSendErr(SBN_PEER_EID, "%s could not take configuration mutex", FAIL_PREFIX); + return SBN_ERROR; } /* end if */ Status = Cleanup(); - if(Status != SBN_SUCCESS) { - EVSSendErr(SBN_PEER_EID, "%s could not clean up SBN", FAIL_PREFIX); - } else { - Status = Init(); + if (Status != SBN_SUCCESS) + { + EVSSendErr(SBN_PEER_EID, "%s could not clean up SBN", FAIL_PREFIX); + } + else + { + Status = Init(); - EVSSendInfo(SBN_TBL_EID, "SBN re-initialized."); + EVSSendInfo(SBN_TBL_EID, "SBN re-initialized."); } if (OS_MutSemGive(SBN.ConfMutex) != OS_SUCCESS) { - EVSSendErr(SBN_PEER_EID, "%s could not give configuration mutex", FAIL_PREFIX); - return SBN_ERROR; + EVSSendErr(SBN_PEER_EID, "%s could not give configuration mutex", FAIL_PREFIX); + return SBN_ERROR; } /* end if */ return Status; diff --git a/fsw/src/sbn_app.h b/fsw/src/sbn_app.h index 63295380..94edcd6c 100644 --- a/fsw/src/sbn_app.h +++ b/fsw/src/sbn_app.h @@ -46,13 +46,6 @@ /* */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -void SBN_ShowPeerData(void); -int32 SBN_GetPeerFileData(void); - -SBN_Status_t SBN_RecvNetMsgs(void); - -void SBN_CheckPeerPipes(void); - /** * \brief SBN global data structure definition */ @@ -132,19 +125,34 @@ extern SBN_App_t SBN; /* ** Prototypes */ -void SBN_AppMain(void); -SBN_Status_t SBN_ProcessNetMsg(SBN_NetInterface_t *Net, SBN_MsgType_t MsgType, CFE_ProcessorID_t ProcessorID, CFE_SpacecraftID_t SpacecraftID, - SBN_MsgSz_t MsgSz, void *Msg); -SBN_PeerInterface_t *SBN_GetPeer(SBN_NetInterface_t *Net, CFE_ProcessorID_t ProcessorID, CFE_SpacecraftID_t SpacecraftID); -SBN_Status_t SBN_ReloadConfTbl(void); -void SBN_RecvNetTask(void); -void SBN_RecvPeerTask(void); -void SBN_SendTask(void); -SBN_Status_t SBN_Connected(SBN_PeerInterface_t *Peer); -SBN_Status_t SBN_Disconnected(SBN_PeerInterface_t *Peer); -void SBN_PackMsg(void *SBNBuf, SBN_MsgSz_t MsgSz, SBN_MsgType_t MsgType, CFE_ProcessorID_t ProcessorID, CFE_SpacecraftID_t SpacecraftID, void *Msg); -bool SBN_UnpackMsg(void *SBNBuf, SBN_MsgSz_t *MsgSzPtr, SBN_MsgType_t *MsgTypePtr, CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, void *Msg); -SBN_Status_t SBN_SendNetMsg(SBN_MsgType_t MsgType, SBN_MsgSz_t MsgSz, void *Msg, SBN_PeerInterface_t *Peer); -SBN_PeerInterface_t *SBN_GetPeer(SBN_NetInterface_t *Net, CFE_ProcessorID_t ProcessorID, CFE_SpacecraftID_t SpacecraftID); +void SBN_AppMain(void); +SBN_Status_t SBN_ProcessNetMsg(SBN_NetInterface_t *Net, + SBN_MsgType_t MsgType, + CFE_ProcessorID_t ProcessorID, + CFE_SpacecraftID_t SpacecraftID, + SBN_MsgSz_t MsgSz, + void *Msg); +SBN_PeerInterface_t * +SBN_GetPeer(SBN_NetInterface_t *Net, CFE_ProcessorID_t ProcessorID, CFE_SpacecraftID_t SpacecraftID); +SBN_Status_t SBN_ReloadConfTbl(void); +void SBN_RecvNetTask(void); +void SBN_RecvPeerTask(void); +void SBN_SendTask(void); +SBN_Status_t SBN_Connected(SBN_PeerInterface_t *Peer); +SBN_Status_t SBN_Disconnected(SBN_PeerInterface_t *Peer); +void SBN_PackMsg(void *SBNBuf, + SBN_MsgSz_t MsgSz, + SBN_MsgType_t MsgType, + CFE_ProcessorID_t ProcessorID, + CFE_SpacecraftID_t SpacecraftID, + void *Msg); +bool SBN_UnpackMsg(void *SBNBuf, + SBN_MsgSz_t *MsgSzPtr, + SBN_MsgType_t *MsgTypePtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *Msg); +SBN_Status_t SBN_SendNetMsg(SBN_MsgType_t MsgType, SBN_MsgSz_t MsgSz, void *Msg, SBN_PeerInterface_t *Peer); +SBN_Status_t SBN_RecvNetMsgs(void); #endif /* _sbn_app_ */ diff --git a/fsw/src/sbn_cmds.c b/fsw/src/sbn_cmds.c index 68c5f4ef..4cc635f2 100644 --- a/fsw/src/sbn_cmds.c +++ b/fsw/src/sbn_cmds.c @@ -30,8 +30,8 @@ */ static void InitializePeerCounters(SBN_PeerInterface_t *Peer) { - Peer->LastSend = (OS_time_t) {0}; - Peer->LastRecv = (OS_time_t) {0}; + Peer->LastSend = (OS_time_t) { 0 }; + Peer->LastRecv = (OS_time_t) { 0 }; Peer->SendCnt = 0; Peer->RecvCnt = 0; Peer->SendErrCnt = 0; @@ -57,7 +57,7 @@ void SBN_InitializeCounters(void) SBN_PeerInterface_t *Peer = &Net->Peers[PeerIdx]; InitializePeerCounters(Peer); } /* end for */ - } /* end for */ + } /* end for */ } /* end SBN_InitializeCounters */ /************************************************************************/ @@ -88,7 +88,7 @@ static bool VerifyMsgLen(CFE_MSG_Message_t *MsgPtr, uint16 ExpectedLen, const ch CFE_MSG_Size_t ActualLen = 0; CFE_MSG_FcnCode_t FcnCode = 0; - if(CFE_MSG_GetSize(MsgPtr, &ActualLen) != CFE_SUCCESS) + if (CFE_MSG_GetSize(MsgPtr, &ActualLen) != CFE_SUCCESS) { EVSSendErr(SBN_CMD_EID, "invalid hk message (Name=%s)", MsgName); return false; @@ -96,7 +96,7 @@ static bool VerifyMsgLen(CFE_MSG_Message_t *MsgPtr, uint16 ExpectedLen, const ch if (ExpectedLen != ActualLen) { - if(CFE_MSG_GetFcnCode(MsgPtr, &FcnCode) != CFE_SUCCESS) + if (CFE_MSG_GetFcnCode(MsgPtr, &FcnCode) != CFE_SUCCESS) { EVSSendErr(SBN_CMD_EID, "unable to get FcnCode (Name=%s)", MsgName); return false; @@ -111,15 +111,24 @@ static bool VerifyMsgLen(CFE_MSG_Message_t *MsgPtr, uint16 ExpectedLen, const ch EVSSendErr(SBN_CMD_EID, "invalid hk message length (Name=%s ID=0x%04X " "CC=%d Len=%d Expected=%d)", - MsgName, FcnCode, (int)FcnCode, (int)ActualLen, (int)ExpectedLen); + MsgName, + FcnCode, + (int)FcnCode, + (int)ActualLen, + (int)ExpectedLen); } else { /* ** All other cases, increment error counter */ - EVSSendErr(SBN_CMD_EID, "invalid message length (Name=%s ID=0x%04X CC=%d Len=%d Expected=%d)", MsgName, - FcnCode, (int)FcnCode, (int)ActualLen, (int)ExpectedLen); + EVSSendErr(SBN_CMD_EID, + "invalid message length (Name=%s ID=0x%04X CC=%d Len=%d Expected=%d)", + MsgName, + FcnCode, + (int)FcnCode, + (int)ActualLen, + (int)ExpectedLen); SBN.CmdErrCnt++; } /* end if */ @@ -264,9 +273,9 @@ static void HKCmd(CFE_MSG_Message_t *MsgPtr) EVSSendDbg(SBN_CMD_EID, "hk command"); - uint8 HKBuf[SBN_HK_LEN]; + uint8 HKBuf[SBN_HK_LEN]; CFE_MSG_Message_t *HKMsg = (CFE_MSG_Message_t *)HKBuf; - Pack_t Pack; + Pack_t Pack; CFE_MSG_Init(HKMsg, CFE_SB_ValueToMsgId(SBN_HK_TLM_MID), SBN_HK_LEN); @@ -314,9 +323,9 @@ static void HKNetCmd(CFE_MSG_Message_t *MsgPtr) EVSSendInfo(SBN_CMD_EID, "hk command, net=%d", NetIdx); - uint8 HKBuf[SBN_HKNET_LEN]; + uint8 HKBuf[SBN_HKNET_LEN]; CFE_MSG_Message_t *HKMsg = (CFE_MSG_Message_t *)HKBuf; - Pack_t Pack; + Pack_t Pack; CFE_MSG_Init(HKMsg, CFE_SB_ValueToMsgId(SBN_HKNET_TLM_MID), SBN_HKNET_LEN); @@ -363,7 +372,10 @@ static void HKPeerCmd(CFE_MSG_Message_t *MsgPtr) if (PeerIdx > SBN.Nets[NetIdx].PeerCnt) { - EVSSendErr(SBN_CMD_EID, "Invalid PeerIdx (NetIdx=%d PeerIdx=%d, max is %d)", NetIdx, PeerIdx, + EVSSendErr(SBN_CMD_EID, + "Invalid PeerIdx (NetIdx=%d PeerIdx=%d, max is %d)", + NetIdx, + PeerIdx, SBN.Nets[NetIdx].PeerCnt - 1); return; } /* end if */ @@ -372,9 +384,9 @@ static void HKPeerCmd(CFE_MSG_Message_t *MsgPtr) EVSSendInfo(SBN_CMD_EID, "hk command, net=%d, peer=%d", NetIdx, PeerIdx); - uint8 HKBuf[SBN_HKPEER_LEN]; + uint8 HKBuf[SBN_HKPEER_LEN]; CFE_MSG_Message_t *HKMsg = (CFE_MSG_Message_t *)HKBuf; - Pack_t Pack; + Pack_t Pack; CFE_MSG_Init(HKMsg, CFE_SB_ValueToMsgId(SBN_HKPEER_TLM_MID), SBN_HKPEER_LEN); @@ -416,13 +428,16 @@ static void MySubsCmd(CFE_MSG_Message_t *MsgPtr) EVSSendInfo(SBN_CMD_EID, "hk subs command"); - uint8 HKBuf[SBN_HKMYSUBS_LEN]; + uint8 HKBuf[SBN_HKMYSUBS_LEN]; CFE_MSG_Message_t *HKMsg = (CFE_MSG_Message_t *)HKBuf; - Pack_t Pack; + Pack_t Pack; CFE_MSG_Init(HKMsg, CFE_SB_ValueToMsgId(SBN_HKMYSUBS_TLM_MID), SBN_HKMYSUBS_LEN); - Pack_Init(&Pack, HKBuf + sizeof(CFE_MSG_TelemetryHeader_t), SBN_HKMYSUBS_LEN - sizeof(CFE_MSG_TelemetryHeader_t), 1); + Pack_Init(&Pack, + HKBuf + sizeof(CFE_MSG_TelemetryHeader_t), + SBN_HKMYSUBS_LEN - sizeof(CFE_MSG_TelemetryHeader_t), + 1); Pack_UInt8(&Pack, SBN_HK_MYSUBS_CC); Pack_UInt16(&Pack, SBN.SubCnt); @@ -452,8 +467,12 @@ static void ReloadTblCmd(CFE_MSG_Message_t *MsgPtr) { EVSSendInfo(SBN_CMD_EID, "reload tbl command"); SBN_ReloadConfTbl(); - } else { - EVSSendErr(SBN_CMD_EID, "Recevied tbl reload command, but message was wrong size. This command should only be triggered from the TBL service, itself, and not called directly."); + } + else + { + EVSSendErr(SBN_CMD_EID, + "Recevied tbl reload command, but message was wrong size. This command should only be " + "triggered from the TBL service, itself, and not called directly."); } return; } @@ -489,7 +508,10 @@ static void PeerSubsCmd(CFE_MSG_Message_t *MsgPtr) if (PeerIdx >= SBN.Nets[NetIdx].PeerCnt) { - EVSSendErr(SBN_CMD_EID, "Invalid PeerIdx (NetIdx=%d PeerIdx=%d, max is %d)", NetIdx, PeerIdx, + EVSSendErr(SBN_CMD_EID, + "Invalid PeerIdx (NetIdx=%d PeerIdx=%d, max is %d)", + NetIdx, + PeerIdx, SBN.Nets[NetIdx].PeerCnt - 1); return; } /* end if */ @@ -498,13 +520,16 @@ static void PeerSubsCmd(CFE_MSG_Message_t *MsgPtr) SBN_PeerInterface_t *Peer = &SBN.Nets[NetIdx].Peers[PeerIdx]; - uint8 HKBuf[SBN_HKPEERSUBS_LEN]; + uint8 HKBuf[SBN_HKPEERSUBS_LEN]; CFE_MSG_Message_t *HKMsg = (CFE_MSG_Message_t *)HKBuf; - Pack_t Pack; + Pack_t Pack; CFE_MSG_Init(HKMsg, CFE_SB_ValueToMsgId(SBN_HKPEERSUBS_TLM_MID), SBN_HKPEERSUBS_LEN); - Pack_Init(&Pack, HKBuf + sizeof(CFE_MSG_TelemetryHeader_t), SBN_HKPEERSUBS_LEN - sizeof(CFE_MSG_TelemetryHeader_t), 1); + Pack_Init(&Pack, + HKBuf + sizeof(CFE_MSG_TelemetryHeader_t), + SBN_HKPEERSUBS_LEN - sizeof(CFE_MSG_TelemetryHeader_t), + 1); Pack_UInt8(&Pack, SBN_HK_PEERSUBS_CC); Pack_UInt16(&Pack, NetIdx); @@ -548,7 +573,7 @@ void SBN_HandleCommand(CFE_MSG_Message_t *MsgPtr) return; } /* end if */ - if(CFE_MSG_GetFcnCode(MsgPtr, &FcnCode) != CFE_SUCCESS) + if (CFE_MSG_GetFcnCode(MsgPtr, &FcnCode) != CFE_SUCCESS) { SBN.CmdErrCnt++; EVSSendErr(SBN_CMD_EID, "invalid FcnCode (FcnCode=0x%04X)", FcnCode); diff --git a/fsw/src/sbn_pack.h b/fsw/src/sbn_pack.h index ad16a3d8..1892142f 100644 --- a/fsw/src/sbn_pack.h +++ b/fsw/src/sbn_pack.h @@ -50,7 +50,7 @@ typedef struct { - void * Buf; + void *Buf; size_t BufSz, BufUsed; } Pack_t; diff --git a/fsw/src/sbn_subs.c b/fsw/src/sbn_subs.c index 53e61fcb..e0ee64b3 100644 --- a/fsw/src/sbn_subs.c +++ b/fsw/src/sbn_subs.c @@ -30,7 +30,7 @@ */ SBN_Status_t SBN_SendSubsRequests(void) { - CFE_Status_t CFE_Status = CFE_SUCCESS; + CFE_Status_t CFE_Status = CFE_SUCCESS; CFE_MSG_CommandHeader_t CmdMsg; /* Turn on SB subscription reporting */ @@ -126,7 +126,7 @@ static int IsMsgIDSub(int *IdxPtr, CFE_SB_MsgId_t MsgID) return true; } /* end if */ - } /* end for */ + } /* end for */ return false; } /* end IsMsgIDSub */ @@ -152,7 +152,7 @@ static int IsPeerSubMsgID(int *SubIdxPtr, CFE_SB_MsgId_t MsgID, SBN_PeerInterfac *SubIdxPtr = i; return true; } /* end if */ - } /* end for */ + } /* end for */ return false; @@ -174,11 +174,11 @@ static SBN_Status_t ProcessLocalSub(CFE_SB_MsgId_t MsgID, CFE_SB_Qos_t QoS) /* don't send SBN messages */ if (CFE_SB_MsgId_Equal(MsgID, CFE_SB_ValueToMsgId(SBN_CMD_MID)) - || CFE_SB_MsgId_Equal(MsgID, CFE_SB_ValueToMsgId(SBN_HK_TLM_MID)) - || CFE_SB_MsgId_Equal(MsgID, CFE_SB_ValueToMsgId(SBN_HKNET_TLM_MID)) - || CFE_SB_MsgId_Equal(MsgID, CFE_SB_ValueToMsgId(SBN_HKPEER_TLM_MID)) - || CFE_SB_MsgId_Equal(MsgID, CFE_SB_ValueToMsgId(SBN_HKMYSUBS_TLM_MID)) - || CFE_SB_MsgId_Equal(MsgID, CFE_SB_ValueToMsgId(SBN_HKPEERSUBS_TLM_MID))) + || CFE_SB_MsgId_Equal(MsgID, CFE_SB_ValueToMsgId(SBN_HK_TLM_MID)) + || CFE_SB_MsgId_Equal(MsgID, CFE_SB_ValueToMsgId(SBN_HKNET_TLM_MID)) + || CFE_SB_MsgId_Equal(MsgID, CFE_SB_ValueToMsgId(SBN_HKPEER_TLM_MID)) + || CFE_SB_MsgId_Equal(MsgID, CFE_SB_ValueToMsgId(SBN_HKMYSUBS_TLM_MID)) + || CFE_SB_MsgId_Equal(MsgID, CFE_SB_ValueToMsgId(SBN_HKPEERSUBS_TLM_MID))) return SBN_SUCCESS; int SubIdx = 0; @@ -194,8 +194,10 @@ static SBN_Status_t ProcessLocalSub(CFE_SB_MsgId_t MsgID, CFE_SB_Qos_t QoS) if (SBN.SubCnt >= SBN_MAX_SUBS_PER_PEER) { - EVSSendErr(SBN_SUB_EID, "local subscription ignored for MsgID 0x%04X, max (%d) met", - CFE_SB_MsgIdToValue(MsgID), SBN_MAX_SUBS_PER_PEER); + EVSSendErr(SBN_SUB_EID, + "local subscription ignored for MsgID 0x%04X, max (%d) met", + CFE_SB_MsgIdToValue(MsgID), + SBN_MAX_SUBS_PER_PEER); return SBN_ERROR; } /* end if */ @@ -213,16 +215,19 @@ static SBN_Status_t ProcessLocalSub(CFE_SB_MsgId_t MsgID, CFE_SB_Qos_t QoS) { SBN_PeerInterface_t *Peer = &Net->Peers[PeerIdx]; - EVSSendDbg(SBN_PEER_EID, "process local sub for MID %#04x sending to %d:%d", - CFE_SB_MsgIdToValue(MsgID), Peer->SpacecraftID, Peer->ProcessorID); + EVSSendDbg(SBN_PEER_EID, + "process local sub for MID %#04x sending to %d:%d", + CFE_SB_MsgIdToValue(MsgID), + Peer->SpacecraftID, + Peer->ProcessorID); SBN_Status = SendLocalSubToPeer(SBN_SUB_MSG, MsgID, QoS, Peer); if (SBN_Status != SBN_SUCCESS) { return SBN_Status; } /* end if */ - } /* end for */ - } /* end for */ + } /* end for */ + } /* end for */ return SBN_Status; } /* end ProcessLocalSub */ @@ -242,7 +247,7 @@ static SBN_Status_t ProcessLocalUnsub(CFE_SB_MsgId_t MsgID) if (!IsMsgIDSub(&SubIdx, MsgID)) { return SBN_SUCCESS; /* or should this be error? */ - } /* end if */ + } /* end if */ SBN.Subs[SubIdx].InUseCtr--; @@ -283,8 +288,8 @@ static SBN_Status_t ProcessLocalUnsub(CFE_SB_MsgId_t MsgID) { return SBN_Status; } /* end if */ - } /* end for */ - } /* end for */ + } /* end for */ + } /* end for */ return SBN_SUCCESS; } /* end ProcessLocalUnsub */ @@ -299,9 +304,9 @@ SBN_Status_t SBN_CheckSubscriptionPipe(void) { CFE_Status_t CFE_Status = CFE_SUCCESS; - CFE_SB_AllSubscriptionsTlm_t *MsgPtr = NULL; /* largest message format */ + CFE_SB_AllSubscriptionsTlm_t *MsgPtr = NULL; /* largest message format */ CFE_SB_SingleSubscriptionTlm_t *SingleMsgPtr = NULL; /* utility "cast" */ - CFE_SB_MsgId_t MsgId; + CFE_SB_MsgId_t MsgId; CFE_Status = CFE_SB_ReceiveBuffer((CFE_SB_Buffer_t **)&MsgPtr, SBN.SubPipe, CFE_SB_POLL); switch (CFE_Status) @@ -314,7 +319,7 @@ SBN_Status_t SBN_CheckSubscriptionPipe(void) return SBN_ERROR; } - if(CFE_SB_MsgId_Equal(MsgId, CFE_SB_ValueToMsgId(CFE_SB_ONESUB_TLM_MID))) + if (CFE_SB_MsgId_Equal(MsgId, CFE_SB_ValueToMsgId(CFE_SB_ONESUB_TLM_MID))) { SingleMsgPtr = (CFE_SB_SingleSubscriptionTlm_t *)MsgPtr; switch (SingleMsgPtr->Payload.SubType) @@ -324,19 +329,19 @@ SBN_Status_t SBN_CheckSubscriptionPipe(void) case CFE_SB_UNSUBSCRIPTION: return ProcessLocalUnsub(SingleMsgPtr->Payload.MsgId); default: - EVSSendErr(SBN_SUB_EID, "unexpected subscription type (%d) in SBN_CheckSubscriptionPipe", - SingleMsgPtr->Payload.SubType); + EVSSendErr(SBN_SUB_EID, + "unexpected subscription type (%d) in SBN_CheckSubscriptionPipe", + SingleMsgPtr->Payload.SubType); return SBN_ERROR; } /* end switch */ } - else if(CFE_SB_MsgId_Equal(MsgId, CFE_SB_ValueToMsgId(CFE_SB_ALLSUBS_TLM_MID))) + else if (CFE_SB_MsgId_Equal(MsgId, CFE_SB_ValueToMsgId(CFE_SB_ALLSUBS_TLM_MID))) { return SBN_ProcessAllSubscriptions(MsgPtr); } else { - EVSSendErr(SBN_MSG_EID, "unexpected message id (0x%04X) on SBN.SubPipe", - CFE_SB_MsgIdToValue(MsgId)); + EVSSendErr(SBN_MSG_EID, "unexpected message id (0x%04X) on SBN.SubPipe", CFE_SB_MsgIdToValue(MsgId)); return SBN_ERROR; } /* end switch */ @@ -374,8 +379,10 @@ static SBN_Status_t AddSub(SBN_PeerInterface_t *Peer, CFE_SB_MsgId_t MsgID, CFE_ if (Peer->SubCnt >= SBN_MAX_SUBS_PER_PEER) { - EVSSendErr(SBN_SUB_EID, "cannot process subscription from ProcessorID %d, max (%d) met", - Peer->ProcessorID, SBN_MAX_SUBS_PER_PEER); + EVSSendErr(SBN_SUB_EID, + "cannot process subscription from ProcessorID %d, max (%d) met", + Peer->ProcessorID, + SBN_MAX_SUBS_PER_PEER); return SBN_ERROR; } /* end if */ @@ -383,8 +390,7 @@ static SBN_Status_t AddSub(SBN_PeerInterface_t *Peer, CFE_SB_MsgId_t MsgID, CFE_ CFE_Status = CFE_SB_SubscribeLocal(MsgID, Peer->Pipe, SBN_DEFAULT_MSG_LIM); if (CFE_Status != CFE_SUCCESS) { - EVSSendErr(SBN_SUB_EID, "unable to subscribe to MID 0x%04X", - CFE_SB_MsgIdToValue(MsgID)); + EVSSendErr(SBN_SUB_EID, "unable to subscribe to MID 0x%04X", CFE_SB_MsgIdToValue(MsgID)); return SBN_ERROR; } /* end if */ @@ -412,10 +418,10 @@ static SBN_Status_t ProcessSubFromPeer(SBN_PeerInterface_t *Peer, CFE_SB_MsgId_t SBN_Filter_Ctx_t Filter_Context; SBN_Status_t SBN_Status; - Filter_Context.MyProcessorID = CFE_PSP_GetProcessorId(); - Filter_Context.MySpacecraftID = CFE_PSP_GetSpacecraftId(); - Filter_Context.PeerProcessorID = Peer->ProcessorID; - Filter_Context.PeerSpacecraftID = Peer->SpacecraftID; + Filter_Context.MyProcessorID = CFE_PSP_GetProcessorId(); + Filter_Context.MySpacecraftID = CFE_PSP_GetSpacecraftId(); + Filter_Context.PeerProcessorID = Peer->ProcessorID; + Filter_Context.PeerSpacecraftID = Peer->SpacecraftID; for (FilterIdx = 0; FilterIdx < Peer->FilterCnt; FilterIdx++) { @@ -430,7 +436,7 @@ static SBN_Status_t ProcessSubFromPeer(SBN_PeerInterface_t *Peer, CFE_SB_MsgId_t { return SBN_Status; } /* end if */ - } /* end for */ + } /* end for */ return AddSub(Peer, MsgID, QoS); } /* ProcessSubFromPeer */ @@ -476,7 +482,7 @@ SBN_Status_t SBN_ProcessSubsFromPeer(SBN_PeerInterface_t *Peer, void *Msg) { return SBN_Status; } /* end if */ - } /* end for */ + } /* end for */ return SBN_SUCCESS; } /* SBN_ProcessSubsFromPeer */ @@ -498,10 +504,10 @@ static SBN_Status_t ProcessUnsubFromPeer(SBN_PeerInterface_t *Peer, CFE_SB_MsgId int i = 0, idx = 0; - Filter_Context.MyProcessorID = CFE_PSP_GetProcessorId(); - Filter_Context.MySpacecraftID = CFE_PSP_GetSpacecraftId(); - Filter_Context.PeerProcessorID = Peer->ProcessorID; - Filter_Context.PeerSpacecraftID = Peer->SpacecraftID; + Filter_Context.MyProcessorID = CFE_PSP_GetProcessorId(); + Filter_Context.MySpacecraftID = CFE_PSP_GetSpacecraftId(); + Filter_Context.PeerProcessorID = Peer->ProcessorID; + Filter_Context.PeerSpacecraftID = Peer->SpacecraftID; for (FilterIdx = 0; FilterIdx < Peer->FilterCnt; FilterIdx++) { @@ -517,12 +523,14 @@ static SBN_Status_t ProcessUnsubFromPeer(SBN_PeerInterface_t *Peer, CFE_SB_MsgId /* assume the filter generated an event */ return SBN_Status; } /* end if */ - } /* end for */ + } /* end for */ if (!IsPeerSubMsgID(&idx, MsgID, Peer)) { - EVSSendInfo(SBN_SUB_EID, "cannot process unsubscription from ProcessorID %d, msg 0x%04X not found", - Peer->ProcessorID, CFE_SB_MsgIdToValue(MsgID)); + EVSSendInfo(SBN_SUB_EID, + "cannot process unsubscription from ProcessorID %d, msg 0x%04X not found", + Peer->ProcessorID, + CFE_SB_MsgIdToValue(MsgID)); return SBN_SUCCESS; } /* end if */ @@ -542,8 +550,7 @@ static SBN_Status_t ProcessUnsubFromPeer(SBN_PeerInterface_t *Peer, CFE_SB_MsgId /* unsubscribe to the msg id on the peer pipe */ if ((CFE_Status = CFE_SB_UnsubscribeLocal(MsgID, Peer->Pipe)) != CFE_SUCCESS) { - EVSSendErr(SBN_SUB_EID, "unable to unsubscribe from MID 0x%04X: %d", - CFE_SB_MsgIdToValue(MsgID), CFE_Status); + EVSSendErr(SBN_SUB_EID, "unable to unsubscribe from MID 0x%04X: %d", CFE_SB_MsgIdToValue(MsgID), CFE_Status); return SBN_ERROR; } /* end if */ @@ -585,7 +592,7 @@ SBN_Status_t SBN_ProcessUnsubsFromPeer(SBN_PeerInterface_t *Peer, void *Msg) Unpack_Data(&Pack, &QoS, sizeof(QoS)); ProcessUnsubFromPeer(Peer, MsgID); /* ignore return value, I want to unsub as much as I can */ - } /* end for */ + } /* end for */ return SBN_SUCCESS; } /* end SBN_ProcessUnsubsFromPeer() */ @@ -605,14 +612,15 @@ SBN_Status_t SBN_ProcessAllSubscriptions(CFE_SB_AllSubscriptionsTlm_t *Ptr) if (Ptr->Payload.Entries > CFE_MISSION_SB_SUB_ENTRIES_PER_PKT) { - EVSSendErr(SBN_SUB_EID, "entries value %d in SB PrevSubMsg exceeds max %d, aborting", (int)Ptr->Payload.Entries, + EVSSendErr(SBN_SUB_EID, + "entries value %d in SB PrevSubMsg exceeds max %d, aborting", + (int)Ptr->Payload.Entries, CFE_MISSION_SB_SUB_ENTRIES_PER_PKT); return SBN_ERROR; } /* end if */ EVSSendInfo(SBN_SUB_EID, "Processing all subscriptions..."); - for (i = 0; i < Ptr->Payload.Entries; i++) { SBN_Status = ProcessLocalSub(Ptr->Payload.Entry[i].MsgId, Ptr->Payload.Entry[i].Qos); @@ -620,7 +628,7 @@ SBN_Status_t SBN_ProcessAllSubscriptions(CFE_SB_AllSubscriptionsTlm_t *Ptr) { return SBN_Status; } /* end if */ - } /* end for */ + } /* end for */ return SBN_Status; } /* end SBN_ProcessAllSubscriptions */ @@ -644,11 +652,13 @@ SBN_Status_t SBN_RemoveAllSubsFromPeer(SBN_PeerInterface_t *Peer) CFE_Status = CFE_SB_UnsubscribeLocal(Peer->Subs[i].MsgID, Peer->Pipe); if (CFE_Status != CFE_SUCCESS && CFE_Status != CFE_SB_BAD_ARGUMENT) { - EVSSendErr(SBN_SUB_EID, "unable to unsubscribe from message id 0x%04X: 0x%08X", - CFE_SB_MsgIdToValue(Peer->Subs[i].MsgID), CFE_Status); + EVSSendErr(SBN_SUB_EID, + "unable to unsubscribe from message id 0x%04X: 0x%08X", + CFE_SB_MsgIdToValue(Peer->Subs[i].MsgID), + CFE_Status); /* but continue processing... */ } /* end if */ - } /* end for */ + } /* end for */ EVSSendInfo(SBN_SUB_EID, "unsubscribed %d message id's from ProcessorID %d", (int)Peer->SubCnt, Peer->ProcessorID); diff --git a/fsw/tables/sbn_conf_tbl.c b/fsw/tables/sbn_conf_tbl.c index 7495407b..bc158c01 100644 --- a/fsw/tables/sbn_conf_tbl.c +++ b/fsw/tables/sbn_conf_tbl.c @@ -19,59 +19,45 @@ #include "sbn_tbl.h" #include "cfe_tbl_filedef.h" -SBN_ConfTbl_t SBN_ConfTbl = -{ - .ProtocolModules = - { - {/* [0] */ - .Name = "UDP", - .LibFileName = "/cf/sbn_udp.so", - .LibSymbol = "SBN_UDP_Ops", - .BaseEID = 0x0100 - } - }, - .ProtocolCnt = 1, - .FilterModules = - { - {/* [0] */ - .Name = "Remap", - .LibFileName = "/cf/sbn_f_remap.so", - .LibSymbol = "SBN_F_Remap", - .BaseEID = 0x1000 - } - }, - .FilterCnt = 1, - .Peers = - { - {/* [0] */ - .ProcessorID = 1, - .SpacecraftID = 0x42, - .NetNum = 0, - .ProtocolName = "UDP", - .Filters = {"Remap"}, - .Address = "127.0.0.1:3234", - .TaskFlags = SBN_TASK_POLL - }, - {/* [1] */ - .ProcessorID = 2, - .SpacecraftID = 0x42, - .NetNum = 0, - .ProtocolName = "UDP", - .Filters = {"Remap"}, - .Address = "127.0.0.1:3235", - .TaskFlags = SBN_TASK_POLL - }, - {/* [2] */ - .ProcessorID = 3, - .SpacecraftID = 0x42, - .NetNum = 0, - .ProtocolName = "UDP", - .Filters = {"Remap"}, - .Address = "127.0.0.1:3236", - .TaskFlags = SBN_TASK_POLL - }, - }, - .PeerCnt = 3 -}; +SBN_ConfTbl_t SBN_ConfTbl = {.ProtocolModules = {{/* [0] */ + .Name = "UDP", + .LibFileName = "/cf/sbn_udp.so", + .LibSymbol = "SBN_UDP_Ops", + .BaseEID = 0x0100}}, + .ProtocolCnt = 1, + .FilterModules = {{/* [0] */ + .Name = "Remap", + .LibFileName = "/cf/sbn_f_remap.so", + .LibSymbol = "SBN_F_Remap", + .BaseEID = 0x1000}}, + .FilterCnt = 1, + .Peers = + { + {/* [0] */ + .ProcessorID = 1, + .SpacecraftID = 0x42, + .NetNum = 0, + .ProtocolName = "UDP", + .Filters = {"Remap"}, + .Address = "127.0.0.1:3234", + .TaskFlags = SBN_TASK_POLL}, + {/* [1] */ + .ProcessorID = 2, + .SpacecraftID = 0x42, + .NetNum = 0, + .ProtocolName = "UDP", + .Filters = {"Remap"}, + .Address = "127.0.0.1:3235", + .TaskFlags = SBN_TASK_POLL}, + {/* [2] */ + .ProcessorID = 3, + .SpacecraftID = 0x42, + .NetNum = 0, + .ProtocolName = "UDP", + .Filters = {"Remap"}, + .Address = "127.0.0.1:3236", + .TaskFlags = SBN_TASK_POLL}, + }, + .PeerCnt = 3}; CFE_TBL_FILEDEF(SBN_ConfTbl, SBN.SBN_ConfTbl, SBN Configuration Table, sbn_conf_tbl.tbl) diff --git a/modules/filter/ccsds_end/fsw/src/sbn_f_ccsds_end.c b/modules/filter/ccsds_end/fsw/src/sbn_f_ccsds_end.c index f3311d3a..8e66dbf4 100644 --- a/modules/filter/ccsds_end/fsw/src/sbn_f_ccsds_end.c +++ b/modules/filter/ccsds_end/fsw/src/sbn_f_ccsds_end.c @@ -48,7 +48,7 @@ static SBN_Status_t End(void *Msg, SBN_Filter_Ctx_t *Context) SubSeconds = CFE_MAKE_BIG32(SubSeconds); CCSDS_WR_SEC_HDR_SUBSEC(TlmPktPtr->Sec, SubSeconds); } /* end if */ - } /* end if */ + } /* end if */ return SBN_SUCCESS; } /* SBN_F_CCSDS_End() */ @@ -67,4 +67,4 @@ static CFE_Status_t Init(int Version, CFE_EVS_EventID_t BaseEID) return CFE_SUCCESS; } /* end Init() */ -SBN_FilterInterface_t SBN_F_CCSDS_End = {Init, End, End, NULL}; +SBN_FilterInterface_t SBN_F_CCSDS_End = { Init, End, End, NULL }; diff --git a/modules/filter/remap/fsw/src/sbn_f_remap.c b/modules/filter/remap/fsw/src/sbn_f_remap.c index 718b1b2c..6545b4f3 100644 --- a/modules/filter/remap/fsw/src/sbn_f_remap.c +++ b/modules/filter/remap/fsw/src/sbn_f_remap.c @@ -31,8 +31,8 @@ const char SBN_F_REMAP_TABLE_NAME[] = "SBN_RemapTbl"; bool RemapInitialized = false; OS_MutexID_t RemapMutex; CFE_TBL_Handle_t RemapTblHandle = 0; -SBN_RemapTbl_t *RemapTbl = NULL; -int RemapTblCnt = 0; +SBN_RemapTbl_t *RemapTbl = NULL; +int RemapTblCnt = 0; CFE_EVS_EventID_t SBN_F_REMAP_FIRST_EID; @@ -61,7 +61,7 @@ static int RemapTblVal(void *TblPtr) { break; } /* end if */ - } /* end for */ + } /* end for */ RemapTblCnt = i; @@ -86,11 +86,15 @@ static int RemapTblCompar(const void *a, const void *b) static SBN_Status_t LoadRemapTbl(void) { - SBN_RemapTbl_t * TblPtr = NULL; - CFE_Status_t CFE_Status = CFE_SUCCESS; - - if (CFE_TBL_Register(&RemapTblHandle, SBN_F_REMAP_TABLE_NAME, sizeof(SBN_RemapTbl_t), CFE_TBL_OPT_DEFAULT, &RemapTblVal) != - CFE_SUCCESS) + SBN_RemapTbl_t *TblPtr = NULL; + CFE_Status_t CFE_Status = CFE_SUCCESS; + + if (CFE_TBL_Register(&RemapTblHandle, + SBN_F_REMAP_TABLE_NAME, + sizeof(SBN_RemapTbl_t), + CFE_TBL_OPT_DEFAULT, + &RemapTblVal) + != CFE_SUCCESS) { EVSSendErr(SBN_F_REMAP_TBL_EID, "unable to register remap tbl handle"); return SBN_ERROR; @@ -130,7 +134,10 @@ static SBN_Status_t LoadRemapTbl(void) } /* end LoadRemapTbl() */ /* finds the entry or the one that would immediately follow it */ -static int BinarySearch(void *Entries, void *SearchEntry, size_t EntryCnt, size_t EntrySz, +static int BinarySearch(void *Entries, + void *SearchEntry, + size_t EntryCnt, + size_t EntrySz, int (*EntryCompare)(const void *, const void *)) { int start, end, midpoint, found; @@ -151,7 +158,7 @@ static int BinarySearch(void *Entries, void *SearchEntry, size_t EntryCnt, size_ { end = midpoint - 1; } /* end if */ - } /* end while */ + } /* end while */ if (found == 0) { @@ -163,7 +170,7 @@ static int BinarySearch(void *Entries, void *SearchEntry, size_t EntryCnt, size_ static int RemapTblSearch(uint32 ProcessorID, uint32 SpacecraftID, CFE_SB_MsgId_t MID) { - SBN_RemapTblEntry_t Entry = {ProcessorID, SpacecraftID, MID, {0}}; + SBN_RemapTblEntry_t Entry = { ProcessorID, SpacecraftID, MID, { 0 } }; return BinarySearch(RemapTbl->Entries, &Entry, RemapTblCnt, sizeof(SBN_RemapTblEntry_t), RemapTblCompar); } /* end RemapTblSearch() */ @@ -186,10 +193,9 @@ static SBN_Status_t Remap(void *msg, SBN_Filter_Ctx_t *Context) int i = RemapTblSearch(Context->PeerProcessorID, Context->PeerSpacecraftID, FromMID); - if (i < RemapTblCnt && - RemapTbl->Entries[i].ProcessorID == Context->PeerProcessorID && - RemapTbl->Entries[i].SpacecraftID == Context->PeerSpacecraftID && - CFE_SB_MsgId_Equal(RemapTbl->Entries[i].FromMID, FromMID)) + if (i < RemapTblCnt && RemapTbl->Entries[i].ProcessorID == Context->PeerProcessorID + && RemapTbl->Entries[i].SpacecraftID == Context->PeerSpacecraftID + && CFE_SB_MsgId_Equal(RemapTbl->Entries[i].FromMID, FromMID)) { ToMID = RemapTbl->Entries[i].ToMID; } @@ -199,7 +205,7 @@ static SBN_Status_t Remap(void *msg, SBN_Filter_Ctx_t *Context) { ToMID = FromMID; } /* end if */ - } /* end if */ + } /* end if */ if (OS_MutSemGive(RemapMutex) != OS_SUCCESS) { @@ -210,7 +216,7 @@ static SBN_Status_t Remap(void *msg, SBN_Filter_Ctx_t *Context) if (CFE_SB_MsgId_Equal(ToMID, CFE_SB_ValueToMsgId(0x0000))) { return SBN_IF_EMPTY; /* signal to the core app that this filter recommends not sending this message */ - } /* end if */ + } /* end if */ if (CFE_MSG_SetMsgId(CFE_MsgPtr, ToMID) != CFE_SUCCESS) { @@ -228,15 +234,15 @@ static SBN_Status_t Remap_MID(CFE_SB_MsgId_t *InOutMsgIdPtr, SBN_Filter_Ctx_t *C EVSSendDbg(SBN_F_REMAP_TBL_EID, "Remap check 0x%04X", CFE_SB_MsgIdToValue(*InOutMsgIdPtr)); for (i = 0; i < RemapTblCnt; i++) { - if (RemapTbl->Entries[i].ProcessorID == Context->PeerProcessorID && - RemapTbl->Entries[i].SpacecraftID == Context->PeerSpacecraftID && - CFE_SB_MsgId_Equal(RemapTbl->Entries[i].ToMID, *InOutMsgIdPtr)) + if (RemapTbl->Entries[i].ProcessorID == Context->PeerProcessorID + && RemapTbl->Entries[i].SpacecraftID == Context->PeerSpacecraftID + && CFE_SB_MsgId_Equal(RemapTbl->Entries[i].ToMID, *InOutMsgIdPtr)) { *InOutMsgIdPtr = RemapTbl->Entries[i].FromMID; EVSSendDbg(SBN_F_REMAP_TBL_EID, " --> 0x%04X", CFE_SB_MsgIdToValue(*InOutMsgIdPtr)); return SBN_SUCCESS; } /* end if */ - } /* end for */ + } /* end for */ return SBN_SUCCESS; } /* end Remap_MID() */ @@ -247,11 +253,14 @@ static SBN_Status_t UnloadRemapTbl(void) if (CFE_TBL_GetStatus(RemapTblHandle) == CFE_SUCCESS) { // Unregister and free resources used by table - if(CFE_TBL_Unregister(RemapTblHandle) != CFE_SUCCESS) { + if (CFE_TBL_Unregister(RemapTblHandle) != CFE_SUCCESS) + { EVSSendErr(SBN_F_REMAP_TBL_EID, "unable to unregister table"); } RemapTbl = NULL; - } else { + } + else + { EVSSendErr(SBN_F_REMAP_TBL_EID, "unable to get registered table"); return SBN_ERROR; } @@ -267,7 +276,8 @@ static SBN_Status_t Deinit(CFE_EVS_EventID_t BaseEID) return SBN_ERROR; } /* end if */ - if(UnloadRemapTbl() != SBN_SUCCESS) { + if (UnloadRemapTbl() != SBN_SUCCESS) + { EVSSendErr(BaseEID, "unable to unload table"); return SBN_ERROR; } @@ -280,7 +290,8 @@ static SBN_Status_t Deinit(CFE_EVS_EventID_t BaseEID) if (OS_ObjectIdDefined(RemapMutex)) { - if(OS_MutSemDelete(RemapMutex) != OS_SUCCESS) { + if (OS_MutSemDelete(RemapMutex) != OS_SUCCESS) + { EVSSendErr(BaseEID, "unable to delete mutex"); return SBN_ERROR; } @@ -295,8 +306,8 @@ static SBN_Status_t Deinit(CFE_EVS_EventID_t BaseEID) static SBN_Status_t Init(int Version, CFE_EVS_EventID_t BaseEID) { CFE_ES_TaskInfo_t TaskInfo; - OS_Status_t OS_Status; - CFE_Status_t CFE_Status; + OS_Status_t OS_Status; + CFE_Status_t CFE_Status; RemapMutex = OS_OBJECT_ID_UNDEFINED; @@ -317,10 +328,11 @@ static SBN_Status_t Init(int Version, CFE_EVS_EventID_t BaseEID) return SBN_ERROR; } /* end if */ - if(RemapInitialized) + if (RemapInitialized) { EVSSendErr(BaseEID, "already initialized."); - if(Deinit(BaseEID) != SBN_SUCCESS) { + if (Deinit(BaseEID) != SBN_SUCCESS) + { EVSSendErr(BaseEID, "unable to deinitialize SBN_F_Remap"); } } @@ -331,7 +343,8 @@ static SBN_Status_t Init(int Version, CFE_EVS_EventID_t BaseEID) return SBN_ERROR; } /* end if */ - if(LoadRemapTbl() != SBN_SUCCESS) { + if (LoadRemapTbl() != SBN_SUCCESS) + { EVSSendErr(BaseEID, "unable to load remap table"); } @@ -342,4 +355,4 @@ static SBN_Status_t Init(int Version, CFE_EVS_EventID_t BaseEID) return SBN_SUCCESS; } /* end Init() */ -SBN_FilterInterface_t SBN_F_Remap = {Init, Remap, Remap, Remap_MID}; +SBN_FilterInterface_t SBN_F_Remap = { Init, Remap, Remap, Remap_MID }; diff --git a/modules/filter/remap/fsw/tables/sbn_remap_tbl.c b/modules/filter/remap/fsw/tables/sbn_remap_tbl.c index 76a2554d..2f9d23b6 100644 --- a/modules/filter/remap/fsw/tables/sbn_remap_tbl.c +++ b/modules/filter/remap/fsw/tables/sbn_remap_tbl.c @@ -21,9 +21,10 @@ SBN_RemapTbl_t SBN_RemapTbl = { .RemapDefaultFlag = SBN_REMAP_DEFAULT_SEND, - .Entries = {{.ProcessorID = 3, .SpacecraftID = 0x42, .FromMID = {0x0882}, .ToMID = {0x0883}}, + .Entries = { { .ProcessorID = 3, .SpacecraftID = 0x42, .FromMID = { 0x0882 }, .ToMID = { 0x0883 } }, - /** ProcessorID "0" signals the end of the table. */ - {.ProcessorID = 0, .SpacecraftID = 0, .FromMID = {0x0000}, .ToMID = {0x0000}}}}; /* end SBN_RemapTbl */ + /** ProcessorID "0" signals the end of the table. */ + { .ProcessorID = 0, .SpacecraftID = 0, .FromMID = { 0x0000 }, .ToMID = { 0x0000 } } } +}; /* end SBN_RemapTbl */ CFE_TBL_FILEDEF(SBN_RemapTbl, SBN.SBN_RemapTbl, SBN Remap Table, sbn_remap_tbl.tbl) diff --git a/modules/filter/test/fsw/src/sbn_f_test.c b/modules/filter/test/fsw/src/sbn_f_test.c index 6cc851ea..3b613d20 100644 --- a/modules/filter/test/fsw/src/sbn_f_test.c +++ b/modules/filter/test/fsw/src/sbn_f_test.c @@ -50,4 +50,4 @@ static CFE_Status_t Init(int Version, CFE_EVS_EventID_t BaseEID) return CFE_SUCCESS; } /* end Init() */ -SBN_FilterInterface_t SBN_F_Test = {Init, In, Out, NULL}; +SBN_FilterInterface_t SBN_F_Test = { Init, In, Out, NULL }; diff --git a/modules/protocol/dtn/fsw/src/sbn_dtn_if.c b/modules/protocol/dtn/fsw/src/sbn_dtn_if.c index fd9fb235..e7cf308d 100644 --- a/modules/protocol/dtn/fsw/src/sbn_dtn_if.c +++ b/modules/protocol/dtn/fsw/src/sbn_dtn_if.c @@ -113,7 +113,7 @@ int SBN_DTN_Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_MsgSz_t M uint8 SendBuf[SBN_MAX_PACKED_MSG_SZ]; SBN_DTN_Peer_t *PeerData = (SBN_DTN_Peer_t *)Peer->ModulePvt; - SBN_DTN_Net_t * NetData = (SBN_DTN_Net_t *)Peer->Net->ModulePvt; + SBN_DTN_Net_t *NetData = (SBN_DTN_Net_t *)Peer->Net->ModulePvt; SBN_PackMsg(&SendBuf, MsgSz, MsgType, CFE_PSP_GetProcessorId(), Payload); @@ -143,8 +143,8 @@ int SBN_DTN_Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_MsgSz_t M } /* end if */ Object NewBundle; - if (bp_send(NULL, PeerData->EIN, NULL, 300, BP_STD_PRIORITY, NoCustodyRequested, 0, 0, NULL, BundleZCO, - &NewBundle) < 1) + if (bp_send(NULL, PeerData->EIN, NULL, 300, BP_STD_PRIORITY, NoCustodyRequested, 0, 0, NULL, BundleZCO, &NewBundle) + < 1) { CFE_EVS_SendEvent(SBN_DTN_SOCK_EID, CFE_EVS_ERROR, "bpsource can't send ADU"); return SBN_ERROR; @@ -157,8 +157,11 @@ int SBN_DTN_Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_MsgSz_t M * from all peers but that's ok, I just inject them into the SB and all is * good! */ -int SBN_DTN_Recv(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t *MsgSzPtr, SBN_CpuID_t *CpuIDPtr, - void *Payload) +int SBN_DTN_Recv(SBN_NetInterface_t *Net, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + SBN_CpuID_t *CpuIDPtr, + void *Payload) { uint8 RecvBuf[SBN_MAX_PACKED_MSG_SZ]; BpDelivery Delivery; @@ -204,8 +207,11 @@ int SBN_DTN_Recv(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t sdr_exit_xn(NetData->RecvSDR); if (ContentLength > sizeof(RecvBuf)) { - CFE_EVS_SendEvent(SBN_DTN_SOCK_EID, CFE_EVS_ERROR, "Received message too large for buffer. (Bufsize=%d Msg=%d)", - sizeof(RecvBuf), ContentLength); + CFE_EVS_SendEvent(SBN_DTN_SOCK_EID, + CFE_EVS_ERROR, + "Received message too large for buffer. (Bufsize=%d Msg=%d)", + sizeof(RecvBuf), + ContentLength); return SBN_ERROR; } /* end if */ diff --git a/modules/protocol/dtn/fsw/src/sbn_dtn_if.h b/modules/protocol/dtn/fsw/src/sbn_dtn_if.h index 8e0521c3..155cbf54 100644 --- a/modules/protocol/dtn/fsw/src/sbn_dtn_if.h +++ b/modules/protocol/dtn/fsw/src/sbn_dtn_if.h @@ -46,8 +46,11 @@ int SBN_DTN_PollPeer(SBN_PeerInterface_t *PeerInterface); int SBN_DTN_Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_MsgSz_t MsgSz, void *Payload); -int SBN_DTN_Recv(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t *MsgSzPtr, SBN_CpuID_t *CpuIDPtr, - void *PayloadBuffer); +int SBN_DTN_Recv(SBN_NetInterface_t *Net, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + SBN_CpuID_t *CpuIDPtr, + void *PayloadBuffer); int SBN_DTN_ReportModuleStatus(SBN_ModuleStatusPacket_t *Packet); @@ -57,12 +60,12 @@ int SBN_DTN_UnloadNet(SBN_NetInterface_t *NetInterface); int SBN_DTN_UnloadPeer(SBN_PeerInterface_t *PeerInterface); -SBN_IfOps_t SBN_DTN_Ops = {SBN_DTN_Init, SBN_DTN_LoadNet, - SBN_DTN_LoadPeer, SBN_DTN_InitNet, - SBN_DTN_InitPeer, SBN_DTN_PollPeer, - SBN_DTN_Send, NULL, - SBN_DTN_Recv, SBN_DTN_ReportModuleStatus, - SBN_DTN_ResetPeer, SBN_DTN_UnloadNet, - SBN_DTN_UnloadPeer}; +SBN_IfOps_t SBN_DTN_Ops = { SBN_DTN_Init, SBN_DTN_LoadNet, + SBN_DTN_LoadPeer, SBN_DTN_InitNet, + SBN_DTN_InitPeer, SBN_DTN_PollPeer, + SBN_DTN_Send, NULL, + SBN_DTN_Recv, SBN_DTN_ReportModuleStatus, + SBN_DTN_ResetPeer, SBN_DTN_UnloadNet, + SBN_DTN_UnloadPeer }; #endif /* _sbn_dtn_if_h_ */ diff --git a/modules/protocol/serial/fsw/src/sbn_serial_if.c b/modules/protocol/serial/fsw/src/sbn_serial_if.c index 9d33f78e..ea547e3e 100644 --- a/modules/protocol/serial/fsw/src/sbn_serial_if.c +++ b/modules/protocol/serial/fsw/src/sbn_serial_if.c @@ -37,7 +37,10 @@ int SBN_SERIAL_Init(int Version) { if (Version != 1) { - CFE_EVS_SendEvent(SBN_SERIAL_CONFIG_EID, CFE_EVS_ERROR, "mismatching version %d (SBN app reports %d)", Version, + CFE_EVS_SendEvent(SBN_SERIAL_CONFIG_EID, + CFE_EVS_ERROR, + "mismatching version %d (SBN app reports %d)", + Version, 1); return SBN_ERROR; } /* end if */ @@ -117,8 +120,12 @@ static int TrySerial(SBN_SERIAL_Peer_t *PeerData) /* all good! */ - CFE_EVS_SendEvent(SBN_SERIAL_DEBUG_EID, CFE_EVS_INFORMATION, - "Serial device %s (task=%d, fd=%d) attached, flushing.", PeerData->Filename, OS_TaskGetId(), FD); + CFE_EVS_SendEvent(SBN_SERIAL_DEBUG_EID, + CFE_EVS_INFORMATION, + "Serial device %s (task=%d, fd=%d) attached, flushing.", + PeerData->Filename, + OS_TaskGetId(), + FD); PeerData->SerialConn = TRUE; PeerData->FD = FD; @@ -148,7 +155,7 @@ int SBN_SERIAL_PollPeer(SBN_PeerInterface_t *Peer) /* no luck */ return 0; } /* end if */ - } /* end if */ + } /* end if */ OS_time_t CurrentTime; OS_GetLocalTime(&CurrentTime); @@ -181,8 +188,8 @@ int SBN_SERIAL_Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_MsgSz_ } /* end if */ SBN_PackMsg(&SendBuf, MsgSz, MsgType, CFE_PSP_GetProcessorId(), Msg); - size_t sent_size = write(PeerData->FD, &SendBuf, MsgSz + SBN_PACKED_HDR_SZ); - if (sent_size < MsgSz + SBN_PACKED_HDR_SZ) + ssize_t sent_size = write(PeerData->FD, &SendBuf, MsgSz + SBN_PACKED_HDR_SZ); + if ((sent_size < 0) || (sent_size < MsgSz + SBN_PACKED_HDR_SZ)) { CFE_EVS_SendEvent(SBN_SERIAL_DEBUG_EID, CFE_EVS_INFORMATION, "CPU %d disconnected", Peer->ProcessorID); @@ -195,8 +202,12 @@ int SBN_SERIAL_Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_MsgSz_ return SBN_SUCCESS; } /* end SBN_SERIAL_Send */ -int SBN_SERIAL_Recv(SBN_NetInterface_t *Net, SBN_PeerInterface_t *Peer, SBN_MsgType_t *MsgTypePtr, - SBN_MsgSz_t *MsgSzPtr, SBN_CpuID_t *CpuIDPtr, void *MsgBuf) +int SBN_SERIAL_Recv(SBN_NetInterface_t *Net, + SBN_PeerInterface_t *Peer, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + SBN_CpuID_t *CpuIDPtr, + void *MsgBuf) { SBN_SERIAL_Peer_t *PeerData = (SBN_SERIAL_Peer_t *)Peer->ModulePvt; @@ -206,7 +217,7 @@ int SBN_SERIAL_Recv(SBN_NetInterface_t *Net, SBN_PeerInterface_t *Peer, SBN_MsgT { return SBN_IF_EMPTY; } /* end if */ - } /* end if */ + } /* end if */ #ifndef SBN_RECV_TASK fd_set ReadFDs; @@ -224,9 +235,13 @@ int SBN_SERIAL_Recv(SBN_NetInterface_t *Net, SBN_PeerInterface_t *Peer, SBN_MsgT if (Result < 0) { - CFE_EVS_SendEvent(SBN_SERIAL_DEBUG_EID, CFE_EVS_INFORMATION, - "Read error TaskID=%d, FD=%d, errno=%d, CPU=%d disconnected", OS_TaskGetId(), PeerData->FD, - errno, Peer->ProcessorID); + CFE_EVS_SendEvent(SBN_SERIAL_DEBUG_EID, + CFE_EVS_INFORMATION, + "Read error TaskID=%d, FD=%d, errno=%d, CPU=%d disconnected", + OS_TaskGetId(), + PeerData->FD, + errno, + Peer->ProcessorID); close(PeerData->FD); PeerData->Connected = FALSE; @@ -251,8 +266,11 @@ int SBN_SERIAL_Recv(SBN_NetInterface_t *Net, SBN_PeerInterface_t *Peer, SBN_MsgT if (Received < 0) { - CFE_EVS_SendEvent(SBN_SERIAL_DEBUG_EID, CFE_EVS_INFORMATION, - "Read error FD=%d, errno=%d, CPU=%d disconnected", PeerData->FD, errno, + CFE_EVS_SendEvent(SBN_SERIAL_DEBUG_EID, + CFE_EVS_INFORMATION, + "Read error FD=%d, errno=%d, CPU=%d disconnected", + PeerData->FD, + errno, Peer->ProcessorID); close(PeerData->FD); @@ -281,12 +299,12 @@ int SBN_SERIAL_Recv(SBN_NetInterface_t *Net, SBN_PeerInterface_t *Peer, SBN_MsgT else { return SBN_IF_EMPTY; /* wait for the complete header */ - } /* end if */ - } /* end if */ + } /* end if */ + } /* end if */ /* only get here if we're read'd the header and ready for the body */ - ToRead = CFE_MAKE_BIG16(*((SBN_MsgSz_t *)&RecvBufs[PeerData->BufNum])) + SBN_PACKED_HDR_SZ - PeerData->RecvSz; + ToRead = CFE_MAKE_BIG32(*((SBN_MsgSz_t *)&RecvBufs[PeerData->BufNum])) + SBN_PACKED_HDR_SZ - PeerData->RecvSz; if (ToRead) { Received = read(PeerData->FD, (char *)&RecvBufs[PeerData->BufNum] + PeerData->RecvSz, ToRead); @@ -300,8 +318,8 @@ int SBN_SERIAL_Recv(SBN_NetInterface_t *Net, SBN_PeerInterface_t *Peer, SBN_MsgT if (Received < ToRead) { return SBN_IF_EMPTY; /* wait for the complete body */ - } /* end if */ - } /* end if */ + } /* end if */ + } /* end if */ /* we have the complete body, decode! */ if (SBN_UnpackMsg(&RecvBufs[PeerData->BufNum], MsgSzPtr, MsgTypePtr, CpuIDPtr, MsgBuf)) diff --git a/modules/protocol/serial/fsw/src/sbn_serial_if.h b/modules/protocol/serial/fsw/src/sbn_serial_if.h index fdf46799..e82629a4 100644 --- a/modules/protocol/serial/fsw/src/sbn_serial_if.h +++ b/modules/protocol/serial/fsw/src/sbn_serial_if.h @@ -46,8 +46,12 @@ int SBN_SERIAL_PollPeer(SBN_PeerInterface_t *Peer); int SBN_SERIAL_Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_MsgSz_t MsgSz, void *Payload); -int SBN_SERIAL_Recv(SBN_NetInterface_t *Net, SBN_PeerInterface_t *Peer, SBN_MsgType_t *MsgTypePtr, - SBN_MsgSz_t *MsgSzPtr, SBN_CpuID_t *CpuIDPtr, void *PayloadBuffer); +int SBN_SERIAL_Recv(SBN_NetInterface_t *Net, + SBN_PeerInterface_t *Peer, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + SBN_CpuID_t *CpuIDPtr, + void *PayloadBuffer); int SBN_SERIAL_ReportModuleStatus(SBN_ModuleStatusPacket_t *Packet); @@ -57,19 +61,19 @@ int SBN_SERIAL_UnloadNet(SBN_NetInterface_t *Net); int SBN_SERIAL_UnloadPeer(SBN_PeerInterface_t *Peer); -SBN_IfOps_t SBN_SERIAL_Ops = {SBN_SERIAL_Init, - SBN_SERIAL_LoadNet, - SBN_SERIAL_LoadPeer, - SBN_SERIAL_InitNet, - SBN_SERIAL_InitPeer, - SBN_SERIAL_PollPeer, - SBN_SERIAL_Send, - SBN_SERIAL_Recv, - NULL, - SBN_SERIAL_ReportModuleStatus, - SBN_SERIAL_ResetPeer, - SBN_SERIAL_UnloadNet, - SBN_SERIAL_UnloadPeer}; +SBN_IfOps_t SBN_SERIAL_Ops = { SBN_SERIAL_Init, + SBN_SERIAL_LoadNet, + SBN_SERIAL_LoadPeer, + SBN_SERIAL_InitNet, + SBN_SERIAL_InitPeer, + SBN_SERIAL_PollPeer, + SBN_SERIAL_Send, + SBN_SERIAL_Recv, + NULL, + SBN_SERIAL_ReportModuleStatus, + SBN_SERIAL_ResetPeer, + SBN_SERIAL_UnloadNet, + SBN_SERIAL_UnloadPeer }; /** * SBN message type for heartbeat messages. diff --git a/modules/protocol/spacewire/fsw/src/spw_sbn_if.c b/modules/protocol/spacewire/fsw/src/spw_sbn_if.c index 00db99d7..fc463f87 100644 --- a/modules/protocol/spacewire/fsw/src/spw_sbn_if.c +++ b/modules/protocol/spacewire/fsw/src/spw_sbn_if.c @@ -170,8 +170,10 @@ int32 SBN_CheckForSPWNetProtoMsg(SBN_InterfaceData *Peer, SBN_NetProtoMsg_t *Pro linkStatus = SPW_GetStatus(peer->spwEntry, SBN_SPW_LINK_STATUS); if (!linkStatus | error != SPW_FREAD_NO_ERROR) { - CFE_EVS_SendEvent(SBN_NET_RCV_PROTO_ERR_EID, CFE_EVS_ERROR, - "%s:Recv err in CheckForNetProtoMsgs linkStatus=%d ferror=%d" CFE_CPU_NAME, linkStatus, + CFE_EVS_SendEvent(SBN_NET_RCV_PROTO_ERR_EID, + CFE_EVS_ERROR, + "%s:Recv err in CheckForNetProtoMsgs linkStatus=%d ferror=%d" CFE_CPU_NAME, + linkStatus, error); ProtoMsgBuf->Hdr.Type = SBN_NO_MSG; return SBN_ERROR; @@ -237,8 +239,12 @@ int32 SBN_ParseSPWFileEntry(char *FileEntry, uint32 LineNum, void **EntryAddr) */ if (ScanfStatus != SBN_SPW_ITEMS_PER_FILE_LINE) { - CFE_EVS_SendEvent(SBN_INV_LINE_EID, CFE_EVS_ERROR, "%s:Invalid SBN peer file line,exp %d items,found %d", - CFE_CPU_NAME, SBN_SPW_ITEMS_PER_FILE_LINE, ScanfStatus); + CFE_EVS_SendEvent(SBN_INV_LINE_EID, + CFE_EVS_ERROR, + "%s:Invalid SBN peer file line,exp %d items,found %d", + CFE_CPU_NAME, + SBN_SPW_ITEMS_PER_FILE_LINE, + ScanfStatus); return SBN_ERROR; } @@ -259,7 +265,7 @@ int32 SBN_ParseSPWFileEntry(char *FileEntry, uint32 LineNum, void **EntryAddr) * @param Data SPW interface information * @return SBN_OK on success, error code otherwise */ -int32 SBN_InitSPWIF(SBN_InterfaceData * Data) +int32 SBN_InitSPWIF(SBN_InterfaceData *Data) { int32 Stat; SPW_SBNEntry_t *entry = Data->EntryData; @@ -297,9 +303,14 @@ int32 SBN_InitSPWIF(SBN_InterfaceData * Data) * @param ProtoMsgBuf Protocol message * @param DataMsgBuf Data message */ -int32 SBN_SendSPWNetMsg(uint32 MsgType, uint32 MsgSz, SBN_InterfaceData * HostList[], int32 NumHosts, - CFE_SB_SenderId_t * SenderPtr, SBN_InterfaceData * IfData, SBN_NetProtoMsg_t * ProtoMsgBuf, - NetDataUnion * DataMsgBuf) +int32 SBN_SendSPWNetMsg(uint32 MsgType, + uint32 MsgSz, + SBN_InterfaceData *HostList[], + int32 NumHosts, + CFE_SB_SenderId_t *SenderPtr, + SBN_InterfaceData *IfData, + SBN_NetProtoMsg_t *ProtoMsgBuf, + NetDataUnion *DataMsgBuf) { int status, found = 0; SPW_SBNPeerData_t *peer; @@ -348,7 +359,7 @@ int32 SBN_SendSPWNetMsg(uint32 MsgType, uint32 MsgSz, SBN_InterfaceData * HostLi return (status); } /* end SBN_SendNetMsg */ -int32 SPW_VerifyPeerInterface(SBN_InterfaceData * Peer, SBN_InterfaceData * HostList[], int32 NumHosts) +int32 SPW_VerifyPeerInterface(SBN_InterfaceData *Peer, SBN_InterfaceData *HostList[], int32 NumHosts) { int32 HostIdx; int32 found; @@ -376,7 +387,7 @@ int32 SPW_VerifyPeerInterface(SBN_InterfaceData * Peer, SBN_InterfaceData * Host /** * An SPW host doesn't necessarily need a peer, so this always returns true. */ -int32 SPW_VerifyHostInterface(SBN_InterfaceData * Host, SBN_PeerData_t * PeerList, int32 NumPeers) +int32 SPW_VerifyHostInterface(SBN_InterfaceData *Host, SBN_PeerData_t *PeerList, int32 NumPeers) { return SBN_VALID; } diff --git a/modules/protocol/spacewire/fsw/src/spw_sbn_if.h b/modules/protocol/spacewire/fsw/src/spw_sbn_if.h index 464744f0..21ce5234 100644 --- a/modules/protocol/spacewire/fsw/src/spw_sbn_if.h +++ b/modules/protocol/spacewire/fsw/src/spw_sbn_if.h @@ -31,9 +31,9 @@ /* for string allocation, unless you want it dynamic... */ #define SBN_SPW_MAX_PATH_LENGTH 4096 /* sprintf format for Sysfs path to spacewire status files */ -#define SBN_SPW_SYSFS_PATH "/sys/class/%s/%s/device/" +#define SBN_SPW_SYSFS_PATH "/sys/class/%s/%s/device/" /*sprintf format for dev path to spacewire device file */ -#define SBN_SPW_DEV_PATH "/dev/%s" +#define SBN_SPW_DEV_PATH "/dev/%s" /* SpaceWire status file names in Sysfs */ #define SBN_SPW_LINK_STATUS "link_status" @@ -49,14 +49,19 @@ int32 SBN_CheckForSPWNetProtoMsg(SBN_InterfaceData *Peer, SBN_NetProtoMsg_t *Pro int SBN_SPWRcvMsg(SBN_InterfaceData *Host, NetDataUnion *DataMsgBuf); int32 SBN_ParseSPWFileEntry(char *FileEntry, uint32 LineNum, void **EntryAddr); int32 SBN_InitSPWIF(SBN_InterfaceData *data); -int32 SBN_SendSPWNetMsg(uint32 MsgType, uint32 MsgSz, SBN_InterfaceData *HostList[], int32 NumHosts, - CFE_SB_SenderId_t *SenderPtr, SBN_InterfaceData *IfData, SBN_NetProtoMsg_t *ProtoMsgBuf, - NetDataUnion *DataMsgBuf); +int32 SBN_SendSPWNetMsg(uint32 MsgType, + uint32 MsgSz, + SBN_InterfaceData *HostList[], + int32 NumHosts, + CFE_SB_SenderId_t *SenderPtr, + SBN_InterfaceData *IfData, + SBN_NetProtoMsg_t *ProtoMsgBuf, + NetDataUnion *DataMsgBuf); int32 SPW_VerifyPeerInterface(SBN_InterfaceData *Peer, SBN_InterfaceData *HostList[], int32 NumHosts); int32 SPW_VerifyHostInterface(SBN_InterfaceData *Host, SBN_PeerData_t *PeerList, int32 NumPeers); -SBN_InterfaceOperations SPWOps = {SBN_ParseSPWFileEntry, SBN_InitSPWIF, SBN_SendSPWNetMsg, - SBN_CheckForSPWNetProtoMsg, SBN_SPWRcvMsg, SPW_VerifyPeerInterface, - SPW_VerifyHostInterface}; +SBN_InterfaceOperations SPWOps = { SBN_ParseSPWFileEntry, SBN_InitSPWIF, SBN_SendSPWNetMsg, + SBN_CheckForSPWNetProtoMsg, SBN_SPWRcvMsg, SPW_VerifyPeerInterface, + SPW_VerifyHostInterface }; #endif /* _sbn_spw_if_h_ */ diff --git a/modules/protocol/spacewire/fsw/src/spw_sbn_if_struct.h b/modules/protocol/spacewire/fsw/src/spw_sbn_if_struct.h index 1c490b51..44bb15f3 100644 --- a/modules/protocol/spacewire/fsw/src/spw_sbn_if_struct.h +++ b/modules/protocol/spacewire/fsw/src/spw_sbn_if_struct.h @@ -24,8 +24,8 @@ */ typedef struct { - char DevClass[SBN_SPW_MAX_CHAR_NAME] /* e.g. 'spw' from /sys/class */ - char DevInstance[SBN_SPW_MAX_CHAR_NAME] /* e.g. 'spw0' from /dev */ + char DevClass[SBN_SPW_MAX_CHAR_NAME]; /* e.g. 'spw' from /sys/class */ + char DevInstance[SBN_SPW_MAX_CHAR_NAME]; /* e.g. 'spw0' from /dev */ } SPW_SBNEntry_t; typedef struct diff --git a/modules/protocol/tcp/fsw/src/sbn_tcp_if.c b/modules/protocol/tcp/fsw/src/sbn_tcp_if.c index 3b04bd9f..ce245353 100644 --- a/modules/protocol/tcp/fsw/src/sbn_tcp_if.c +++ b/modules/protocol/tcp/fsw/src/sbn_tcp_if.c @@ -246,7 +246,10 @@ static SBN_Status_t InitNet(SBN_NetInterface_t *Net) if (OS_SocketBind(Socket, &NetData->Addr) != OS_SUCCESS) { - EVSSendErr(SBN_TCP_SOCK_EID, "bind call failed (0x%lx Socket=%ld)", (unsigned long int)NetData, OS_ObjectIdToInteger(NetData->Socket)); + EVSSendErr(SBN_TCP_SOCK_EID, + "bind call failed (0x%lx Socket=%ld)", + (unsigned long int)NetData, + OS_ObjectIdToInteger(NetData->Socket)); return SBN_ERROR; } @@ -299,15 +302,17 @@ static void CheckNet(SBN_NetInterface_t *Net) for (PeerIdx = 0; PeerIdx < Net->PeerCnt; PeerIdx++) { SBN_PeerInterface_t *Peer = &Net->Peers[PeerIdx]; - SBN_TCP_Peer_t * PeerData = (SBN_TCP_Peer_t *)Peer->ModulePvt; + SBN_TCP_Peer_t *PeerData = (SBN_TCP_Peer_t *)Peer->ModulePvt; if (PeerData->ConnectOut && !Peer->Connected) { /* TODO: make a #define */ if (OS_TimeGetTotalSeconds(OS_TimeSubtract(LocalTime, PeerData->LastConnectTry)) > 5) { - EVSSendInfo(SBN_TCP_DEBUG_EID, "connecting to peer (PeerData=0x%lx, ProcessorID=%d)", - (unsigned long int)PeerData, Peer->ProcessorID); + EVSSendInfo(SBN_TCP_DEBUG_EID, + "connecting to peer (PeerData=0x%lx, ProcessorID=%d)", + (unsigned long int)PeerData, + Peer->ProcessorID); PeerData->LastConnectTry = LocalTime; @@ -322,7 +327,8 @@ static void CheckNet(SBN_NetInterface_t *Net) /* TODO: Make timeout configurable */ if (OS_SocketConnect(Socket, &PeerData->Addr, 100) != OS_SUCCESS) { - EVSSendErr(SBN_TCP_SOCK_EID, "unable to connect to peer (PeerData=0x%lx)", + EVSSendErr(SBN_TCP_SOCK_EID, + "unable to connect to peer (PeerData=0x%lx)", (unsigned long int)PeerData); OS_close(Socket); @@ -340,16 +346,16 @@ static void CheckNet(SBN_NetInterface_t *Net) SBN.Connected(Peer); } /* end if */ - } /* end if */ - } /* end if */ - } /* end for */ + } /* end if */ + } /* end if */ + } /* end for */ } /* end CheckNet() */ static SBN_Status_t Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_MsgSz_t MsgSz, void *Msg) { - SBN_TCP_Peer_t * PeerData = (SBN_TCP_Peer_t *)Peer->ModulePvt; + SBN_TCP_Peer_t *PeerData = (SBN_TCP_Peer_t *)Peer->ModulePvt; SBN_NetInterface_t *Net = Peer->Net; - SBN_TCP_Net_t * NetData = (SBN_TCP_Net_t *)Net->ModulePvt; + SBN_TCP_Net_t *NetData = (SBN_TCP_Net_t *)Net->ModulePvt; if (PeerData->Conn == NULL) { @@ -358,8 +364,8 @@ static SBN_Status_t Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_M } /* end if */ SBN.PackMsg(&SendBufs[NetData->BufNum], MsgSz, MsgType, CFE_PSP_GetProcessorId(), CFE_PSP_GetSpacecraftId(), Msg); - SBN_MsgSz_t sent_size = OS_write(PeerData->Conn->Socket, &SendBufs[NetData->BufNum], MsgSz + SBN_PACKED_HDR_SZ); - if (sent_size < MsgSz + SBN_PACKED_HDR_SZ) + int32 sent_size = OS_write(PeerData->Conn->Socket, &SendBufs[NetData->BufNum], MsgSz + SBN_PACKED_HDR_SZ); + if ((sent_size < 0) || (sent_size < MsgSz + SBN_PACKED_HDR_SZ)) { EVSSendInfo(SBN_TCP_DEBUG_EID, "CPU %d failed to write, disconnected", Peer->ProcessorID); @@ -382,12 +388,14 @@ static SBN_Status_t PollPeer(SBN_PeerInterface_t *Peer) OS_time_t CurrentTime; OS_GetLocalTime(&CurrentTime); - if (SBN_TCP_PEER_HEARTBEAT > 0 && OS_TimeGetTotalSeconds(OS_TimeSubtract(CurrentTime, Peer->LastSend)) > SBN_TCP_PEER_HEARTBEAT) + if (SBN_TCP_PEER_HEARTBEAT > 0 + && OS_TimeGetTotalSeconds(OS_TimeSubtract(CurrentTime, Peer->LastSend)) > SBN_TCP_PEER_HEARTBEAT) { Send(Peer, SBN_TCP_HEARTBEAT_MSG, 0, NULL); } /* end if */ - if (SBN_TCP_PEER_TIMEOUT > 0 && OS_TimeGetTotalSeconds(OS_TimeSubtract(CurrentTime, Peer->LastRecv)) > SBN_TCP_PEER_TIMEOUT) + if (SBN_TCP_PEER_TIMEOUT > 0 + && OS_TimeGetTotalSeconds(OS_TimeSubtract(CurrentTime, Peer->LastRecv)) > SBN_TCP_PEER_TIMEOUT) { EVSSendInfo(SBN_TCP_DEBUG_EID, "CPU %d timeout, disconnected", Peer->ProcessorID); @@ -397,8 +405,12 @@ static SBN_Status_t PollPeer(SBN_PeerInterface_t *Peer) return SBN_SUCCESS; } /* end PollPeer() */ -static SBN_Status_t Recv(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t *MsgSzPtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, void *MsgBuf) +static SBN_Status_t Recv(SBN_NetInterface_t *Net, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *MsgBuf) { OS_FdSet FdSet; OS_SelectTimeout_t timeout = 0; @@ -419,7 +431,7 @@ static SBN_Status_t Recv(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN { OS_SelectFdAdd(&FdSet, NetData->Conns[ConnID].Socket); } /* end if */ - } /* end for */ + } /* end for */ if (OS_SelectMultiple(&FdSet, NULL, timeout) != OS_SUCCESS) { @@ -468,12 +480,12 @@ static SBN_Status_t Recv(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN else { return SBN_IF_EMPTY; /* wait for the complete header */ - } /* end if */ - } /* end if */ + } /* end if */ + } /* end if */ /* only get here if we're recv'd the header and ready for the body */ - ToRead = CFE_MAKE_BIG16(*((SBN_MsgSz_t *)&RecvBufs[Conn->BufNum])) + SBN_PACKED_HDR_SZ - Conn->RecvSz; + ToRead = CFE_MAKE_BIG32(*((SBN_MsgSz_t *)&RecvBufs[Conn->BufNum])) + SBN_PACKED_HDR_SZ - Conn->RecvSz; if (ToRead) { Received = OS_read(Conn->Socket, (char *)&RecvBufs[Conn->BufNum] + Conn->RecvSz, ToRead); @@ -496,11 +508,12 @@ static SBN_Status_t Recv(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN if (Received < ToRead) { return SBN_IF_EMPTY; /* wait for the complete body */ - } /* end if */ - } /* end if */ + } /* end if */ + } /* end if */ /* we have the complete body, decode! */ - if (SBN.UnpackMsg(&RecvBufs[Conn->BufNum], MsgSzPtr, MsgTypePtr, ProcessorIDPtr, SpacecraftIDPtr, MsgBuf) == false) + if (SBN.UnpackMsg(&RecvBufs[Conn->BufNum], MsgSzPtr, MsgTypePtr, ProcessorIDPtr, SpacecraftIDPtr, MsgBuf) + == false) { return SBN_ERROR; } /* end if */ @@ -526,13 +539,13 @@ static SBN_Status_t Recv(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN break; } /* end if */ - } /* end for */ - } /* end if */ + } /* end for */ + } /* end if */ Conn->ReceivingBody = false; Conn->RecvSz = 0; } /* end if */ - } /* end for */ + } /* end for */ return SBN_SUCCESS; } /* end Recv() */ @@ -562,5 +575,5 @@ static SBN_Status_t UnloadNet(SBN_NetInterface_t *Net) return SBN_SUCCESS; } /* end UnloadNet() */ -SBN_IfOps_t SBN_TCP_Ops = {Init, InitNet, InitPeer, LoadNet, LoadPeer, PollPeer, - Send, NULL, Recv, UnloadNet, UnloadPeer}; +SBN_IfOps_t SBN_TCP_Ops = { Init, InitNet, InitPeer, LoadNet, LoadPeer, PollPeer, + Send, NULL, Recv, UnloadNet, UnloadPeer }; diff --git a/modules/protocol/udp/fsw/src/sbn_udp_if.c b/modules/protocol/udp/fsw/src/sbn_udp_if.c index 5ac04c54..f21a67b2 100644 --- a/modules/protocol/udp/fsw/src/sbn_udp_if.c +++ b/modules/protocol/udp/fsw/src/sbn_udp_if.c @@ -65,7 +65,7 @@ static SBN_Status_t InitNet(SBN_NetInterface_t *Net) SBN_UDP_Net_t *NetData = (SBN_UDP_Net_t *)Net->ModulePvt; OS_SockAddr_t LOCAL_ADDR; - uint16 Port; + uint16 Port; OS_SocketAddrInit(&LOCAL_ADDR, OS_SocketDomain_INET); OS_SocketAddrFromString(&LOCAL_ADDR, "0.0.0.0"); OS_SocketAddrGetPort(&Port, &NetData->Addr); @@ -81,7 +81,9 @@ static SBN_Status_t InitNet(SBN_NetInterface_t *Net) if (OS_SocketBind(NetData->Socket, &LOCAL_ADDR) != OS_SUCCESS) { - EVSSendErr(SBN_UDP_SOCK_EID, "bind call failed (NetData=0x%lx, Socket=%ld)", (long unsigned int)NetData, + EVSSendErr(SBN_UDP_SOCK_EID, + "bind call failed (NetData=0x%lx, Socket=%ld)", + (long unsigned int)NetData, OS_ObjectIdToInteger(NetData->Socket)); return SBN_ERROR; } /* end if */ @@ -170,19 +172,21 @@ static SBN_Status_t LoadPeer(SBN_PeerInterface_t *Peer, const char *Address) { SBN_UDP_Peer_t *PeerData = (SBN_UDP_Peer_t *)Peer->ModulePvt; - EVSSendInfo(SBN_UDP_CONFIG_EID, "configuring peer (SC=%d, CPU=%d, Address=%s)", - Peer->SpacecraftID, - Peer->ProcessorID, - Address); + EVSSendInfo(SBN_UDP_CONFIG_EID, + "configuring peer (SC=%d, CPU=%d, Address=%s)", + Peer->SpacecraftID, + Peer->ProcessorID, + Address); SBN_Status_t Status = ConfAddr(&PeerData->Addr, Address); if (Status == SBN_SUCCESS) { - EVSSendInfo(SBN_UDP_CONFIG_EID, "configured peer (SC=%d, CPU=%d, Address=%s)", - Peer->SpacecraftID, - Peer->ProcessorID, - Address); + EVSSendInfo(SBN_UDP_CONFIG_EID, + "configured peer (SC=%d, CPU=%d, Address=%s)", + Peer->SpacecraftID, + Peer->ProcessorID, + Address); } /* end if */ return Status; @@ -214,27 +218,27 @@ static SBN_Status_t PollPeer(SBN_PeerInterface_t *Peer) } else { - if (Peer->ProcessorID != CFE_PSP_GetProcessorId() && - Peer->SpacecraftID != CFE_PSP_GetSpacecraftId() && - OS_TimeGetTotalSeconds(OS_TimeSubtract(CurrentTime, Peer->LastSend)) > SBN_UDP_ANNOUNCE_TIMEOUT) + if (Peer->ProcessorID != CFE_PSP_GetProcessorId() && Peer->SpacecraftID != CFE_PSP_GetSpacecraftId() + && OS_TimeGetTotalSeconds(OS_TimeSubtract(CurrentTime, Peer->LastSend)) > SBN_UDP_ANNOUNCE_TIMEOUT) { OS_GetLocalTime(&Peer->LastSend); EVSSendInfo(SBN_UDP_DEBUG_EID, "announce to peer %d:%d", Peer->SpacecraftID, Peer->ProcessorID); return SBN.SendNetMsg(SBN_UDP_ANNOUNCE_MSG, 0, NULL, Peer); } /* end if */ - } /* end if */ + } /* end if */ return SBN_SUCCESS; } /* end PollPeer() */ static SBN_Status_t Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_MsgSz_t MsgSz, void *Payload) { - int32 BufSz = MsgSz + SBN_PACKED_HDR_SZ, SentSz = 0; - uint8 Buf[BufSz]; + size_t BufSz = MsgSz + SBN_PACKED_HDR_SZ; + int32 SentSz = 0; + uint8 Buf[BufSz]; - SBN_UDP_Peer_t * PeerData = (SBN_UDP_Peer_t *)Peer->ModulePvt; + SBN_UDP_Peer_t *PeerData = (SBN_UDP_Peer_t *)Peer->ModulePvt; SBN_NetInterface_t *Net = Peer->Net; - SBN_UDP_Net_t * NetData = (SBN_UDP_Net_t *)Net->ModulePvt; + SBN_UDP_Net_t *NetData = (SBN_UDP_Net_t *)Net->ModulePvt; SBN.PackMsg(Buf, MsgSz, MsgType, CFE_PSP_GetProcessorId(), CFE_PSP_GetSpacecraftId(), Payload); @@ -247,9 +251,11 @@ static SBN_Status_t Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_M SentSz = OS_SocketSendTo(NetData->Socket, Buf, BufSz, &PeerData->Addr); - if (SentSz < BufSz) + if ((SentSz < 0) || (SentSz < BufSz)) { - EVSSendErr(SBN_UDP_SOCK_EID, "incomplete socket send, tried to send %d bytes, returned %d", (int)BufSz, + EVSSendErr(SBN_UDP_SOCK_EID, + "incomplete socket send, tried to send %d bytes, returned %d", + (int)BufSz, (int)SentSz); return SBN_ERROR; } @@ -263,8 +269,12 @@ static SBN_Status_t Send(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_M * from all peers but that's ok, I just inject them into the SB and all is * good! */ -static SBN_Status_t Recv(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t *MsgSzPtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, void *Payload) +static SBN_Status_t Recv(SBN_NetInterface_t *Net, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *Payload) { uint8 RecvBuf[SBN_MAX_PACKED_MSG_SZ]; @@ -275,13 +285,12 @@ static SBN_Status_t Recv(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN uint32 StateFlags = OS_STREAM_STATE_READABLE; /* polling uses select, otherwise drop through to block on read for task */ - if(!(Net->TaskFlags & SBN_TASK_RECV) - && (OS_SelectSingle(NetData->Socket, &StateFlags, 0) != OS_SUCCESS - || !(StateFlags & OS_STREAM_STATE_READABLE))) + if (!(Net->TaskFlags & SBN_TASK_RECV) + && (OS_SelectSingle(NetData->Socket, &StateFlags, 0) != OS_SUCCESS || !(StateFlags & OS_STREAM_STATE_READABLE))) { /* nothing to receive */ return SBN_IF_EMPTY; - }/* end if */ + } /* end if */ int Received = OS_SocketRecvFrom(NetData->Socket, (char *)&RecvBuf, CFE_MISSION_SB_MAX_SB_MSG_SIZE, NULL, OS_PEND); @@ -343,16 +352,19 @@ static SBN_Status_t UnloadNet(SBN_NetInterface_t *Net) SBN_PeerIdx_t PeerIdx = 0; for (PeerIdx = 0; PeerIdx < Net->PeerCnt; PeerIdx++) { - if(UnloadPeer(&Net->Peers[PeerIdx]) != SBN_SUCCESS) { - EVSSendInfo(SBN_UDP_DEBUG_EID, "failed to unload peer: %d\n", PeerIdx); - Status = SBN_ERROR; - } else { - EVSSendInfo(SBN_UDP_DEBUG_EID, "unloaded peer: %d\n", PeerIdx); + if (UnloadPeer(&Net->Peers[PeerIdx]) != SBN_SUCCESS) + { + EVSSendInfo(SBN_UDP_DEBUG_EID, "failed to unload peer: %d\n", PeerIdx); + Status = SBN_ERROR; + } + else + { + EVSSendInfo(SBN_UDP_DEBUG_EID, "unloaded peer: %d\n", PeerIdx); } } /* end if */ return Status; } /* end UnloadNet() */ -SBN_IfOps_t SBN_UDP_Ops = {Init, InitNet, InitPeer, LoadNet, LoadPeer, PollPeer, - Send, NULL, Recv, UnloadNet, UnloadPeer}; +SBN_IfOps_t SBN_UDP_Ops = { Init, InitNet, InitPeer, LoadNet, LoadPeer, PollPeer, + Send, NULL, Recv, UnloadNet, UnloadPeer }; diff --git a/modules/protocol/udp/unit-test/coveragetest/coveragetest_sbn_udp_if.c b/modules/protocol/udp/unit-test/coveragetest/coveragetest_sbn_udp_if.c index 78312464..2043b4e7 100644 --- a/modules/protocol/udp/unit-test/coveragetest/coveragetest_sbn_udp_if.c +++ b/modules/protocol/udp/unit-test/coveragetest/coveragetest_sbn_udp_if.c @@ -71,8 +71,12 @@ static SBN_Status_t SendNetMsgCallback(SBN_MsgType_t type, SBN_MsgSz_t size, voi return SBN_SUCCESS; } -static void PackMsgCallback(void *buf, SBN_MsgSz_t size, SBN_MsgType_t type, CFE_ProcessorID_t procID, - CFE_SpacecraftID_t scID, void *payload) +static void PackMsgCallback(void *buf, + SBN_MsgSz_t size, + SBN_MsgType_t type, + CFE_ProcessorID_t procID, + CFE_SpacecraftID_t scID, + void *payload) { return; } @@ -96,8 +100,8 @@ extern SBN_IfOps_t SBN_UDP_Ops; /* * An example hook function to check for a specific event. */ -static int32 UT_CheckEvent_Hook(void *UserObj, int32 StubRetcode, uint32 CallCount, const UT_StubContext_t *Context, - va_list va) +static int32 +UT_CheckEvent_Hook(void *UserObj, int32 StubRetcode, uint32 CallCount, const UT_StubContext_t *Context, va_list va) { UT_CheckEvent_t *State = UserObj; char TestText[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; @@ -526,8 +530,12 @@ static void Recv_SockRecvErr(void) UT_TEST_FUNCTION_RC(SBN_UDP_Ops.RecvFromNet(NetPtr, NULL, NULL, NULL, NULL, NULL), SBN_ERROR); } /* end Recv_SockRecvErr() */ -static bool SBN_UnpackMsg_Fail(void *RecvBuf, SBN_MsgSz_t *MsgSzPtr, SBN_MsgType_t *MsgTypePtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, void *Payload) +static bool SBN_UnpackMsg_Fail(void *RecvBuf, + SBN_MsgSz_t *MsgSzPtr, + SBN_MsgType_t *MsgTypePtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *Payload) { return false; } @@ -610,14 +618,18 @@ static SBN_Status_t MockSendNetMsg_Test(SBN_MsgType_t MsgType, SBN_MsgSz_t MsgSz { return SBN_SUCCESS; } -static void MockPackMsg_Test(void *SBNBuf, SBN_MsgSz_t MsgSz, SBN_MsgType_t MsgType, CFE_ProcessorID_t ProcessorID, - CFE_ProcessorID_t SpacecraftID, void *Msg) +static void MockPackMsg_Test(void *SBNBuf, + SBN_MsgSz_t MsgSz, + SBN_MsgType_t MsgType, + CFE_ProcessorID_t ProcessorID, + CFE_ProcessorID_t SpacecraftID, + void *Msg) { } /* Mock GetPeer that returns our test peer */ -static SBN_PeerInterface_t *MockGetPeer_NewConn(SBN_NetInterface_t *Net, CFE_ProcessorID_t ProcessorID, - CFE_SpacecraftID_t SpacecraftID) +static SBN_PeerInterface_t * +MockGetPeer_NewConn(SBN_NetInterface_t *Net, CFE_ProcessorID_t ProcessorID, CFE_SpacecraftID_t SpacecraftID) { if (ProcessorID == PeerPtr->ProcessorID && SpacecraftID == PeerPtr->SpacecraftID) { @@ -627,8 +639,8 @@ static SBN_PeerInterface_t *MockGetPeer_NewConn(SBN_NetInterface_t *Net, CFE_Pro } /* Mock GetPeer that returns our test peer */ -static SBN_PeerInterface_t *MockGetPeer_Disconnect(SBN_NetInterface_t *Net, CFE_ProcessorID_t ProcessorID, - CFE_SpacecraftID_t SpacecraftID) +static SBN_PeerInterface_t * +MockGetPeer_Disconnect(SBN_NetInterface_t *Net, CFE_ProcessorID_t ProcessorID, CFE_SpacecraftID_t SpacecraftID) { if (ProcessorID == PeerPtr->ProcessorID && SpacecraftID == PeerPtr->SpacecraftID) { @@ -638,9 +650,12 @@ static SBN_PeerInterface_t *MockGetPeer_Disconnect(SBN_NetInterface_t *Net, CFE_ } /* Configurable mock UnpackMsg */ -static bool MockUnpackMsg_Configurable(void *SBNBuf, SBN_MsgSz_t *MsgSzPtr, SBN_MsgType_t *MsgTypePtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, - void *Msg) +static bool MockUnpackMsg_Configurable(void *SBNBuf, + SBN_MsgSz_t *MsgSzPtr, + SBN_MsgType_t *MsgTypePtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *Msg) { if (g_MockUnpackResult && MsgSzPtr && MsgTypePtr && ProcessorIDPtr && SpacecraftIDPtr) { @@ -657,8 +672,12 @@ static bool MockUnpackMsg_Configurable(void *SBNBuf, SBN_MsgSz_t *MsgSzPtr, SBN_ } /* Mock UnpackMsg that returns disconnect message data */ -static bool MockUnpackMsg_Disconnect(void *SBNBuf, SBN_MsgSz_t *MsgSzPtr, SBN_MsgType_t *MsgTypePtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, void *Msg) +static bool MockUnpackMsg_Disconnect(void *SBNBuf, + SBN_MsgSz_t *MsgSzPtr, + SBN_MsgType_t *MsgTypePtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *Msg) { *MsgSzPtr = 16; *MsgTypePtr = SBN_UDP_DISCONN_MSG; /* Return disconnect message type */ @@ -668,8 +687,12 @@ static bool MockUnpackMsg_Disconnect(void *SBNBuf, SBN_MsgSz_t *MsgSzPtr, SBN_Ms return true; } -static bool MockUnpackMsg_Nominal(void *SBNBuf, SBN_MsgSz_t *MsgSzPtr, SBN_MsgType_t *MsgTypePtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, void *Msg) +static bool MockUnpackMsg_Nominal(void *SBNBuf, + SBN_MsgSz_t *MsgSzPtr, + SBN_MsgType_t *MsgTypePtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *Msg) { *MsgSzPtr = 16; *MsgTypePtr = SBN_APP_MSG; /* Regular app message */ @@ -748,8 +771,8 @@ static SBN_Status_t DisconnectCallback_TrackCalled(SBN_PeerInterface_t *Peer) return SBN_SUCCESS; } -static SBN_Status_t SendNetMsgCallback_CheckDisconnMsg(SBN_MsgType_t MsgType, SBN_MsgSz_t MsgSz, void *Msg, - SBN_PeerInterface_t *Peer) +static SBN_Status_t +SendNetMsgCallback_CheckDisconnMsg(SBN_MsgType_t MsgType, SBN_MsgSz_t MsgSz, void *Msg, SBN_PeerInterface_t *Peer) { /* Verify a disconnect message was sent */ UtAssert_INT32_EQ(MsgType, SBN_UDP_DISCONN_MSG); @@ -935,7 +958,9 @@ void UT_Setup(void) /* * Teardown function after every test */ -void UT_TearDown(void) {} +void UT_TearDown(void) +{ +} void UtTest_Setup(void) { diff --git a/unit-test/coveragetest/coveragetest_sbn_app.c b/unit-test/coveragetest/coveragetest_sbn_app.c index 867645ed..b46cbc5d 100644 --- a/unit-test/coveragetest/coveragetest_sbn_app.c +++ b/unit-test/coveragetest/coveragetest_sbn_app.c @@ -24,7 +24,7 @@ #include "sbn_pack.h" /* #define STUB_TASKID 1073807361 */ /* TODO: should be replaced with a call to a stub util fn */ -CFE_SB_MsgId_t MsgID = {.Value = 0x1818}; +CFE_SB_MsgId_t MsgID = { .Value = 0x1818 }; static SBN_ConfTbl_t TestConfTbl; @@ -213,7 +213,8 @@ static void LoadConf_Module_ModLdErr(void) strncpy(TestConfTbl.ProtocolModules[0].Name, "UDP", sizeof(TestConfTbl.ProtocolModules[0].Name)); strncpy(TestConfTbl.ProtocolModules[0].LibSymbol, "UDP_Ops", sizeof(TestConfTbl.ProtocolModules[0].LibSymbol)); TestConfTbl.ProtocolModules[0].BaseEID = 1234; - strncpy(TestConfTbl.ProtocolModules[0].LibFileName, "/cf/sbn_udp.so", + strncpy(TestConfTbl.ProtocolModules[0].LibFileName, + "/cf/sbn_udp.so", sizeof(TestConfTbl.ProtocolModules[0].LibFileName)); START(); @@ -249,7 +250,8 @@ static void LoadConf_Module_SymLookErr(void) strncpy(TestConfTbl.ProtocolModules[0].Name, "UDP", sizeof(TestConfTbl.ProtocolModules[0].Name)); strncpy(TestConfTbl.ProtocolModules[0].LibSymbol, "SBN_UDP_Ops", sizeof(TestConfTbl.ProtocolModules[0].LibSymbol)); TestConfTbl.ProtocolModules[0].BaseEID = 1234; - strncpy(TestConfTbl.ProtocolModules[0].LibFileName, "/cf/sbn_udp.so", + strncpy(TestConfTbl.ProtocolModules[0].LibFileName, + "/cf/sbn_udp.so", sizeof(TestConfTbl.ProtocolModules[0].LibFileName)); START(); @@ -294,8 +296,8 @@ static void LoadConf_GetAddrErr(void) EVENT_CNT(1); } /* end LoadConf_GetAddrErr() */ -static SBN_Status_t ProtoInitErr_InitModule(int ProtocolVersion, CFE_EVS_EventID_t BaseEID, - SBN_ProtocolOutlet_t *Outlet) +static SBN_Status_t +ProtoInitErr_InitModule(int ProtocolVersion, CFE_EVS_EventID_t BaseEID, SBN_ProtocolOutlet_t *Outlet) { return 1; } /* end ProtoInitErr_InitModule */ @@ -323,7 +325,8 @@ static void LoadConf_ProtoInitErr(void) strncpy(TestConfTbl.ProtocolModules[0].Name, "UDP", sizeof(TestConfTbl.ProtocolModules[0].Name)); strncpy(TestConfTbl.ProtocolModules[0].LibSymbol, "SBN_UDP_Ops", sizeof(TestConfTbl.ProtocolModules[0].LibSymbol)); TestConfTbl.ProtocolModules[0].BaseEID = 1234; - strncpy(TestConfTbl.ProtocolModules[0].LibFileName, "/cf/sbn_udp.so", + strncpy(TestConfTbl.ProtocolModules[0].LibFileName, + "/cf/sbn_udp.so", sizeof(TestConfTbl.ProtocolModules[0].LibFileName)); START(); @@ -408,7 +411,8 @@ static void LoadConf_ProtoNameErr(void) strncpy(TestConfTbl.ProtocolModules[0].Name, "UDP", sizeof(TestConfTbl.ProtocolModules[0].Name)); strncpy(TestConfTbl.ProtocolModules[0].LibSymbol, "SBN_UDP_Ops", sizeof(TestConfTbl.ProtocolModules[0].LibSymbol)); TestConfTbl.ProtocolModules[0].BaseEID = 1234; - strncpy(TestConfTbl.ProtocolModules[0].LibFileName, "/cf/sbn_udp.so", + strncpy(TestConfTbl.ProtocolModules[0].LibFileName, + "/cf/sbn_udp.so", sizeof(TestConfTbl.ProtocolModules[0].LibFileName)); TestConfTbl.Peers[0].SpacecraftID = 1234; TestConfTbl.Peers[0].ProcessorID = 5678; @@ -451,11 +455,13 @@ static void LoadConf_FiltNameErr(void) strncpy(TestConfTbl.ProtocolModules[0].Name, "UDP", sizeof(TestConfTbl.ProtocolModules[0].Name)); strncpy(TestConfTbl.ProtocolModules[0].LibSymbol, "SBN_UDP_Ops", sizeof(TestConfTbl.ProtocolModules[0].LibSymbol)); TestConfTbl.ProtocolModules[0].BaseEID = 1234; - strncpy(TestConfTbl.ProtocolModules[0].LibFileName, "/cf/sbn_udp.so", + strncpy(TestConfTbl.ProtocolModules[0].LibFileName, + "/cf/sbn_udp.so", sizeof(TestConfTbl.ProtocolModules[0].LibFileName)); strncpy(TestConfTbl.FilterModules[0].Name, "CCSDS_Endian", sizeof(TestConfTbl.FilterModules[0].Name)); strncpy(TestConfTbl.FilterModules[0].LibSymbol, "SBN_CCSDS_Ops", sizeof(TestConfTbl.FilterModules[0].LibSymbol)); - strncpy(TestConfTbl.FilterModules[0].LibFileName, "/cf/sbn_ccsds.so", + strncpy(TestConfTbl.FilterModules[0].LibFileName, + "/cf/sbn_ccsds.so", sizeof(TestConfTbl.FilterModules[0].LibFileName)); TestConfTbl.FilterModules[0].BaseEID = 2000; TestConfTbl.Peers[0].SpacecraftID = 1234; @@ -499,7 +505,8 @@ static void LoadConf_TooManyNets(void) strncpy(TestConfTbl.ProtocolModules[0].Name, "UDP", sizeof(TestConfTbl.ProtocolModules[0].Name)); strncpy(TestConfTbl.ProtocolModules[0].LibSymbol, "SBN_UDP_Ops", sizeof(TestConfTbl.ProtocolModules[0].LibSymbol)); TestConfTbl.ProtocolModules[0].BaseEID = 1234; - strncpy(TestConfTbl.ProtocolModules[0].LibFileName, "/cf/sbn_udp.so", + strncpy(TestConfTbl.ProtocolModules[0].LibFileName, + "/cf/sbn_udp.so", sizeof(TestConfTbl.ProtocolModules[0].LibFileName)); TestConfTbl.Peers[0].SpacecraftID = 1234; TestConfTbl.Peers[0].ProcessorID = 5678; @@ -537,7 +544,8 @@ static void LoadConf_ReleaseAddrErr(void) strncpy(TestConfTbl.ProtocolModules[0].Name, "UDP", sizeof(TestConfTbl.ProtocolModules[0].Name)); strncpy(TestConfTbl.ProtocolModules[0].LibSymbol, "SBN_UDP_Ops", sizeof(TestConfTbl.ProtocolModules[0].LibSymbol)); TestConfTbl.ProtocolModules[0].BaseEID = 1234; - strncpy(TestConfTbl.ProtocolModules[0].LibFileName, "/cf/sbn_udp.so", + strncpy(TestConfTbl.ProtocolModules[0].LibFileName, + "/cf/sbn_udp.so", sizeof(TestConfTbl.ProtocolModules[0].LibFileName)); TestConfTbl.Peers[0].SpacecraftID = 1234; TestConfTbl.Peers[0].ProcessorID = 5678; @@ -576,7 +584,8 @@ static void LoadConf_NetCntInc(void) strncpy(TestConfTbl.ProtocolModules[0].Name, "UDP", sizeof(TestConfTbl.ProtocolModules[0].Name)); strncpy(TestConfTbl.ProtocolModules[0].LibSymbol, "SBN_UDP_Ops", sizeof(TestConfTbl.ProtocolModules[0].LibSymbol)); TestConfTbl.ProtocolModules[0].BaseEID = 1234; - strncpy(TestConfTbl.ProtocolModules[0].LibFileName, "/cf/sbn_udp.so", + strncpy(TestConfTbl.ProtocolModules[0].LibFileName, + "/cf/sbn_udp.so", sizeof(TestConfTbl.ProtocolModules[0].LibFileName)); TestConfTbl.Peers[0].SpacecraftID = 1234; TestConfTbl.Peers[0].ProcessorID = 5678; @@ -697,17 +706,17 @@ static SBN_Status_t Mock_InitPeer(SBN_PeerInterface_t *Peer) return SBN_SUCCESS; } -static SBN_IfOps_t MockIfOps = {.InitModule = NULL, - .InitNet = Mock_InitNet, - .InitPeer = Mock_InitPeer, - .LoadNet = NULL, - .LoadPeer = NULL, - .PollPeer = NULL, - .Send = NULL, - .RecvFromNet = NULL, - .RecvFromPeer = NULL, - .UnloadNet = Mock_UnloadNet, - .UnloadPeer = NULL}; +static SBN_IfOps_t MockIfOps = { .InitModule = NULL, + .InitNet = Mock_InitNet, + .InitPeer = Mock_InitPeer, + .LoadNet = NULL, + .LoadPeer = NULL, + .PollPeer = NULL, + .Send = NULL, + .RecvFromNet = NULL, + .RecvFromPeer = NULL, + .UnloadNet = Mock_UnloadNet, + .UnloadPeer = NULL }; /* Hook function to modify SBN after LoadConf completes but before InitInterfaces */ static int32 SetupNetConfErr_Hook(void *UserObj, int32 StubRetcode, uint32 CallCount, const UT_StubContext_t *Context) @@ -773,9 +782,13 @@ static void InitInt_NetConfErr(void) EVENT_CNT(1); } /* end InitInt_NetConfErr() */ -static SBN_Status_t RecvFromPeer_Nominal(SBN_NetInterface_t *Net, SBN_PeerInterface_t *Peer, SBN_MsgType_t *MsgTypePtr, - SBN_MsgSz_t *MsgSzPtr, CFE_ProcessorID_t *ProcessorIDPtr, - CFE_SpacecraftID_t *SpacecraftIDPtr, void *PayloadBuffer) +static SBN_Status_t RecvFromPeer_Nominal(SBN_NetInterface_t *Net, + SBN_PeerInterface_t *Peer, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *PayloadBuffer) { return SBN_SUCCESS; } /* end RecvFromPeer_Nominal() */ @@ -1355,7 +1368,8 @@ static void PeerPoll_RecvNetTask_ChildTaskErr(void) /* Set up protocol module */ strncpy(TestConfTbl.ProtocolModules[0].Name, "UDP", sizeof(TestConfTbl.ProtocolModules[0].Name)); strncpy(TestConfTbl.ProtocolModules[0].LibSymbol, "SBN_UDP_Ops", sizeof(TestConfTbl.ProtocolModules[0].LibSymbol)); - strncpy(TestConfTbl.ProtocolModules[0].LibFileName, "/cf/sbn_udp.so", + strncpy(TestConfTbl.ProtocolModules[0].LibFileName, + "/cf/sbn_udp.so", sizeof(TestConfTbl.ProtocolModules[0].LibFileName)); TestConfTbl.ProtocolModules[0].BaseEID = 1234; @@ -1514,7 +1528,8 @@ static void PeerPoll_RecvPeerTask_ChildTaskErr(void) /* Set up protocol module */ strncpy(TestConfTbl.ProtocolModules[0].Name, "UDP", sizeof(TestConfTbl.ProtocolModules[0].Name)); strncpy(TestConfTbl.ProtocolModules[0].LibSymbol, "SBN_UDP_Ops", sizeof(TestConfTbl.ProtocolModules[0].LibSymbol)); - strncpy(TestConfTbl.ProtocolModules[0].LibFileName, "/cf/sbn_udp.so", + strncpy(TestConfTbl.ProtocolModules[0].LibFileName, + "/cf/sbn_udp.so", sizeof(TestConfTbl.ProtocolModules[0].LibFileName)); TestConfTbl.ProtocolModules[0].BaseEID = 1234; @@ -1925,7 +1940,7 @@ static void ProcessNetMsg_SubMsg_Nominal(void) Pack_Data(&Pack, (void *)SBN_IDENT, SBN_IDENT_LEN); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UT_SetDeferredRetcode(UT_KEY(CFE_PSP_GetProcessorId), 1, ProcessorID); @@ -2239,7 +2254,8 @@ static void ReloadConfTbl_Nominal(void) /* Set up protocol module */ strncpy(TestConfTbl.ProtocolModules[0].Name, "UDP", sizeof(TestConfTbl.ProtocolModules[0].Name)); strncpy(TestConfTbl.ProtocolModules[0].LibSymbol, "SBN_UDP_Ops", sizeof(TestConfTbl.ProtocolModules[0].LibSymbol)); - strncpy(TestConfTbl.ProtocolModules[0].LibFileName, "/cf/sbn_udp.so", + strncpy(TestConfTbl.ProtocolModules[0].LibFileName, + "/cf/sbn_udp.so", sizeof(TestConfTbl.ProtocolModules[0].LibFileName)); TestConfTbl.ProtocolModules[0].BaseEID = 1234; @@ -2320,7 +2336,7 @@ static void Unpack_Empty(void) UT_ResetState(0); - uint8 Buf[SBN_MAX_PACKED_MSG_SZ] = {0}, Payload[1] = {0}; + uint8 Buf[SBN_MAX_PACKED_MSG_SZ] = { 0 }, Payload[1] = { 0 }; SBN_MsgSz_t MsgSz; SBN_MsgType_t MsgType; CFE_ProcessorID_t ProcID; @@ -2340,7 +2356,7 @@ static void Unpack_Err(void) UT_ResetState(0); - uint8 Buf[SBN_MAX_PACKED_MSG_SZ] = {0}, Payload[1] = {0}; + uint8 Buf[SBN_MAX_PACKED_MSG_SZ] = { 0 }, Payload[1] = { 0 }; SBN_MsgSz_t MsgSz; SBN_MsgType_t MsgType; CFE_ProcessorID_t ProcID; @@ -2362,7 +2378,7 @@ static void Unpack_Nominal(void) UT_ResetState(0); - uint8 Buf[SBN_MAX_PACKED_MSG_SZ] = {0}, Payload[1] = {0}; + uint8 Buf[SBN_MAX_PACKED_MSG_SZ] = { 0 }, Payload[1] = { 0 }; uint8 TestData = 123; SBN_MsgSz_t MsgSz; SBN_MsgType_t MsgType; @@ -2397,9 +2413,12 @@ void RecvNetMsgs_TaskRecv(void) UtAssert_INT32_EQ(SBN_RecvNetMsgs(), SBN_SUCCESS); } /* end RecvNetMsgs_TaskRecv() */ -static SBN_Status_t RecvFromNet_Empty(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t *MsgSzPtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, - void *PayloadBuffer) +static SBN_Status_t RecvFromNet_Empty(SBN_NetInterface_t *Net, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *PayloadBuffer) { *ProcessorIDPtr = 1235; @@ -2495,9 +2514,13 @@ static void RecvPeerTask_NetConfErr(void) EVENT_CNT(1); } /* end RecvPeerTask_NetConfErr() */ -static SBN_Status_t RecvFromPeer_EmptyOne(SBN_NetInterface_t *Net, SBN_PeerInterface_t *Peer, SBN_MsgType_t *MsgTypePtr, - SBN_MsgSz_t *MsgSzPtr, CFE_ProcessorID_t *ProcessorIDPtr, - CFE_SpacecraftID_t *SpacecraftIDPtr, void *PayloadBuffer) +static SBN_Status_t RecvFromPeer_EmptyOne(SBN_NetInterface_t *Net, + SBN_PeerInterface_t *Peer, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *PayloadBuffer) { static int c = 0; @@ -2528,9 +2551,13 @@ static void RecvPeerTask_Empty(void) IfOpsPtr->RecvFromPeer = NULL; } /* end RecvPeerTask_Empty() */ -static SBN_Status_t RecvFromPeer_One(SBN_NetInterface_t *Net, SBN_PeerInterface_t *Peer, SBN_MsgType_t *MsgTypePtr, - SBN_MsgSz_t *MsgSzPtr, CFE_ProcessorID_t *ProcessorIDPtr, - CFE_SpacecraftID_t *SpacecraftIDPtr, void *PayloadBuffer) +static SBN_Status_t RecvFromPeer_One(SBN_NetInterface_t *Net, + SBN_PeerInterface_t *Peer, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *PayloadBuffer) { static int c = 0; @@ -2586,9 +2613,12 @@ static void RecvNetTask_NetConfErr(void) EVENT_CNT(1); } /* end RecvNetTask_NetConfErr() */ -static SBN_Status_t RecvFromNet_EmptyOne(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t *MsgSzPtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, - void *PayloadBuffer) +static SBN_Status_t RecvFromNet_EmptyOne(SBN_NetInterface_t *Net, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *PayloadBuffer) { static int c = 0; @@ -2616,9 +2646,12 @@ static void RecvNetTask_Empty(void) IfOpsPtr->RecvFromNet = RecvFromNet_Nominal; } /* end RecvNetTask_Empty() */ -static SBN_Status_t RecvFromNet_BadPeer(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t *MsgSzPtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, - void *PayloadBuffer) +static SBN_Status_t RecvFromNet_BadPeer(SBN_NetInterface_t *Net, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *PayloadBuffer) { *ProcessorIDPtr = 0; @@ -2648,9 +2681,12 @@ static void RecvNetTask_PeerErr(void) IfOpsPtr->RecvFromNet = RecvFromNet_Nominal; } /* end RecvNetTask_PeerErr() */ -static SBN_Status_t RecvFromNet_One(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t *MsgSzPtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, - void *PayloadBuffer) +static SBN_Status_t RecvFromNet_One(SBN_NetInterface_t *Net, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *PayloadBuffer) { static int c = 0; @@ -3016,9 +3052,13 @@ void Test_SBN_SendNetMsg(void) SendNetMsg_SendErr(); } /* end Test_SBN_SendNetMsg() */ -void UT_Setup(void) {} /* end UT_Setup() */ +void UT_Setup(void) +{ +} /* end UT_Setup() */ -void UT_TearDown(void) {} /* end UT_TearDown() */ +void UT_TearDown(void) +{ +} /* end UT_TearDown() */ void UtTest_Setup(void) { diff --git a/unit-test/coveragetest/coveragetest_sbn_cmds.c b/unit-test/coveragetest/coveragetest_sbn_cmds.c index 8480fdce..84473ea5 100644 --- a/unit-test/coveragetest/coveragetest_sbn_cmds.c +++ b/unit-test/coveragetest/coveragetest_sbn_cmds.c @@ -26,7 +26,7 @@ uint8 Buffer[1024]; CFE_MSG_Message_t *CmdPktPtr = (CFE_MSG_Message_t *)Buffer; CFE_MSG_Size_t MsgSz = sizeof(CFE_MSG_CommandHeader_t); -CFE_SB_MsgId_t MsgId = {.Value = SBN_CMD_MID}; +CFE_SB_MsgId_t MsgId = { .Value = SBN_CMD_MID }; CFE_MSG_FcnCode_t FcnCode = SBN_NOOP_CC; #define MSGINIT() \ @@ -609,9 +609,13 @@ static void Test_SBN_Cmds(void) CC_Err(); } /* end Test_SBN_SendNetMsg() */ -void UT_Setup(void) {} /* end UT_Setup() */ +void UT_Setup(void) +{ +} /* end UT_Setup() */ -void UT_TearDown(void) {} /* end UT_TearDown() */ +void UT_TearDown(void) +{ +} /* end UT_TearDown() */ void UtTest_Setup(void) { diff --git a/unit-test/coveragetest/coveragetest_sbn_pack.c b/unit-test/coveragetest/coveragetest_sbn_pack.c index 2fed8fda..dda6e74e 100644 --- a/unit-test/coveragetest/coveragetest_sbn_pack.c +++ b/unit-test/coveragetest/coveragetest_sbn_pack.c @@ -73,9 +73,13 @@ void Test_Pack(void) UtAssert_True(!Unpack_Time(&Pack, &T), "unpack time"); } /* end Test_Pack() */ -void UT_Setup(void) {} /* end UT_Setup() */ +void UT_Setup(void) +{ +} /* end UT_Setup() */ -void UT_TearDown(void) {} /* end UT_TearDown() */ +void UT_TearDown(void) +{ +} /* end UT_TearDown() */ void UtTest_Setup(void) { diff --git a/unit-test/coveragetest/coveragetest_sbn_subs.c b/unit-test/coveragetest/coveragetest_sbn_subs.c index 58ac697e..1c6e8948 100644 --- a/unit-test/coveragetest/coveragetest_sbn_subs.c +++ b/unit-test/coveragetest/coveragetest_sbn_subs.c @@ -20,7 +20,7 @@ #include "cfe_msgids.h" #include "sbn_pack.h" -CFE_SB_MsgId_t MsgID = {.Value = 0xDEAD}; +CFE_SB_MsgId_t MsgID = { .Value = 0xDEAD }; static void SendSubsRequests_SendMsg1Err(void) { @@ -417,7 +417,7 @@ static void PSFP_PFP_FiltErr(void) Pack_Data(&Pack, (void *)SBN_IDENT, SBN_IDENT_LEN); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UtAssert_INT32_EQ(SBN_ProcessSubsFromPeer(PeerPtr, Buf), SBN_ERROR); @@ -438,7 +438,7 @@ static void PSFP_PFP_AlreadySub(void) Pack_Data(&Pack, (void *)SBN_IDENT, SBN_IDENT_LEN); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UtAssert_INT32_EQ(SBN_ProcessSubsFromPeer(PeerPtr, Buf), SBN_SUCCESS); @@ -460,7 +460,7 @@ static void PSFP_PFP_SubErr(void) Pack_Data(&Pack, (void *)SBN_IDENT, SBN_IDENT_LEN); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UT_SetDeferredRetcode(UT_KEY(CFE_SB_SubscribeLocal), 1, -1); @@ -486,7 +486,7 @@ static void PSFP_PFP_MaxSubsErr(void) Pack_Data(&Pack, (void *)SBN_IDENT, SBN_IDENT_LEN); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UtAssert_INT32_EQ(SBN_ProcessSubsFromPeer(PeerPtr, Buf), SBN_ERROR); @@ -510,7 +510,7 @@ static void PSFP_IdentErr(void) Pack_Data(&Pack, (void *)tmpident, sizeof(tmpident)); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UtAssert_INT32_EQ(SBN_ProcessSubsFromPeer(PeerPtr, Buf), SBN_ERROR); @@ -530,7 +530,7 @@ static void PSFP_Nominal(void) Pack_Data(&Pack, (void *)SBN_IDENT, SBN_IDENT_LEN); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UtAssert_INT32_EQ(SBN_ProcessSubsFromPeer(PeerPtr, Buf), SBN_SUCCESS); @@ -568,7 +568,7 @@ static void PUSFP_PUFP_FiltErr(void) Pack_Data(&Pack, (void *)SBN_IDENT, SBN_IDENT_LEN); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UtAssert_INT32_EQ(SBN_ProcessUnsubsFromPeer(PeerPtr, Buf), SBN_SUCCESS); @@ -589,7 +589,7 @@ static void PUSFP_PUFP_NotSub(void) Pack_Data(&Pack, (void *)SBN_IDENT, SBN_IDENT_LEN); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UtAssert_INT32_EQ(SBN_ProcessUnsubsFromPeer(PeerPtr, Buf), SBN_SUCCESS); @@ -614,7 +614,7 @@ static void PUSFP_PUFP_UnsubErr(void) Pack_Data(&Pack, (void *)SBN_IDENT, SBN_IDENT_LEN); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UT_SetDeferredRetcode(UT_KEY(CFE_SB_UnsubscribeLocal), 1, -1); @@ -643,7 +643,7 @@ static void PUSFP_IdentWarn(void) Pack_Data(&Pack, (void *)tmpident, sizeof(tmpident)); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UtAssert_INT32_EQ(SBN_ProcessUnsubsFromPeer(PeerPtr, Buf), SBN_SUCCESS); @@ -666,7 +666,7 @@ static void PUSFP_Nominal(void) Pack_Data(&Pack, (void *)SBN_IDENT, SBN_IDENT_LEN); Pack_UInt16(&Pack, 1); Pack_MsgID(&Pack, MsgID); - CFE_SB_Qos_t QoS = {0}; + CFE_SB_Qos_t QoS = { 0 }; Pack_Data(&Pack, (void *)&QoS, sizeof(QoS)); UtAssert_INT32_EQ(SBN_ProcessUnsubsFromPeer(PeerPtr, Buf), SBN_SUCCESS); @@ -720,9 +720,13 @@ void Test_SBN_RemoveAllSubsFromPeer(void) RASFP_Nominal(); } /* end Test_SBN_RemoveAllSubsFromPeer() */ -void UT_Setup(void) {} /* end UT_Setup() */ +void UT_Setup(void) +{ +} /* end UT_Setup() */ -void UT_TearDown(void) {} /* end UT_TearDown() */ +void UT_TearDown(void) +{ +} /* end UT_TearDown() */ void UtTest_Setup(void) { diff --git a/unit-test/coveragetest/sbn_coveragetest_common.c b/unit-test/coveragetest/sbn_coveragetest_common.c index 1d85bfba..36044fc5 100644 --- a/unit-test/coveragetest/sbn_coveragetest_common.c +++ b/unit-test/coveragetest/sbn_coveragetest_common.c @@ -18,8 +18,11 @@ #include "sbn_coveragetest_common.h" -int32 UT_CheckEvent_Hook(void *UserObj, int32 StubRetcode, uint32 CallCount, const UT_StubContext_t *Context, - va_list va) +int32 UT_CheckEvent_Hook(void *UserObj, + int32 StubRetcode, + uint32 CallCount, + const UT_StubContext_t *Context, + va_list va) { UT_CheckEvent_t *State = UserObj; char TestText[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; @@ -99,9 +102,12 @@ SBN_Status_t InitPeer_Nominal(SBN_PeerInterface_t *Peer) return SBN_SUCCESS; } /* end InitPeer_Nominal() */ -SBN_Status_t RecvFromNet_Nominal(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t *MsgSzPtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, - void *PayloadBuffer) +SBN_Status_t RecvFromNet_Nominal(SBN_NetInterface_t *Net, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *PayloadBuffer) { *ProcessorIDPtr = 1235; @@ -138,17 +144,17 @@ SBN_Status_t Send_Err(SBN_PeerInterface_t *Peer, SBN_MsgType_t MsgType, SBN_MsgS return SBN_ERROR; } /* end Send_Err() */ -SBN_IfOps_t IfOps = {.InitModule = ProtoInitModule_Nominal, - .InitNet = InitNet_Nominal, - .InitPeer = InitPeer_Nominal, - .LoadNet = LoadNet_Nominal, - .LoadPeer = LoadPeer_Nominal, - .PollPeer = PollPeer_Nominal, - .Send = Send_Nominal, - .RecvFromPeer = NULL, - .RecvFromNet = RecvFromNet_Nominal, - .UnloadNet = UnloadNet_Nominal, - .UnloadPeer = UnloadPeer_Nominal}; /* end IfOps */ +SBN_IfOps_t IfOps = { .InitModule = ProtoInitModule_Nominal, + .InitNet = InitNet_Nominal, + .InitPeer = InitPeer_Nominal, + .LoadNet = LoadNet_Nominal, + .LoadPeer = LoadPeer_Nominal, + .PollPeer = PollPeer_Nominal, + .Send = Send_Nominal, + .RecvFromPeer = NULL, + .RecvFromNet = RecvFromNet_Nominal, + .UnloadNet = UnloadNet_Nominal, + .UnloadPeer = UnloadPeer_Nominal }; /* end IfOps */ SBN_IfOps_t *IfOpsPtr = &IfOps; @@ -157,10 +163,10 @@ SBN_Status_t FilterInitModule_Nominal(int FilterVersion, CFE_EVS_EventID_t BaseE return SBN_SUCCESS; } /* end InitFilterModule() */ -SBN_FilterInterface_t FilterInterface = {.InitModule = FilterInitModule_Nominal, - .FilterRecv = NULL, - .FilterSend = NULL, - .RemapMID = NULL}; /* end FilterInterface */ +SBN_FilterInterface_t FilterInterface = { .InitModule = FilterInitModule_Nominal, + .FilterRecv = NULL, + .FilterSend = NULL, + .RemapMID = NULL }; /* end FilterInterface */ SBN_FilterInterface_t *FilterInterfacePtr = &FilterInterface; @@ -213,7 +219,7 @@ SBN_PeerInterface_t *PeerPtr = NULL; */ int32 SymLookHook(void *UserObj, int32 StubRetcode, uint32 CallCount, const UT_StubContext_t *Context) { - static char LastSeen[32] = {0}; + static char LastSeen[32] = { 0 }; char *SymbolName = (char *)Context->ArgPtr[1]; /* this forces the LoadConf_Module() function to call ModuleLoad */ diff --git a/unit-test/coveragetest/sbn_coveragetest_common.h b/unit-test/coveragetest/sbn_coveragetest_common.h index 1576f790..ef074f39 100644 --- a/unit-test/coveragetest/sbn_coveragetest_common.h +++ b/unit-test/coveragetest/sbn_coveragetest_common.h @@ -78,8 +78,11 @@ typedef struct * A hook function to check for a specific event. If the passed event ID and text (if ExpectedText * is defined) match those configured, the MatchCount is incremented. */ -int32 UT_CheckEvent_Hook(void *UserObj, int32 StubRetcode, uint32 CallCount, const UT_StubContext_t *Context, - va_list va); +int32 UT_CheckEvent_Hook(void *UserObj, + int32 StubRetcode, + uint32 CallCount, + const UT_StubContext_t *Context, + va_list va); extern UT_CheckEvent_t EventTest; @@ -94,9 +97,12 @@ SBN_Status_t ProtoInitModule_Nominal(int ProtoVersion, CFE_EVS_EventID_t BaseEID SBN_Status_t InitNet_Nominal(SBN_NetInterface_t *Net); SBN_Status_t LoadNet_Nominal(SBN_NetInterface_t *Net, const char *Address); SBN_Status_t InitPeer_Nominal(SBN_PeerInterface_t *Peer); -SBN_Status_t RecvFromNet_Nominal(SBN_NetInterface_t *Net, SBN_MsgType_t *MsgTypePtr, SBN_MsgSz_t *MsgSzPtr, - CFE_ProcessorID_t *ProcessorIDPtr, CFE_SpacecraftID_t *SpacecraftIDPtr, - void *PayloadBuffer); +SBN_Status_t RecvFromNet_Nominal(SBN_NetInterface_t *Net, + SBN_MsgType_t *MsgTypePtr, + SBN_MsgSz_t *MsgSzPtr, + CFE_ProcessorID_t *ProcessorIDPtr, + CFE_SpacecraftID_t *SpacecraftIDPtr, + void *PayloadBuffer); SBN_Status_t LoadPeer_Nominal(SBN_PeerInterface_t *Peer, const char *Address); SBN_Status_t UnloadNet_Nominal(SBN_NetInterface_t *Net); SBN_Status_t UnloadPeer_Nominal(SBN_PeerInterface_t *Net); diff --git a/ut-stubs/sbn_stubs.c b/ut-stubs/sbn_stubs.c index 2a05ebd5..41c6db06 100644 --- a/ut-stubs/sbn_stubs.c +++ b/ut-stubs/sbn_stubs.c @@ -33,8 +33,11 @@ void SBN_PackMsg(void *SBNMsgBuf, SBN_MsgSz_t MsgSz, SBN_MsgType_t MsgType, CFE_ UT_DEFAULT_IMPL(SBN_PackMsg); } /* end SBN_PackMsg() */ -bool SBN_UnpackMsg(void *SBNBuf, SBN_MsgSz_t *MsgSzPtr, SBN_MsgType_t *MsgTypePtr, CFE_ProcessorID_t *ProcessorIDPtr, - void *Msg) +bool SBN_UnpackMsg(void *SBNBuf, + SBN_MsgSz_t *MsgSzPtr, + SBN_MsgType_t *MsgTypePtr, + CFE_ProcessorID_t *ProcessorIDPtr, + void *Msg) { uint32 status = 0; SBN_Unpack_Buf_t p;