Open GoogleCodeExporter opened 8 years ago
Absolutely. This is easy:
uint8_t oldSREG = SREG;
cli(); // disable interrupts
(do some stuff here)
SREG = oldSREG; // Restore register; reenables interrupts
...Make sure that when you're doing stuff, if you have a return() or something
else that takes you out of your code stream early, that you make sure you
always restore the SREG redister.
Original comment by m...@schwager.com
on 11 Aug 2013 at 12:17
Original issue reported on code.google.com by
I.Punish...@gmail.com
on 5 Aug 2013 at 8:23