SivarajAmbat / blueboard-lpc214x

Automatically exported from code.google.com/p/blueboard-lpc214x
0 stars 0 forks source link

global variable not getting updated in interupt service routine #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was trying to increment a global variable inside an interrupt service routine 
but i found after returning from interrupt service routine the global variable 
was restored to previous value .
I tried declaring the global variable as volatile but it is not giving any 
effect.

I am using code sourcery tool chain for compiling the code.

Original issue reported on code.google.com by tonyl...@gmail.com on 2 Jul 2011 at 5:26