View previous topic :: View next topic |
Author |
Message |
sorasit46
Joined: 07 May 2007 Posts: 69
|
What mean of prevent re-entrancy ? |
Posted: Sat Mar 14, 2009 11:50 am |
|
|
Hi!
Quote: | >>> Warning 216 "guard.c" Line 520(0,1): Interrupts disabled during call to prevent re-entrancy: (@FLT)
>>> Warning 216 "guard.c" Line 520(0,1): Interrupts disabled during call to prevent re-entrancy: (@delay_ms1)
>>> Warning 216 "guard.c" Line 520(0,1): Interrupts disabled during call to prevent re-entrancy: (@DIV1616)
>>> Warning 216 "guard.c" Line 520(0,1): Interrupts disabled during call to prevent re-entrancy: (ReadCh) |
1. I'm not understand this warning. Who can explain?
2. This warning is serious or not matter?
2. How to correct this warning?
Regards |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
|
|
Posted: Sat Mar 14, 2009 12:05 pm |
|
|
This has been asked many, many times on this board (including just a
few days ago).
Use the search option. Search on "Interrupts disabled during call " and
select all search terms. You will find lots of info on what you are asking. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
RLScott
Joined: 10 Jul 2007 Posts: 465
|
Re: What mean of prevent re-entrancy ? |
Posted: Sat Mar 14, 2009 7:39 pm |
|
|
sorasit46 wrote: | ...
2. This warning is serious or not matter?
|
This warning is not serious if the call in "guard.c" Line 520 is one for which you don't mind having interrupts disabled. If the call cited is a function that is very short and will return quickly, then it may be OK to just accept the warning and let the interrupts be disabled for the duration of the call. On the other hand, if you need to ensure low latency for your interrupts and cannot tolerate interrupts being disabled for the duration of that call, then you need to do something about it. The "something" can be found by searching the resources already cited in other posts in this thread. _________________ Robert Scott
Real-Time Specialties
Embedded Systems Consulting |
|
|
sorasit46
Joined: 07 May 2007 Posts: 69
|
Re: What mean of prevent re-entrancy ? |
Posted: Sun Mar 15, 2009 5:19 am |
|
|
RLScott wrote: | sorasit46 wrote: | ...
2. This warning is serious or not matter?
|
This warning is not serious if the call in "guard.c" Line 520 is one for which you don't mind having interrupts disabled. . |
Thanks alot to hear this warning not serious. I accept your reason. Because I have not line 520. |
|
|
Guest
|
Re: What mean of prevent re-entrancy ? |
Posted: Sun Mar 15, 2009 1:40 pm |
|
|
Quote: | Thanks alot to hear this warning not serious. I accept your reason. Because I have not line 520. |
You probably have 519 lines. There are some messages that are generated after the whole file is compiled, and it gives you the last line instead of the offending one. Not sure why. Sometimes the line is in an #included file, or the include affects the numbering.
Barry |
|
|
|