Importing classic projects in Codewarrior 10 beta

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Importing classic projects in Codewarrior 10 beta

跳至解决方案
2,451 次查看
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?

标签 (1)
0 项奖励
回复
1 解答
914 次查看
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 项奖励
回复
2 回复数
914 次查看
strawbot
Contributor II

void __interrupt yourRoutine(void)

// works as well

0 项奖励
回复
915 次查看
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 项奖励
回复