<< Previous | Next >>

OSSemCreate

OS_EVENT *OSSemCreate (INT16U cnt);

Description

Creates a semaphore.

Parameters

cnt
The initial value of the semaphore.

Return value

Pointer to the event control block (OS_EVENT) associated with the created semaphore, or NULL if no event control block is available.

Library

OS_SEM.C

See also

OSSemAccept, OSSemPend, OSSemPost, OSSemQuery


020-0059 Rev. D << Previous | Next >> µC/OS-II