Hello, On Wed, 14 May 2014 S, Pitchumani wrote: > As per datasheet, wdt_enable should wait until SYNCBUSY bit in STATUS > register is cleared. > Also the wdt_disable macro is not present for xmega.
> Attached patch corrects update wdt_enable macro and adds wdt_disable macro > for xmega devices. This patch breaks the build on existing XMega projects using wdt_enable() for me. On this line: wdt_enable(WDT_PER_1KCLK_gc); I now get the following compile error: error: expected '(' before 'CCP_IOREG_gc' wdt_enable(WDT_PER_1KCLK_gc); Environment: AVR-GCC: 4.9.2 AVR-Libc: 1.8.1 OS: Archlinux If i revert Xmega-wdt-enable-disable.patch, compiling works again. Regards, Philipp Claves -- Budelmann Elektronik GmbH Von-Renesse-Weg 60 48163 Münster Germany Tel. +49 (0)2501 9208440 Fax +49 (0)2501 5887024 cla...@budelmann-elektronik.com www.budelmann-elektronik.com General Managers: Dipl.-Kffr. Jeannine Budelmann, Dipl.-Ing. Christoph Budelmann, Ingénieur diplomé de l'Ecole nationale d'Electronique et de ses Applications Registered Office: Münster, Germany Registered Court: Münster HRB 12729 VAT Identification Number: DE 272 067 273 _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev