__declspec(interrupt) syntax error

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

__declspec(interrupt) syntax error

1,694件の閲覧回数
jaroslavbrazdil
Contributor I

Hi everybody,

 

I'm using codewarrior 10.3  for my bareboard project with Kinetis K20.


I want to use __declspec(interrupt)  to specify interrupt function.  (I need to save all user registry).


When I use :


__declspec(interrupt) void test_int(void)

{

}

or

__interrupt__ void test_int3(void)

{

}

 

 


an syntax error occure. Can enybody help me, please?


 

Thank a lot!!!

 

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,120件の閲覧回数
Monica
Senior Contributor III

Jaroslav, was this helpful?

Please keep us posted! :smileywink:

Regards!

0 件の賞賛
返信

1,120件の閲覧回数
dataScout
NXP Employee
NXP Employee

it should work with simply "interrupt"

interrupt void test_int3(void)

{

...

}

0 件の賞賛
返信