SEM Module
Application Program Interface
2-371
tasks are waiting, SEM_post simply increments the semaphore count
and returns. (SEM_postBinary sets the semaphore count to non-zero
and returns.)
SEM Manager
Properties
The following global property can be set for the SEM module in the SEM
Manager Properties dialog of the DSP/BIOS Configuration Tool or in a
Tconf script:
❏
Object Memory
. The memory segment that contains the SEM
objects created with Tconf.
Tconf Name: OBJMEMSEG
Type: Reference
Example:
bios.SEM.OBJMEMSEG = prog.get("myMEM");
SEM Object Properties
To create a SEM object in a configuration script, use the following syntax.
The Tconf examples that follow assume the object has been created as
shown here.
var mySem = bios.SEM.create("mySem");
The following properties can be set for a SEM object in the SEM Object
Properties dialog of the DSP/BIOS Configuration Tool or in a Tconf script:
❏
comment
. Type a comment to identify this SEM object.
Tconf Name: comment
Type: String
Example:
mySem.comment = "my SEM";
❏
Initial semaphore count
. Set this property to the desired initial
semaphore count.
Tconf Name: count
Type: Int16
Example:
mySem.count = 0;