This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Updated v850_common.h for V850/SA1


When working with the V850/SA1 variant I came across a problem concerning
name and adress of some timer registers. After looking in a new edition
of the SA1 user manual (http://www.nec.de/web_cd1/pdf/U12768EJ3V0UMJ1.PDF)
I found some "inconsistencies". Below is a patch for correcting this.

BTW:
The register names V850_REG_WTNIIC (used in var_intr.h) and V850_REG_SRIC0
(used in hal_diag.c) are not conform to the NEC register names. Perhaps
you should correct them too.

Regards,
Wolfram

Index: packages/hal/v85x/v850/current/include/v850_common.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/v85x/v850/current/include/v850_common.h,v
retrieving revision 1.3
diff -u -r1.3 v850_common.h
--- v850_common.h       2001/04/06 17:20:37     1.3
+++ v850_common.h       2001/06/21 14:28:17
@@ -167,19 +167,19 @@
 #define V850_REG_CR00     0xFFFFF202
 #define V850_REG_CR01     0xFFFFF204
 #define V850_REG_PRM0     0xFFFFF206
-#define V850_REG_PRM00    0xFFFFF206
 #define V850_REG_TMC0     0xFFFFF208
 #define V850_REG_CRC0     0xFFFFF20A
 #define V850_REG_TOC0     0xFFFFF20C
+#define V850_REG_PRM01    0xFFFFF20E

 #define V850_REG_TM1      0xFFFFF210
 #define V850_REG_CR10     0xFFFFF212
 #define V850_REG_CR11     0xFFFFF214
 #define V850_REG_PRM1     0xFFFFF216
-#define V850_REG_PRM10    0xFFFFF216
 #define V850_REG_TMC1     0xFFFFF218
 #define V850_REG_CRC1     0xFFFFF21A
 #define V850_REG_TOC1     0xFFFFF21C
+#define V850_REG_PRM11    0xFFFFF21E

 #define V850_REG_TM2      0xFFFFF240
 #define V850_REG_CR20     0xFFFFF242
@@ -187,11 +187,14 @@
 #define V850_REG_TMC2     0xFFFFF246
 #define V850_REG_TM23     0xFFFFF24A
 #define V850_REG_CR23     0xFFFFF24C
+#define V850_REG_TCL21    0xFFFFF24E

+
 #define V850_REG_TM3      0xFFFFF250
 #define V850_REG_CR30     0xFFFFF252
 #define V850_REG_TCL3     0xFFFFF254
 #define V850_REG_TMC3     0xFFFFF256
+#define V850_REG_TCL31    0xFFFFF25E

 #define V850_REG_TM4      0xFFFFF260
 #define V850_REG_CR40     0xFFFFF262
@@ -199,11 +202,13 @@
 #define V850_REG_TMC4     0xFFFFF266
 #define V850_REG_TM45     0xFFFFF26A
 #define V850_REG_CR45     0xFFFFF26C
+#define V850_REG_TCL41    0xFFFFF26E

 #define V850_REG_TM5      0xFFFFF270
 #define V850_REG_CR50     0xFFFFF272
 #define V850_REG_TCL5     0xFFFFF274
 #define V850_REG_TMC5     0xFFFFF276
+#define V850_REG_TCL51    0xFFFFF27E

 #define V850_REG_SIO0     0xFFFFF2A0
 #define V850_REG_CSIM0    0xFFFFF2A2
@@ -223,7 +228,6 @@
 #define V850_REG_TXS0     0xFFFFF306
 #define V850_REG_RXB0     0xFFFFF308
 #define V850_REG_BRGMC0   0xFFFFF30E
-#define V850_REG_BRGMC00  0xFFFFF30E
 
 #define V850_REG_ASIM1    0xFFFFF310
 #define V850_REG_ASIS1    0xFFFFF312
@@ -231,13 +235,14 @@
 #define V850_REG_TXS1     0xFFFFF316
 #define V850_REG_RXB1     0xFFFFF318
 #define V850_REG_BRGMC1   0xFFFFF31E
-#define V850_REG_BRGMC10  0xFFFFF31E
+#define V850_REG_BRGMC01  0xFFFFF320

 #define V850_REG_IICC0    0xFFFFF340
 #define V850_REG_IICS0    0xFFFFF342
 #define V850_REG_IICCL0   0xFFFFF344
 #define V850_REG_SVA0     0xFFFFF346
 #define V850_REG_IIC0     0xFFFFF348
+#define V850_REG_IICX0    0xFFFFF34A

 #define V850_REG_WTM      0xFFFFF360
 #define V850_REG_OSTS     0xFFFFF380


--
Wolfram 'L.A.' Kattanek     Institut fuer Mikroelektronik- und
Email:       LA@imms.de     Mechatronik-Systeme (IMMS) gGmbH     
Tel: +49 3677 / 6783-55     Langewiesener Str. 22
Fax: +49 3677 / 6783-38     98693 Ilmenau / Germany

-------------------------------------------------
This mail sent through IMP: imp.imms.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]