avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-chat] effects of ATOMIC_FORCEON and NONATMOIC_FORCEOFF


From: Britton Kerin
Subject: [avr-chat] effects of ATOMIC_FORCEON and NONATMOIC_FORCEOFF
Date: Sat, 11 Apr 2015 10:12:50 -0800

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]