In wdt_disable(), after "do { ... )" must be ";\ while(0)" (see patch).
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.
Fri 12 Dec 2014 12:50:25 PM CET
In definition wdt_enable() and wdt_disable():
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 #32652: wdt.h.patch
This issue was migrated from https://savannah.nongnu.org/bugs/?43804