View Single Post
Old 06-02-2009, 08:04 AM   #1516 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
Quote:
Originally Posted by MPaulHolmes View Post
I believe the interrupts are re-enabled by resetting the SREG register to what it was before disabling interrupts, rather than using sti().
That usually works, but it is only necessary when enabling interrupts from within a function that is going to be called from both interrupt enabled code and interrupt disabled code.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote