[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] correction in xmega wdt_enable/ wdt_enable
From: |
Philipp Claves |
Subject: |
Re: [avr-libc-dev] correction in xmega wdt_enable/ wdt_enable |
Date: |
Fri, 27 Feb 2015 13:14:49 +0100 |
User-agent: |
KMail/4.14.5 (Linux/3.18.6-1-ARCH; KDE/4.14.5; x86_64; ; ) |
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
address@hidden
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [avr-libc-dev] correction in xmega wdt_enable/ wdt_enable,
Philipp Claves <=