Importing classic projects in Codewarrior 10 beta

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Importing classic projects in Codewarrior 10 beta

Jump to solution
1,912 Views
vier_kuifjes
Senior Contributor I

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?

Labels (1)
0 Kudos
1 Solution
375 Views
CrasyCat
Specialist III

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

View solution in original post

0 Kudos
2 Replies
375 Views
strawbot
Contributor II

void __interrupt yourRoutine(void)

// works as well

0 Kudos
376 Views
CrasyCat
Specialist III

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

0 Kudos