This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
h8300 watchdog error fix
- From: Yoshinori Sato <ysato at users dot sourceforge dot jp>
- To: ecos-patches at sources dot redhat dot com
- Date: Fri, 28 Jan 2005 00:19:43 +0900
- Subject: h8300 watchdog error fix
please commit.
Index: devs/watchdog/h8300/h8300h/current/ChangeLog
===================================================================
RCS file: /cvsroot/ecos-h8/ecos/packages/devs/watchdog/h8300/h8300h/current/ChangeLog,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- devs/watchdog/h8300/h8300h/current/ChangeLog 24 Nov 2002 14:43:18 -0000 1.1.1.1
+++ devs/watchdog/h8300/h8300h/current/ChangeLog 27 Jan 2005 14:09:34 -0000 1.2
@@ -1,3 +1,7 @@
+2005-01-27 Yoshinori Sato <ysato@users.sourceforge.jp>
+
+ * src/watchdog_h8300.cxx: add include header
+
2002-08-14 Yoshinori Sato <qzb04471@nifty.ne.jp>
* New package.
Index: devs/watchdog/h8300/h8300h/current/src/watchdog_h8300h.cxx
===================================================================
RCS file: /cvsroot/ecos-h8/ecos/packages/devs/watchdog/h8300/h8300h/current/src/watchdog_h8300h.cxx,v
retrieving revision 1.1.1.2
retrieving revision 1.5
diff -u -r1.1.1.2 -r1.5
--- devs/watchdog/h8300/h8300h/current/src/watchdog_h8300h.cxx 24 Nov 2002 14:43:18 -0000 1.1.1.2
+++ devs/watchdog/h8300/h8300h/current/src/watchdog_h8300h.cxx 27 Jan 2005 14:09:34 -0000 1.5
@@ -56,6 +56,7 @@
#include <cyg/infra/cyg_trac.h> // tracing macros
+#include <cyg/hal/hal_arch.h>
#include <cyg/hal/hal_io.h> // IO register access
#include <cyg/hal/mod_regs_wdt.h> // watchdog register definitions
@@ -90,8 +91,7 @@
HAL_WRITE_UINT16(CYGARC_TCSR,CYGARC_TCNT_MAGIC);
//Start WDT
HAL_WRITE_UINT16(CYGARC_TCSR,CYGARC_TCSR_MAGIC|
- CYGARC_WDT_WT|CYGARC_WDT_TME|CYGARC_WDT_CKS);
-
+ CYGARC_WDT_WT|CYGARC_WDT_TME|CYGARC_WDT_CKS);
CYG_REPORT_RETURN();
}
--
Yoshinori Sato
<ysato@users.sourceforge.jp>