-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #2473, 2475, document and use topicid numbers for cfe #2474
Conversation
9e53504
to
1b824dc
Compare
1b824dc
to
f065423
Compare
f065423
to
72c09de
Compare
72c09de
to
b588fc1
Compare
A topic ID is the same concept as was previously referred to as a portable message number. This just formalizes it, gives it a name, and adds some macros for easier customization of the behavior.
b588fc1
to
f3cdfbe
Compare
This avoids having an identifier that starts with a digit in the case that the CFE_TIME_ prefix is not needed/used.
@@ -49,14 +49,14 @@ | |||
"%s: Application Init Failed,RC=0x%08X\n", | |||
"%s: Failed invalid arguments\n"}; | |||
|
|||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_SEND_HK = {.MsgId = | |||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_SEND_HK = {.MsgId = |
Check notice
Code scanning / CodeQL-coding-standard
Variable scope too large Note
Test_PipeCmds
CFE_SB_MSGID_WRAP_VALUE(CFE_TIME_SEND_HK_MID)}; | ||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_TONE_CMD = {.MsgId = | ||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_TONE_CMD = {.MsgId = |
Check notice
Code scanning / CodeQL-coding-standard
Variable scope too large Note
Test_PipeCmds
CFE_SB_MSGID_WRAP_VALUE(CFE_TIME_TONE_CMD_MID)}; | ||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_DATA_CMD = {.MsgId = | ||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_DATA_CMD = {.MsgId = |
Check notice
Code scanning / CodeQL-coding-standard
Variable scope too large Note
Test_PipeCmds
.MsgId = CFE_SB_MSGID_WRAP_VALUE(CFE_TIME_CMD_MID), .CommandCode = CFE_TIME_ADD_1HZ_ADJUSTMENT_CC}; | ||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_CMD_SUB_1HZ_ADJUSTMENT_CC = { | ||
.MsgId = CFE_SB_MSGID_WRAP_VALUE(CFE_TIME_CMD_MID), .CommandCode = CFE_TIME_SUB_1HZ_ADJUSTMENT_CC}; | ||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_CMD_ADD_ONEHZ_ADJUSTMENT_CC = { |
Check notice
Code scanning / CodeQL-coding-standard
Variable scope too large Note
Test_PipeCmds
.MsgId = CFE_SB_MSGID_WRAP_VALUE(CFE_TIME_CMD_MID), .CommandCode = CFE_TIME_SUB_1HZ_ADJUSTMENT_CC}; | ||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_CMD_ADD_ONEHZ_ADJUSTMENT_CC = { | ||
.MsgId = CFE_SB_MSGID_WRAP_VALUE(CFE_TIME_CMD_MID), .CommandCode = CFE_TIME_ADD_ONEHZ_ADJUSTMENT_CC}; | ||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_CMD_SUB_ONEHZ_ADJUSTMENT_CC = { |
Check notice
Code scanning / CodeQL-coding-standard
Variable scope too large Note
Test_PipeCmds
CFE_SB_MSGID_WRAP_VALUE(CFE_TIME_DATA_CMD_MID)}; | ||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_1HZ_CMD = {.MsgId = | ||
CFE_SB_MSGID_WRAP_VALUE(CFE_TIME_1HZ_CMD_MID)}; | ||
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_ONEHZ_CMD = {.MsgId = |
Check notice
Code scanning / CodeQL-coding-standard
Variable scope too large Note
Test_PipeCmds
*Combines:* to_lab v2.5.0-rc4+dev75 ci_lab v2.5.0-rc4+dev81 sample_app v1.3.0-rc4+dev69 sch_lab v2.5.0-rc4+dev75 cFE v7.0.0-rc4+dev434 osal v6.0.0-rc4+dev247 **Includes:** *to_lab* - nasa/to_lab#176 *ci_lab* - nasa/ci_lab#165 *sample_app* - nasa/sample_app#220 *sch_lab* - nasa/sch_lab#156 *cFE* - nasa/cFE#2472 - nasa/cFE#2411 - nasa/cFE#2474 *osal* - nasa/osal#1430 Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com> Co-authored by: Isaac Rowe <irowebbn@users.noreply.github.com> Co-authored by: Avi Weiss <thnkslprpt@users.noreply.github.com>
*Combines:* to_lab v2.5.0-rc4+dev75 ci_lab v2.5.0-rc4+dev81 sample_app v1.3.0-rc4+dev69 sch_lab v2.5.0-rc4+dev75 cFE v7.0.0-rc4+dev434 osal v6.0.0-rc4+dev247 **Includes:** *to_lab* - nasa/to_lab#176 *ci_lab* - nasa/ci_lab#165 *sample_app* - nasa/sample_app#220 *sch_lab* - nasa/sch_lab#156 *cFE* - nasa/cFE#2472 - nasa/cFE#2411 - nasa/cFE#2474 *osal* - nasa/osal#1430 Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com> Co-authored by: Isaac Rowe <irowebbn@users.noreply.github.com> Co-authored by: Avi Weiss <thnkslprpt@users.noreply.github.com>
*Combines:* to_lab v2.5.0-rc4+dev75 ci_lab v2.5.0-rc4+dev81 sample_app v1.3.0-rc4+dev69 sch_lab v2.5.0-rc4+dev75 cFE v7.0.0-rc4+dev434 osal v6.0.0-rc4+dev247 **Includes:** *to_lab* - nasa/to_lab#176 *ci_lab* - nasa/ci_lab#165 *sample_app* - nasa/sample_app#220 *sch_lab* - nasa/sch_lab#156 *cFE* - nasa/cFE#2472 - nasa/cFE#2411 - nasa/cFE#2474 *osal* - nasa/osal#1430 Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com> Co-authored by: Isaac Rowe <irowebbn@users.noreply.github.com> Co-authored by: Avi Weiss <thnkslprpt@users.noreply.github.com>
*Combines:* to_lab v2.5.0-rc4+dev75 ci_lab v2.5.0-rc4+dev81 sample_app v1.3.0-rc4+dev69 sch_lab v2.5.0-rc4+dev75 cFE v7.0.0-rc4+dev434 osal v6.0.0-rc4+dev247 **Includes:** *to_lab* - nasa/to_lab#176 *ci_lab* - nasa/ci_lab#165 *sample_app* - nasa/sample_app#220 *sch_lab* - nasa/sch_lab#156 *cFE* - nasa/cFE#2472 - nasa/cFE#2411 - nasa/cFE#2474 *osal* - nasa/osal#1430 Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com> Co-authored by: Isaac Rowe <irowebbn@users.noreply.github.com> Co-authored by: Avi Weiss <thnkslprpt@users.noreply.github.com>
Checklist (Please check before submitting)
Describe the contribution
A topic ID is the same concept as was previously referred to as a portable message number. This just formalizes it, gives it a name, and adds some macros for easier customization of the behavior.
Fixes #2473
Testing performed
Build CFE and run tests with and without an override file
Expected behavior changes
More configuration flexibility for users and different use cases
System(s) tested on
Debian
Additional context
Both mission and arch/platform builds should now support an all-inclusive topicid/msgid header file, respectively. Most users prefer to put all the IDs in the same header so it can be more easily identified if there is a conflict.
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.