Skip to content

Remove/replace/deprecate questionable macros in SB #843

@skliper

Description

@skliper

Is your feature request related to a problem? Please describe.

/**
* \brief Set memory address within SB Message
*
* Macro that should be used to set memory addresses within software bus messages.
* For now this does a straight copy, but in a future revision this may translate the
* raw memory address into a "safe" integer value. This is particularly important if
* the message is to be sent off this CPU.
*/
#define CFE_SB_SET_MEMADDR(msgdst,src) msgdst = (cpuaddr)src
/**
* \brief Get memory address from SB Message
*
* Macro that should be used to get memory addresses from software bus messages.
* This is the inverse operation of CFE_SB_SET_MEMADDR.
*/
#define CFE_SB_GET_MEMADDR(msgsrc) (cpuaddr)msgsrc

Describe the solution you'd like
Consider replacing or removing (deprecating).

Describe alternatives you've considered
None

Additional context
Trying to write specific tickets related to #172

Requester Info
Jacob Hageman - NASA/GSFC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions