Pumpkin, Inc.

Pumpkin User Forums

OS_WaitBinSem() not working work ...

If you can't make Salvo do what you want it to do, post it here.

OS_WaitBinSem() not working work ...

Postby Unregistered User » Sun Dec 02, 2001 10:27 am

I can't get OS_WaitBinSem() to work. I'm calling it like this:

code:
void Task ( void )
{
for (;;) {
OS_WaitBinSem(BINSEM_P, OSNO_TIMEOUT, label);
...
}
}

and I'm using the library slp42Cab.lib (PIC 16F877).

Can you help?

[This message has been edited by Unregistered User (edited December 02, 2001).]

Unregistered User
 
Posts: 36
Joined: Thu Aug 09, 2001 11:00 pm

Re: OS_WaitBinSem() not working work ...

Postby Salvo Tech Support » Sun Dec 02, 2001 10:31 am

Hello.

You need to call it like this:

code:
void Task ( void )
{
for (;;) {
OS_WaitBinSem(BINSEM_P, label);
...
}
}

because the library you are using does not support timeouts.

(Please note that in the next release of Salvo, you will always have to specify a value for the timeout in OS_WaitXyz(), even if timeouts are not enabled. This ensures cross-library porting, and doesn't cost any ROM.)

------------------
-----------------------
Salvo Technical Support
Please request all tech support through the Forums.

[This message has been edited by Salvo Tech Support (edited December 02, 2001).]

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am


Return to Coding

Who is online

Users browsing this forum: No registered users and 4 guests

cron