This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
watchdog_lpc2xxx.cxx.patch
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: eCos discuss list <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 3 Sep 2008 20:36:13 +0300
- Subject: [ECOS] watchdog_lpc2xxx.cxx.patch
Hello
CYG_HAL_ARM_LPC2XXX_PCLK() macro had been removed from lpc2xxx_misc.h in
the latest revision, but, lpc2xxx's watchdog driver does not know about.
So, it's not possible to build the watchdog driver, the patch fixs this.
Sergei
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/watchdog/arm/lpc2xxx/current/ChangeLog,v
retrieving revision 1.2
diff -u -r1.2 ChangeLog
--- ChangeLog 24 Aug 2007 14:14:34 -0000 1.2
+++ ChangeLog 3 Sep 2008 17:24:34 -0000
@@ -1,3 +1,9 @@
+2008-09-03 Sergei Gavrikov <sergei.gavrikov@gmail.com>
+
+ * src/watchdog_lpc2xxx.cxx: Since CYG_HAL_ARM_LPC2XXX_PCLK()
+ macro had been gone away from lpc2xxx_misc.h, it is replaced by
+ an equal CYGNUM_HAL_ARM_LPC2XXX_PCLK constant.
+
2007-08-19 Sergei Gavrikov <sg@sgs.gomel.by>
* src/watchdog_lpc2xxx.cxx: Fixed to work properly in WDINT mode.
Index: src/watchdog_lpc2xxx.cxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/watchdog/arm/lpc2xxx/current/src/watchdog_lpc2xxx.cxx,v
retrieving revision 1.2
diff -u -r1.2 watchdog_lpc2xxx.cxx
--- src/watchdog_lpc2xxx.cxx 24 Aug 2007 14:14:35 -0000 1.2
+++ src/watchdog_lpc2xxx.cxx 3 Sep 2008 17:24:34 -0000
@@ -71,7 +71,7 @@
//==========================================================================
-#define TICKS (CYG_HAL_ARM_LPC2XXX_PCLK()/4000 * \
+#define TICKS (CYGHAL_ARM_LPC2XXX_PCLK/4000 * \
CYGNUM_DEVS_WATCHDOG_ARM_LPC2XXX_DESIRED_TIMEOUT_MS)
#define RESOLUTION CYGNUM_DEVS_WATCHDOG_ARM_LPC2XXX_DESIRED_TIMEOUT_MS*1000000
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss