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

USB Example Code Compile Error

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



Joined: 22 May 2006
Posts: 9

View user's profile Send private message

interrupt warnings
PostPosted: Mon May 22, 2006 8:45 pm     Reply with quote

Ahh thats better. Should I be concerned about the 'Interrupts disabled during call to prevent re-entrancy' warnings?

Does this basically mean that the compiler disables interupts until these routines are finished? and if so should I be doing this explicitly?

Matt
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon May 22, 2006 10:05 pm     Reply with quote

The usb_token_reset() function is called by:
usb_isr_rst()
usb_detach()
usb_attach()

The usb_task() function calls usb_attach(). This call is made outside
of an interrupt service routine.

The usb_isr() function calls usb_isr_rst(). This call is made from
within the #int_usb interrupt service routine.

There is only one instance of the usb_token_reset() function and it
is not re-entrant. Therefore, the compiler automatically inserts code
at compile-time to disable interrupts while usb_token_reset() is
executing.
mbro131



Joined: 22 May 2006
Posts: 9

View user's profile Send private message

PostPosted: Mon May 22, 2006 10:08 pm     Reply with quote

Thankyou for clearing that up for me, much appreciated

Matt
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