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

                 Summary: Missing bit in include file
                 Project: AVR C Runtime Library
            Submitted by: arcanum
            Submitted on: Tue 12 Jan 2010 03:29:11 PM MST
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.6.7
           Fixed Release: None

    _______________________________________________________

Details:

>From WinAVR bug #2894839 (SourceForge):

The include file for the atmega16m1, atmega32m1, and atmega64m1 devices is
missing a bit in the definition for the DACON register. In Win-AVR version
20090313, the iom[16,32,64]m1.h includes have this register definition:
#define DACON _SFR_MEM8(0x90)
#define DAEN 0
#define DALA 2
#define DATS0 4
#define DATS1 5
#define DATS2 6
#define DAATE 7

The correct definition is this (DAOE added):
#define DACON _SFR_MEM8(0x90)
#define DAEN 0
#define DAOE 1
#define DALA 2
#define DATS0 4
#define DATS1 5
#define DATS2 6
#define DAATE 7

See section 21.4.1 in this PDF for the register definition:
http://www.atmel.com/dyn/resources/prod_documents/doc7647.pdf





    _______________________________________________________

Reply to this item at:

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

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



_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to