avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] correction in xmega wdt_enable/ wdt_enable


From: Sivanupandi, Pitchumani
Subject: Re: [avr-libc-dev] correction in xmega wdt_enable/ wdt_enable
Date: Thu, 5 Mar 2015 11:45:18 +0000

> -----Original Message-----
> From: Philipp Claves [mailto:address@hidden
> Sent: Friday, February 27, 2015 5:45 PM
> To: address@hidden
> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]