ajrox
Newbie level 6
In ucos-II semaphore can be used as an event notifying flag/signalling event.
It's declaration is OSSemCreate(0) as per the book MicroC/OS-II: The Real Time Kernel by Jean J. Labrosse.
How can a semaphore have an initial count of 0?
Also can anyone provide an example code for semaphore as event signalling flag?
It's declaration is OSSemCreate(0) as per the book MicroC/OS-II: The Real Time Kernel by Jean J. Labrosse.
How can a semaphore have an initial count of 0?
Also can anyone provide an example code for semaphore as event signalling flag?