Warning 216 _____ Interrupt disabled during call to prevent.
Posted: Sun Apr 20, 2008 12:01 pm
I am using an 18F4550 using int_rda for capturing rs232 data and using int_timer1 for maintaining a seconds counter. I disable the appropriate interrupt while the other is working to prevent re-entering the irq routines but when I compile I get the following message in my watch output... (I have used x's for file name)
Warning 216 xxxxxx.c Line 982(0,1) Interrupt disabled during call to prevent re-entrancy: (@ADDFF).
The only problem is that my source code ends at line 979. It appears that this is causing the interrupt to become disabled, but I cannot see anything that would cause it... Anyone have any ideas?
Ttelmah Guest
Posted: Sun Apr 20, 2008 2:41 pm
It'll happen whenever you use the same functions inside an interrupt, and in the main code. It is only a warning. A quick search here, will find a huge amount about it. Since it applies to the 'main' as a whole, the line number is always the last line of this.
Best Wishes
foodwatch
Joined: 18 Apr 2006 Posts: 66
Posted: Sun Apr 20, 2008 5:58 pm
Thanks.... its been a long weekend and getting a bit foggy....
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum