k20 global interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

k20 global interrupt

582 Views
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

Labels (1)
Tags (1)
0 Kudos
2 Replies

385 Views
kooroshhajiani
Contributor III

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

385 Views
danielchen
NXP TechSupport
NXP TechSupport

thanks for your sharing.

Regards

Daniel

0 Kudos