Reply by Bende Georg February 5, 20042004-02-05
As I do it:
I define the function in the appconfig.h right after the vector definition:

#define INTERRUPT_VECTOR_ADDR_8 FMy_IREQA_Routine
void FMy_IREQA_Routine (void);

And I put the #pragma directive before the function:
#pragma interrupt
void FMy_IREQA_Routine (void)
{
...
}

Georg Bende
Softwareentwickler
Abteilung Elektronik
Dr. Fritz Faulhaber GmbH & Co KG
Daimlerstr. 23
71101 Schaich
Tel: +49 7031 638294 > -----Ursprgliche Nachricht-----
> Von: zuffpasc [mailto:]
> Gesendet: Donnerstag, 5. Februar 2004 14:34
> An:
> Betreff: [motoroladsp] Interrupt with SDK > Hello,
>
> I'm trying to implement an ISR for IRQA with SDK...
>
> So, I define it in appconfig.h: (as said in the SDK help)
>
> #define INTERRUPT_VECTOR_ADDR_8 FMy_IREQA_Routine
>
> and in my main C file, I put this:
>
> void FMy_IREQA_Routine (void);
> ....
>
> void FMy_IREQA_Routine (void)
> {
> #pragma interrupt saveall
> ...
> }
>
> But it doesn't compile, it says:
>
> Error : undefined label 'FMy_IREQA_Routine'
> vector.c line 649 } > And if I define
> #define INTERRUPT_VECTOR_ADDR_8 FMy_IREQA_Routine
> in my main C file, it compiles, ok, but it doesn't jump in it when an
> interrupt occurs, but jump in the configUnhandledInterruptISR...
>
> What am I doing wong??
>
> Thanks,
>
> Pascal >
> _____________________________________
> Note: If you do a simple "reply" with your email client, only
> the author of this message will receive your answer. You
> need to do a "reply all" if you want your answer to be
> distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join:
>
> To Post:
>
> To Leave:
>
> Archives: http://www.yahoogroups.com/group/motoroladsp
>
> More Groups: http://www.dsprelated.com/groups.php3
>
> Yahoo! Groups Links >