GBL_setProcId
Application Program Interface
2-117
C Interface
Syntax
GBL_setProcId( procId );
Parameters
Uint16
procId;
/* processor ID */
Return Value
Void
Reentrant
no
Description
Sets the processor ID (PROCID) for this processor. This numeric ID
value is used by the MSGQ module to determine which processor to
communicate with.
The procId is also defined in the MSGQ_TransportObj array that is part
of the MSGQ_Config structure.
This function can only be called in the User Init Function configured as
part of the GBL Module Properties. That is, this function may only be
called at the beginning of DSP/BIOS initialization.
The application may determine the true processor ID for the device
during the User Init Function and call GBL_setProcId with the correct
processor ID. This is useful in applications that run a single binary image
on multiple DSP processors.
How the application determines the correct processor ID is application-
or board-specific. For example, you might use GPIO. You can call
GBL_getProcId from the User Init Function to get the statically configured
processor ID.
Constraints and
Calling Context
❏
This function can only be called in the User Init Function configured
as part of the GBL Module Properties.
See Also
MSGQ Manager Properties
GBL_getProcId
GBL_setProcId
Set configured value of processor ID