Hi,

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.

Please review and send your comments.

Regards,
Pitchumani

2014-05-14  Pitchumani Sivanupandi  <pitchuman...@atmel.com>

        * include/avr/wdt.h (wdt_enable): update wdt_enable for xmega to wait
        till sync finished (as per datasheet).
        (wdt_disable): Add wdt_disable for xmega devices.

Attachment: Xmega-wdt-enable-disable.patch
Description: Xmega-wdt-enable-disable.patch

_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to