On 04/06/2012 06:03 AM, Omar Choudary wrote:
That is strange, since the XMEGA supports 11 different timeouts, from 8ms to 8s.
Even worst perhaps, the values are incorrect and most probably the
registers used as well.
That is, for the xmega (from the datasheet) the encodings are
different than for the previous AVRs.
For example 2S is encoded as "1000" (i.e. 8) while for an AT90USB1287
the value is "0111" (i.e. 7).
I can confirm that the xmega WDT stuff is very broken, I've resorted to
not only figuring the register values myself but ditching the entire
wdt_enable/disable code and just doing it myself with the CCP register
and all. I'd fix it if I had time, but.... ;-(
_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev