As a test, I am trying to import my current NicheLite based Coldfire project into the new Codewarrior 10.
This appears to work, but there seems to be a problem with the interrupt routines. Codewarrior 10 does not recognise the __interrupt__ keyword. How do interrupt routines have to be declared in CW10?
Solved! Go to Solution.
Hello
According to the MCU_ColdFire_Compiler.pdf, you can define an interrupt function using either the pragma interrupt or
__declspec(interrupt).
For instance
#pragma interrupt on
void myIntFunc(void) {
...
}
#pragma interrupt off
or
__declspec (interrupt) void myIntFunc(void) {
...
}
CrasyCat
void __interrupt yourRoutine(void)
// works as well
Hello
According to the MCU_ColdFire_Compiler.pdf, you can define an interrupt function using either the pragma interrupt or
__declspec(interrupt).
For instance
#pragma interrupt on
void myIntFunc(void) {
...
}
#pragma interrupt off
or
__declspec (interrupt) void myIntFunc(void) {
...
}
CrasyCat