Hi..

I am porting lwip to SMX RTOS on PPC MPC852T from Freescale.
As I was comparing the 2 functions for creating a semaphore for both lwip 
sys_arch.c and the one from smx
it hits me... what is meant with the initial conditions argument passed to 
sys_sem_new on lwip, since
smx semaphores has by default FALSE as initial conditions and depending on the 
Threshold and how many times it
as been signalled it will be set to TRUE which will be tested by the task that 
needs that semaphore to be signalled.
I also noticed on some point in the code the sys_sem_new is called and passed 
with value of 0 and 1.

I  really appreciate it if anyone can explain it.

Another short q, what is sys_sem_wait for ? 

Btw lwip is really a lifesaver for me, wanna say thanks a lot the lwip 
developers :D

Thanks a bunch

M. Ikhwan


_________________________________________________________________
Connect and share in new ways with Windows Live.
http://www.windowslive.com/connect.html?ocid=TXT_TAGLM_Wave2_newways_112007
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to