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

 
 

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

Submitted by:  Igor Balakin <igvek>
Submitted on:  Fri 12 Dec 2014 11:50:25 AM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: InvalidPercent Complete: 0%
Assigned to: NoneOpen/Closed: Closed
Release: 1.8.0Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by pitchumani (Updated the item)
  • -unavailable- added by igvek (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 06 Jan 2015 02:12:07 PM UTCpitchumaniStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Fri 12 Dec 2014 11:50:25 AM UTCigvekAttached File-=>Added wdt.h.patch, #32652

    Back to the top


    Powered by Savane 3.1-cleanup1