Page 1 of 1

'e' variant

PostPosted: Wed Jul 24, 2002 3:30 am
by aek
Hi Don.

I presume you mean the 'a' variant ...

Your understanding is correct -- services in an 'a'-variant library (for PICC and PICC-18) can be called from the foreground (ISR) or background (task, etc.) levels.

The complication that arises with the PICC and PICC-18 compilers comes from the #interrupt_level pragma and how we use it to generate libraries. You'll need to review the end of AN-1 and all of AN-9 to fully understand how to call Salvo services from within interrupts with these compilers.

Regards,

------------------

[This message has been edited by aek (edited July 24, 2002).]


Re: 'e' variant

PostPosted: Wed Jul 24, 2002 9:18 am
by dfleck
I'm not sure what the 'e' variant means. Does it mean that on an individual basis, a service can be called from either the foreground or background? For example, could OSSignalBinSem be called from the foreground only, while OSSignalMsg is called from the background only?

------------------
Donald A. Fleck


Re: 'e' variant

PostPosted: Thu Jul 25, 2002 5:28 am
by dfleck
Hello Andrew,
Actually, I do mean the 'e' variant. See p.395-397,410 in the user manual.

------------------
Donald A. Fleck


Re: 'e' variant

PostPosted: Thu Jul 25, 2002 9:18 am
by aek
Hi Donald.

I was thinking PIC's ...

Yes, with the Salvo C51 e-variant libraries, you can call any particular service that is callable from the mainline or the ISR level from one or the other, but not from both. The difference between the e- and a-variant libraries is that for the a-variant libraries, these functions are now reentrant, and so they can be called from multiple levels ...

------------------