Skip to content
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

Deprecate CFE_PLATFORM_CPU_ID, CFE_PLATFORM_CPU_NAME, and CFE_MISSION_SPACECRAFT_ID #827

Closed
skliper opened this issue Aug 21, 2020 · 2 comments · Fixed by #885 or #912
Closed

Deprecate CFE_PLATFORM_CPU_ID, CFE_PLATFORM_CPU_NAME, and CFE_MISSION_SPACECRAFT_ID #827

skliper opened this issue Aug 21, 2020 · 2 comments · Fixed by #885 or #912

Comments

@skliper
Copy link
Contributor

skliper commented Aug 21, 2020

Is your feature request related to a problem? Please describe.
Got bit by this again (used CFE_MISSION_SPACECRAFT_ID when CFE_PSP_GetSpacecraftId() should have been used). They also currently return different numbers since the define has historically been 0x42, but the setting in targets.cmake is 42 (decimal).

Related to #710

Describe the solution you'd like
Deprecate, actually suggest this error out at compile if defined since it leads to bugs (mismatch of IDs) in favor of CFE_PSP_GetSpacecraftId() and CFE_PSP_GetProcessorId() (and eventually CFE_PSP_GetProcessorName(), See nasa/PSP#165)

Describe alternatives you've considered
None.

Additional context
#710

Requester Info
Jacob Hageman - NASA/GSFC

@CDKnightNASA
Copy link
Contributor

dumb question, why not #define CFE_MISSION_SPACECRAFT_ID CFE_PSP_GetSpacecraftId()?

@skliper
Copy link
Contributor Author

skliper commented Aug 26, 2020

Thought about it, but I didn't think it was worth the bandaid. Could do it short term while it's deprecated, but not my preference as a permanent solution. Also might require adding cfe_psp.h depending on what includes are already in.

@skliper skliper added this to the 7.0.0 milestone Sep 10, 2020
skliper added a commit to skliper/cFE that referenced this issue Sep 11, 2020
skliper added a commit to skliper/cFE that referenced this issue Sep 11, 2020
Removed CFE_PLATFORM_CPU_ID, CFE_PLATFORM_CPU_NAME,
and CFE_MISSION_SPACECRAFT_ID.  Use CFE_PSP_GetProcessorId(),
CFE_PSP_GetProcessorName(), CFE_PSP_GetSpacecraftId().
skliper added a commit to skliper/cFE that referenced this issue Sep 24, 2020
Removed CFE_PLATFORM_CPU_ID, CFE_PLATFORM_CPU_NAME,
and CFE_MISSION_SPACECRAFT_ID.  Use CFE_PSP_GetProcessorId(),
CFE_PSP_GetProcessorName(), CFE_PSP_GetSpacecraftId().
yammajamma added a commit that referenced this issue Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants