This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
watchdog_lpc2xxx.cxx
- From: Sergei Gavrikov <w3sg at SoftHome dot net>
- To: ecos-patches at ecos dot sourceware dot org
- Date: Sun, 19 Aug 2007 20:42:36 +0300
- Subject: watchdog_lpc2xxx.cxx
Hello
This makes to work lpc2xxx HW watchdog in WDINT mode as we could expect.
Sergei
diff -ur devs/watchdog/arm/lpc2xxx/current/ChangeLog devs/watchdog/arm/lpc2xxx/current/ChangeLog.new
--- devs/watchdog/arm/lpc2xxx/current/ChangeLog
+++ devs/watchdog/arm/lpc2xxx/current/ChangeLog.new
@@ -1,3 +1,8 @@
+2007-08-19 Sergei Gavrikov <sg@sgs.gomel.by>
+
+ * src/watchdog_lpc2xxx.cxx: Fixed to work properly in WDINT mode
+ (tests/watchdog.cxx).
+
2004-10-04 Jani Monoses <jani@iv.ro>
* Added watchdog driver for ARM LPC2XXX based on the AT91 code.
diff -ur devs/watchdog/arm/lpc2xxx/current/src/watchdog_lpc2xxx.cxx devs/watchdog/arm/lpc2xxx/current/src/watchdog_lpc2xxx.cxx.new
--- devs/watchdog/arm/lpc2xxx/current/src/watchdog_lpc2xxx.cxx
+++ devs/watchdog/arm/lpc2xxx/current/src/watchdog_lpc2xxx.cxx.new
@@ -120,7 +120,8 @@
//==========================================================================
-static Cyg_Interrupt wdint(
+static CYGBLD_ATTRIB_INIT_PRI(CYG_INIT_DRIVERS)
+ Cyg_Interrupt wdint(
CYGNUM_HAL_INTERRUPT_WD,
INT_PRIO,
0,
@@ -138,7 +139,6 @@
wd = this;
resolution = RESOLUTION;
- wdint.configure_interrupt(CYGNUM_HAL_INTERRUPT_WD, false, true);
wdint.attach();
wdint.acknowledge_interrupt(CYGNUM_HAL_INTERRUPT_WD);
wdint.unmask_interrupt(CYGNUM_HAL_INTERRUPT_WD);