basic Q: disabling all interrupts?

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

basic Q: disabling all interrupts?

3,246 次查看
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 项奖励
回复
2 回复数

2,600 次查看
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 项奖励
回复

2,600 次查看
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 项奖励
回复