ACS ACR89U-A1 User Manual Page 92

  • Download
  • Add to my manuals
  • Print
  • Page
    / 115
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 91
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.
}
}
Page view 91
1 2 ... 87 88 89 90 91 92 93 94 95 96 97 ... 114 115

Comments to this Manuals

No comments