k20 global interrupt

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

k20 global interrupt

1,227 次查看
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,030 次查看
kooroshhajiani
Contributor III

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

1,030 次查看
danielchen
NXP TechSupport
NXP TechSupport

thanks for your sharing.

Regards

Daniel

0 项奖励
回复