CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

What mean of prevent re-entrancy ?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sorasit46



Joined: 07 May 2007
Posts: 69

View user's profile Send private message

What mean of prevent re-entrancy ?
PostPosted: Sat Mar 14, 2009 11:50 am     Reply with quote

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: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Mar 14, 2009 12:05 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Mar 14, 2009 12:10 pm     Reply with quote

Piclist has an article on it:
http://www.piclist.com/techref/microchip/sstack.htm
RLScott



Joined: 10 Jul 2007
Posts: 465

View user's profile Send private message

Re: What mean of prevent re-entrancy ?
PostPosted: Sat Mar 14, 2009 7:39 pm     Reply with quote

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

View user's profile Send private message

Re: What mean of prevent re-entrancy ?
PostPosted: Sun Mar 15, 2009 5:19 am     Reply with quote

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 ?
PostPosted: Sun Mar 15, 2009 1:40 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group