avr-libc-commit
[Top][All Lists]
Advanced

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

[avr-libc-commit] [2540] Submitted by Britton Kerin:


From: j
Subject: [avr-libc-commit] [2540] Submitted by Britton Kerin:
Date: Sun, 11 Jun 2017 11:35:05 -0400 (EDT)

Revision: 2540
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2540
Author:   joerg_wunsch
Date:     2017-06-11 11:35:05 -0400 (Sun, 11 Jun 2017)
Log Message:
-----------
Submitted by Britton Kerin:
patch #8649: small documentation fixes in
* include/util/atomic.h: Improve documentation.

Ticket Links:
------------
    http://savannah.gnu.org/patch/?8649

Modified Paths:
--------------
    trunk/avr-libc/ChangeLog
    trunk/avr-libc/NEWS
    trunk/avr-libc/include/util/atomic.h

Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog    2017-06-11 15:25:02 UTC (rev 2539)
+++ trunk/avr-libc/ChangeLog    2017-06-11 15:35:05 UTC (rev 2540)
@@ -1,5 +1,11 @@
 2017-06-11  Joerg Wunsch <address@hidden>
 
+       Submitted by Britton Kerin:
+       patch #8649: small documentation fixes in
+       * include/util/atomic.h: Improve documentation.
+
+2017-06-11  Joerg Wunsch <address@hidden>
+
        Submitted by Karol Babioch:
        patch #8536: Fix a typo within <stdio.h>
        * include/stdio.h: Fix small typo.

Modified: trunk/avr-libc/NEWS
===================================================================
--- trunk/avr-libc/NEWS 2017-06-11 15:25:02 UTC (rev 2539)
+++ trunk/avr-libc/NEWS 2017-06-11 15:35:05 UTC (rev 2540)
@@ -22,6 +22,7 @@
   [#9163] New eeprom write block function for xmega using eeprom page write
   [#8729] [avr/interrupt.h] Add ISR_NOICF, ISR_FLATTEN. Fix namespace of 
identifiers.
   [#8536] Fix a typo within <stdio.h>
+  [#8649] small documentation fixes in
 
 * Other changes:
 

Modified: trunk/avr-libc/include/util/atomic.h
===================================================================
--- trunk/avr-libc/include/util/atomic.h        2017-06-11 15:25:02 UTC (rev 
2539)
+++ trunk/avr-libc/include/util/atomic.h        2017-06-11 15:35:05 UTC (rev 
2540)
@@ -250,9 +250,10 @@
 
     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.
+    exit, enabling the Global Interrupt Status flag bit. This saves a
+    small amout of flash space, a register, and one or more processor
+    cycles, since the previous value of the SREG register does not need
+    to be saved at the start of the block.
 
     Care should be taken that ATOMIC_FORCEON is only used when it is
     known that interrupts are enabled before the block's execution or
@@ -290,7 +291,8 @@
     This is a possible parameter for NONATOMIC_BLOCK. When used, it
     will cause the NONATOMIC_BLOCK to force the state of the SREG
     register on exit, disabling the Global Interrupt Status flag
-    bit. This saves on flash space as the previous value of the SREG
+    bit.  This saves a small amout of flash space, a register, and one
+    or more processor cycles, since the previous value of the SREG
     register does not need to be saved at the start of the block.
 
     Care should be taken that NONATOMIC_FORCEOFF is only used when it




reply via email to

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