Document Title Here
Document Title Here
Document Title Here
ACR89U-A1 Application Programming Interface
Version 1.00
Page 92 of 115
info@acs.com.hk
www.acs.com.hk
Example usage:
void vATask( void * pvParameters )
{
xSemaphoreHandle xSemaphore;
// Semaphore cannot be used before a call to
xSemaphoreCreateCounting().
// The max value to which the semaphore can count shall be 10, and the
// initial value assigned to the count shall be 0.
xSemaphore = xSemaphoreCreateCounting( 10, 0 );
if( xSemaphore != NULL )
{
// The semaphore was created successfully.
// The semaphore can now be used.
}
}
Comments to this Manuals