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

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

[avr-libc-dev] [bug #28881] nop() macro for NOP instruction


From: Soren Jorvang
Subject: [avr-libc-dev] [bug #28881] nop() macro for NOP instruction
Date: Fri, 12 Feb 2010 20:14:56 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10

URL:
  <http://savannah.nongnu.org/bugs/?28881>

                 Summary: nop() macro for NOP instruction
                 Project: AVR C Runtime Library
            Submitted by: soren
            Submitted on: Fri 12 Feb 2010 08:14:55 PM GMT
                Category: Library
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 90%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.6.7
           Fixed Release: None

    _______________________________________________________

Details:

The special instructions CLI/SEI/SLEEP/WDR each have a convenient macro to
allow their direct use in C.

This patch adds NOP to that list as it can be useful as e.g. a write/read
barrier without any side effects.

util/delay_basic.h as used in the patch may not be the ideal place for it,
but I couldn't find a better, more central place for it in include/avr.

The BREAK instruction added to newer AVR's should probably also have such a
convenience macro added. Again, I am not sure where I think the best place for
it would be or if it should be called something other than just break() to
avoid any confusion with the break keyword.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 12 Feb 2010 08:14:55 PM GMT  Name: delay_basic.h.diff  Size: 586B  
By: soren

<http://savannah.nongnu.org/bugs/download.php?file_id=19690>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?28881>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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