changeset 2422:a703e82c8115

* src/watchdog_lpc2xxx.cxx: Fixed to work properly in WDINT mode.
author asl
date Fri, 24 Aug 2007 14:14:34 +0000
parents 51899a482fdd
children 82aabda670f8
files packages/devs/watchdog/arm/lpc2xxx/current/ChangeLog packages/devs/watchdog/arm/lpc2xxx/current/src/watchdog_lpc2xxx.cxx
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/watchdog/arm/lpc2xxx/current/ChangeLog
+++ b/packages/devs/watchdog/arm/lpc2xxx/current/ChangeLog
@@ -1,3 +1,7 @@
+2007-08-19  Sergei Gavrikov  <sg@sgs.gomel.by>
+
+	* src/watchdog_lpc2xxx.cxx: Fixed to work properly in WDINT mode.
+	
 2004-10-04 Jani Monoses <jani@iv.ro>
 
 	* Added watchdog driver for ARM LPC2XXX based on the AT91 code.
--- a/packages/devs/watchdog/arm/lpc2xxx/current/src/watchdog_lpc2xxx.cxx
+++ b/packages/devs/watchdog/arm/lpc2xxx/current/src/watchdog_lpc2xxx.cxx
@@ -120,7 +120,8 @@ isr(cyg_vector vector, CYG_ADDRWORD data
 
 //==========================================================================
 
-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 @@ Cyg_Watchdog::init_hw(void)
 
   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);