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

Enabling interrupts during a delay_ms() or while() loop
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Tom Jetland



Joined: 23 Jun 2011
Posts: 31
Location: UK

View user's profile Send private message

PostPosted: Thu Aug 25, 2011 2:03 pm     Reply with quote

Ahh.. I see. Thanks for explaining that!

I was making an assumption that the re-entrancy was to do with interrupting the same interrupt twice... not running the delay_ms routine twice... Silly me!

Funny thing is, I did make myself a lovely comment inside the interrupt at the point of the delay command saying

Code:
 // Not good practice to delay in an interrupt, sort this out!


I just never got round to sorting it out, because it never caused a problem til now!

Thanks again.

Tom
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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