Pumpkin, Inc.

Pumpkin User Forums

OSCALL_EVENTS problems

If you have a general question or comment regarding Salvo, post it here.

OSCALL_EVENTS problems

Postby luben » Sun Jun 23, 2002 2:16 am

Hello,

When I'm using both MEssages and BinSemaphores and I signal OSBinSem from main level, but Messages from ISR level (OSCALL_EVENTS = OSFROM_ANYWHERE) I get error message that the function OSSignalBinSem is not called from right level. SALVO 3.0 doesn't have separate settings for different event services, so if one of the services is called from main level and other from ISR you should set (OSCALL_EVENTS = OSFROM_ANYWHERE).

Well, the solution that I got is very simple - just put something like that in ISR

if (FALSE)
OSSIgnalXYZ(..);

The Hitech compiler understands that this si impossible case and dont' add any code for this, but the linker doesn't give error messages.

My question is - is it the only one way to this (I exlude possibility to change the source of SALVO like bad style of programming approach). I don't say that this is a disadvantage, maybe it's not good described in SALVO manual and for people without experience it could be damn dificult to fix such "errors".

Regards
Luben

luben
 
Posts: 324
Joined: Sun Nov 19, 2000 12:00 am
Location: Sofia, Bulgaria

Re: OSCALL_EVENTS problems

Postby Salvo Tech Support » Sun Jun 23, 2002 8:42 am

moved to Target-Specific -> PICMicro(R) MCUs ...

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

--------
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 General

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests

cron