Pumpkin, Inc.

Pumpkin User Forums

interrupt specific functions

Have an idea on how to make Salvo better? Post it here!

interrupt specific functions

Postby aek » Sat Nov 12, 2005 5:30 am

Hi Tyrel.

It's a good idea, but not easy for us to implement in the libraries.

Why?

Because there's no absolute need to call any of Salvo's services from an interrupt. So to take advantage of the new macros, we'd have to have all sorts of new libraries, which have 2^^n combinations of the ISR-callable functions and either no pragma or the pragma.

This sort of "optimization" is left to Salvo Pro users, who can do it trivially.

BTW, currently there are no .tmpdata-saving macros applied to any Salvo services, as I do not believe any were present in MPLAB-C18 pre-v3.

I don't mean to be glib, but this is an excellent example of where having Salvo Pro is a real benefit.

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

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

Re: interrupt specific functions

Postby tyski » Sat Nov 12, 2005 10:48 am

This is a c18/PIC18F specific request, but a request nonetheless.

The new interrupt context saving features and pragmas in v3.00 should be further leveraged. The problem with Salvo that I have is you have to save the .tmpdata section before calling OSTimer or any other Salvo tasks. This is a serious overhead for large projects where the .tmpdata section is large and the interrupts come quickly.

I know this could be hacked using Salvo Pro, but I think this could make the Salvo libraries much more appealing. Simply provide special copies of these functions that are wrapped in the new pragma provided in v3.00.

------------------
Tyrel Newton
Electrical Engineer

Tethers Unlimited, Inc.
11807 North Creek Parkway South, Suite B-102
Bothell, WA 98011-8804, USA
425-486-0100 x836 425-482-9670 FAX
newton@tethers.com
http://www.tethers.com/

Tyrel Newton
Electrical Engineer

Tethers Unlimited, Inc.
11807 North Creek Parkway South, Suite B-102
Bothell, WA 98011-8804, USA
425-486-0100 x836 425-482-9670 FAX
newton@tethers.com
http://www.tethers.com/

tyski
 
Posts: 17
Joined: Thu Aug 18, 2005 11:00 pm
Location: Bothell, WA, USA


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron