The documentation for ATOMIC_FORCEON contains this:
This is a possible parameter for ATOMIC_BLOCK. When used, it will cause
the ATOMIC_BLOCK to force the state of the SREG register on exit,
enabling the Global Interrupt Status flag bit. This saves on flash
space as the previous value of the SREG register does not need to be
saved at the start of the block.
The documentation for NONATOMIC_FORCEOFF contains somehting similar.
I thin in both these cases, in addition to saved flash space there is going
to be a little bit of RAM space and possible few instructions, correct?
_______________________________________________
AVR-chat mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-chat