[Top][All Lists]

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

[avr-libc-dev] [bug #43804] Wdt for XMega. Syntax errors in the code.

From: Igor
Subject: [avr-libc-dev] [bug #43804] Wdt for XMega. Syntax errors in the code.
Date: Fri, 12 Dec 2014 11:50:26 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0


                 Summary: Wdt for XMega. Syntax errors in the code.
                 Project: AVR C Runtime Library
            Submitted by: igvek
            Submitted on: Птн 12 Дек 2014 11:50:25
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.8.0
           Fixed Release: None



In definition wdt_enable() and wdt_disable():
1. Operands must be in brackets (see patch).
2. After "__asm__ ... ()" must be ";" (see patch).
3. In wdt_disable(), after "do { ... )" must be ";\ while(0)" (see patch).
4. In comment (for doxygen), for XMega, you must specify that the "timeout"
(in wdt_enable()) should not be WDTO_xxx and structure of WDT_PER_t (the
number of shifted left by 2). (cant write it myself, do not know much

Due "timeout" turns out not portable code. Wanted to add "WTDO_" but delays do
not coincide with supported XMega.

avr-libc 1.8.1
g++ 4.9.2 


File Attachments:

Date: Птн 12 Дек 2014 11:50:25  Name: wdt.h.patch  Size: 2kB   By: igvek



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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