Hello
- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
CrasyCat
Hello,
I am using CW7.2, MCF5272., in XP platform.
I could not find the macros for the INTR subroutine ,
Like, _ISR, _INTR et.
Hello
You can specify a specific function is an interrupt function using following notation:
__declspec(interrupt) void MyInterrupt(void) {
/* Add your code here. */
}
See ColdFire_Build_Tools_Reference manual for more details on this notation.
Then you need to initialize the appropriate entry in the vector table with the address of this function.
If you have created your project using the project wizard the source file exceptions.c contains such a table (it is called _vect).
Just add the name of your interrupt function at the appropriate location.
I hope this helps.
CrasyCat
Hello,
I am trying this, hope this can resolve my issue,
Thanks,
Senu