Page 1 of 1

interrupt specific functions

PostPosted: Sat Nov 12, 2005 5:30 am
by aek
Hi Tyrel.

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


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.


Re: interrupt specific functions

PostPosted: Sat Nov 12, 2005 10:48 am
by tyski
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