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

Q: Interrupts disabled during call to prevent re-entrancy

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



Joined: 27 Jun 2007
Posts: 206

View user's profile Send private message

Q: Interrupts disabled during call to prevent re-entrancy
PostPosted: Fri Sep 11, 2009 12:56 pm     Reply with quote

I have code that uses interrupt routines. And I got the topic header:
Quote:
>>> Warning 216 "690_v2.c" Line 67(0,1): Interrupts disabled during call to prevent re-entrancy: (RF_status)


But if I look at the function in question:
Code:
int16 RF_status()
{
   int16 result;
   disable_interrupts(GLOBAL);
.....

I allready disable interrupts. Why would compiler then do it again? Confused
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Sep 11, 2009 1:05 pm     Reply with quote

FAQ articles:
http://www.ccsinfo.com/faq.php?55
http://www.ccsinfo.com/faq.php?page=delay_in_interrupt

Do a search on this (for "all terms") and see a large number of threads:
Quote:
Interrupts Disabled During call to prevent re-entrancy
http://www.ccsinfo.com/forum/viewtopic.php?t=39470
http://www.ccsinfo.com/forum/viewtopic.php?t=35558
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