Thanks for the response, Ridgeglider.
In fact we are using OSSemPend() but when the function was writen the
semaphore is always initialized with OSSemInit() as following:
u8 foo(void)
{
OSSemInit(&sem,0);
...
...
...
st = OSSemPend(&sem,timeout); //Waiting for other task to post
return ...
Search found 2 matches
- Wed Mar 16, 2011 6:03 am
- Forum: NetBurner Software
- Topic: Multiple calls of OSSemInit()
- Replies: 20
- Views: 21298
- Tue Mar 15, 2011 10:10 am
- Forum: NetBurner Software
- Topic: Multiple calls of OSSemInit()
- Replies: 20
- Views: 21298
Multiple calls of OSSemInit()
Hi!
Can I call OSSemInit() multiple times to the same struct OS_SEM ?
The source code that I´m taking a look does this to "reset" the Semaphore.
My doubt is if this operation consumes extra resources from my uC.
Thank´s in advance.
Can I call OSSemInit() multiple times to the same struct OS_SEM ?
The source code that I´m taking a look does this to "reset" the Semaphore.
My doubt is if this operation consumes extra resources from my uC.
Thank´s in advance.