Importing classic projects in Codewarrior 10 beta

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Importing classic projects in Codewarrior 10 beta

ソリューションへジャンプ
2,479件の閲覧回数
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 解決策
942件の閲覧回数
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 返答(返信)
942件の閲覧回数
strawbot
Contributor II

void __interrupt yourRoutine(void)

// works as well

0 件の賞賛
返信
943件の閲覧回数
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 件の賞賛
返信