Keil™, An ARM® Company

RL-ARM User's Guide

Semaphore Management Routines

RoutineAttributesDescription
os_sem_initInitializes a semaphore object.
os_sem_sendSends a signal (token) to the semaphore.
os_sem_waitWaits for a signal (token) from the semaphore.
isr_sem_sendSends a signal (token) to the semaphore.

note

  • The semaphore management routines enable you to use semaphores to synchronize the activities of the various tasks and to protect shared variables from corruption.