> -----Original Message-----
> From: Philipp Claves [mailto:cla...@budelmann-elektronik.com]
> Sent: Friday, February 27, 2015 5:45 PM
> To: avr-libc-dev@nongnu.org
> Cc: Sivanupandi, Pitchumani
> Subject: Re: [avr-libc-dev] correction in xmega wdt_enable/ wdt_enable
> 
> 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.

The errors were corrected. Trunk should build fine.

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

Reply via email to