11-7 Synchronization and Communication Management Attached to a Task - Semaphore

HI7000/4 Series can provide a maximum of 1023 semaphore IDs.

If semaphores are required they should be generated before they are to be used.

They can be generated when the system is being built using the configurator, or by using service calls.

This is the static generation method using the configurator in advance.
This is the semaphore configuration screen.

First, determine the maximum number of semaphores to be used.

Next, generate each semaphore for each semaphore ID. Input "semaphore resource number" and "waiting task queue lineup" information for each ID.

Lastly, reflect the generated information to the High- performance Embedded Workshop project.

This is a table of service calls related to semaphore.

This service call is used to acquire semaphore resources.

This service call is used to return semaphore resources.

This is an example of coding for exclusive control of global variables using semaphore. Here the ID3 semaphore is used to avoid a conflict between global variable updates made by both task A and ta