c call for disabling/enabling interrupts ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

c call for disabling/enabling interrupts ?

914件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by err on Fri Jun 18 09:46:26 MST 2010
I can't seem to find a call to temporarily disable interrupts when going thru a critical section of code.... (lpc1343) ??? Help please....
0 件の賞賛
返信
2 返答(返信)

876件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by err on Sun Jun 27 20:20:40 MST 2010

Quote: igorsk
CMSIS provides intrinsics __enable_irq() / __disable_irq(). See core_cm0.h for more.



This didn't work...  However, looking through the file  core_cm3.h, there were variations of these....  what worked was...

[SIZE=2][LEFT][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]__asm[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]volatile[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ([/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"[U]cpsid[/U] i"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/LEFT]
[/SIZE][SIZE=2][LEFT][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]__asm[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]volatile[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ([/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"[U]cpsie[/U] i"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/LEFT]
[/SIZE]
0 件の賞賛
返信

876件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by igorsk on Fri Jun 18 10:03:40 MST 2010
CMSIS provides intrinsics __enable_irq() / __disable_irq(). See core_cm0.h for more.
0 件の賞賛
返信