Pumpkin, Inc.

Pumpkin User Forums

'e' variant

If you're having difficulty with Salvo's configuration options, post it here.

'e' variant

Postby aek » Wed Jul 24, 2002 3:30 am

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).]

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: 'e' variant

Postby dfleck » Wed Jul 24, 2002 9:18 am

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

Donald A. Fleck
dfleck
 
Posts: 28
Joined: Sun May 12, 2002 11:00 pm
Location: Breinigsville, PA, USA

Re: 'e' variant

Postby dfleck » Thu Jul 25, 2002 5:28 am

Hello Andrew,
Actually, I do mean the 'e' variant. See p.395-397,410 in the user manual.

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

Donald A. Fleck
dfleck
 
Posts: 28
Joined: Sun May 12, 2002 11:00 pm
Location: Breinigsville, PA, USA

Re: 'e' variant

Postby aek » Thu Jul 25, 2002 9:18 am

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

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 2 guests

cron