bugAVR C Runtime Library - Bugs: bug #43804, Wdt for XMega. Syntax errors in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #43804: Wdt for XMega. Syntax errors in the code.

Submitter:  Igor Balakin <igvek>
Submitted:  Fri 12 Dec 2014 11:50:25 AM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  Invalid Assigned to:  None
Percent Complete:  0% Open/Closed:  Closed
Release:  1.8.0 Fixed Release:  None

Fri 12 Dec 2014 02:21:09 PM UTC, comment #1: 

Sorry, in the svn version of the code is corrected.

Igor Balakin <igvek>
Fri 12 Dec 2014 11:50:25 AM UTC, original submission:  

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 English)


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

Igor Balakin <igvek>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #32652:  wdt.h.patch added by igvek (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pitchumani (Updated the item)
  • -email is unavailable- added by igvek (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-06 pitchumani StatusNone Invalid
        Open/ClosedOpen Closed
    2014-12-12 igvek Attached File- Added wdt.h.patch, #32652

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code