Check if binary semaphore is set. Returns value of type OST_WORD.
Everywhere
==0 |
Semaphore is not set |
!=0 |
Semaphore is set |
#define BS_DATA_RECEIVED 3 void Task (void) { for (;;) { /*...*/ // Is semaphore set by other task? if (OS_Bsem_Check(BS_DATA_RECEIVED)) { // Work with received data /*...*/ } /*...*/ } }
OS_CheckBSem