c call for disabling/enabling interrupts ?

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

c call for disabling/enabling interrupts ?

915 Views
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 Kudos
Reply
2 Replies

877 Views
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 Kudos
Reply

877 Views
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 Kudos
Reply