Sample Definition Code Generated Declare Semaphore(nameid) extern SEM_H $<nameid>; Defines the code for declaring a Semaphone (OS Object). This API is used when generating the code for declaring a TimerThis code is generated in the file type_def.h For a Condition defined to be a Semaphore: Define Semaphore(nameid) SEM_H $<nameid>; Defines the code for defining a Semaphone (OS Object). This API is used when generating the code for defining a Software Timer.This code is generated in the file glob_dat.c For a Condition defined to be a Semaphore: Create Semaphore(nameid) $<nameid> = CreateSemaphore(); Defines the code for creating a Semaphone (OS Object). This API is used when generating the code for creating a Software Timer. For a Condition defined to be a Semaphore: Destroy Semaphore(nameid) DestroySemaphore($<nameid>); Defines the code for destroying a Semaphone (OS Object). This API is used when generating the code for destroying a Software Timer.The functionon_exit_code
is called at the end of the generated application. For a Condition defined to be a Semaphore: Wait Semaphore(nameid) WaitSemaphore($<nameid>); Defines the code for waiting on a Semaphore (OS Object). This API's definition is used as the generated code for the operator: "get" on a Condition defined to be a Semaphore. For a Condition defined to be a Semaphore: Release Semaphore(nameid) ReleaseSemaphore($<nameid>); Defines the code for releasing a Semaphore (OS Object). This API's definition is used as the generated code for the operator: "release" on a Condition defined to be a Semaphore. For a Condition defined to be a Semaphore: