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 CCS Technical Support

interrupt issue

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



Joined: 02 Oct 2004
Posts: 22
Location: cleveland

View user's profile Send private message Send e-mail

interrupt issue
PostPosted: Sat Aug 06, 2005 8:59 am     Reply with quote

Hi,
What does this warning mean.


: Interrupts disabled during call to prevent re-entrancy: malloc


any help,as always is greatly appreciated

Thanks
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Sat Aug 06, 2005 10:05 am     Reply with quote

Not an error but something doesn't seem right or imformation to the user that he might not realize. In this case, you call a function from an interrupt so the compiler automatically disabled interrupts in that function so that the local variables won't get trashed if you are in that function and an interrupt occurs and that interrupt calls that same function.
MikeValencia



Joined: 04 Aug 2004
Posts: 238
Location: Chicago

View user's profile Send private message Send e-mail Yahoo Messenger

PostPosted: Sun Aug 07, 2005 8:13 pm     Reply with quote

Similiarly, you will see the same kind of warning if you call delay_ms() in an ISR and also in main(). Best thing to do is not to use delay_ms() in an isr.
Guest








PostPosted: Mon Aug 08, 2005 6:35 am     Reply with quote

thanks
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