basic Q: disabling all interrupts?

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

basic Q: disabling all interrupts?

2,192 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cyberstudio on Mon Apr 11 16:38:02 MST 2011
How do I temporarily disable all interrupts? And then re-enable them? This is for executing a short sequence atomically, on a LPC1114 if it matters. Thanks!
0 Kudos
2 Replies

1,546 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Apr 11 16:56:34 MST 2011
Try:

__enable_irq();
__disable_irq();
defined in core_cm0.h of CMSIS
0 Kudos

1,546 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Mon Apr 11 16:54:43 MST 2011
See this thread:

http://knowledgebase.nxp.com/showthread.php?p=4674
0 Kudos