ajrox
Newbie level 6
- Joined
- Nov 26, 2013
- Messages
- 14
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 110
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?