View Single Post
  #14   Spotlight this post!  
Unread 10-02-2008, 13:24
mentorbob mentorbob is offline
Registered User
FRC #1307
 
Join Date: Feb 2008
Location: Dover, NH
Posts: 1
mentorbob is an unknown quantity at this point
Re: printf() inside interrupt routine?

Nathan,
It wouldn't be a good idea to call a library routine like printf from inside an interrupt, even if the interrupt only happened every second. Most library routines are not re-entrant. If you were in the middle of a printf when the interrupt occurred, calling printf from inside the interrupt would mess up the printf in progress.

Bob