k20 global interrupt

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

k20 global interrupt

1,234件の閲覧回数
kooroshhajiani
Contributor III

Hi,

I have a project running in KDS. When I use

 

__enable_irq();

to enable the global interrupts I keep getting error(undefined reference to it).

Then I used

 

asm(" CPSIE i");  and it complains about "asm"

My goal is to enable the pin interrupt on port B and I believe I know how to do that however before doing that I need to enable the global interrupts.

the target is a K20 production board.

Any ideas?

 

Regards,

Koorosh Hajiani

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

1,037件の閲覧回数
kooroshhajiani
Contributor III

This issue is fixed. I had to use __asm(double under score).

1,037件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

thanks for your sharing.

Regards

Daniel

0 件の賞賛
返信