JEFF MITCHELL

Coldfire Interrupt Syntax

Discussion created by JEFF MITCHELL on Apr 5, 2011
Latest reply on Apr 7, 2011 by JEFF MITCHELL

I'm sure it's staring me in the face, but I can't find the answer anywhere...



CW V10.1, S08QE128 / F51QE128



To declare in interrupt handler with the S08, I do this:


interrupt VectorNumber_Vadc  void isrADC(void)


With Coldfire, using the above syntax, or the preferred


__declspec(interrupt) VectorNumber_Vadc void isrADC(void)


results in the compiler complaining


illegal use of '__declspec(interrupt)'


and yes, it flags the syntax as well, but I understand that's an Eclipse problem.


However, this works:


__declspec(interrupt)  void isrADC(void)


But then how does the linker know how to fill out the exception vector table? Do I have to manually edit exceptions.c?

Outcomes