OS_Bsem_Switch (bsem) OS_Bsem_Switch_I (bsem)
Switches binary semaphore to other state ("0"→"1" or "1"→"0").
Everywhere
bsem
nothing
void Task (void) { for (;;) { /*...*/ OS_Bsem_Switch(3); // Change state of binary semaphore #3 /*...*/ } }
For english spoken users http://www.pic24.ru
2008 © Alex B.