Disable/Enable all interrupts on LPC1114

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

Disable/Enable all interrupts on LPC1114

1,777 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mohsin on Wed Dec 15 11:36:52 MST 2010
Hi All,
          Can anyone please let me know how to disable and enable all interrupts through a single command on LPC1114?

I need to protect some critical sections by disabling all interrupts before going inside  and then enabling them once the critical section is done.

Thanks,
Mohsin
0 项奖励
回复
1 回复

1,615 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Dec 15 12:09:27 MST 2010
You can call the following CMSIS functions:[INDENT][FONT=Courier New][SIZE=1]void __disable_irq (void)[/SIZE][/FONT][FONT=Courier New][SIZE=1]
void __enable_irq (void)[/SIZE][/FONT]
[/INDENT]Regards,
CodeRedSupport
0 项奖励
回复