]> git.gag.com Git - fw/sdcc/commitdiff
* device/include/mcs51reg.h: fixed bug 842007
authormaartenbrock <maartenbrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 22 Mar 2005 16:40:25 +0000 (16:40 +0000)
committermaartenbrock <maartenbrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 22 Mar 2005 16:40:25 +0000 (16:40 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3705 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
device/include/mcs51reg.h

index a9c382d0366d7f4482a618796df408de2ff13dd5..5f8527659be3716bc0a518678892ce1dd6bd55cd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
+
+       * device/include/mcs51reg.h: fixed bug 842007
+
 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
 
        * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
index 3826dfdb1b84f1ddeaf0254fb424928cda9d3556..b1054ca099b0fbf39ea5d1358194e128b7e4410f 100644 (file)
@@ -3046,14 +3046,14 @@ sfr at 0xA9 IP0         ; // interrupt priority register SAB80515 specific
 #ifdef IP0__x__LPS1__LPT2__LPS0__LPT1__LPX1__LPT0__LPX0
 #undef IP0__x__LPS1__LPT2__LPS0__LPT1__LPX1__LPT0__LPX0
 sfr at 0xB8 IP0         ; // interrupt priority register DS89C420 specific
-// Not directly accessible IP0 bits
-#define LPX0        0x01
-#define LPT0        0x02
-#define LPX1        0x04
-#define LPT1        0x08
-#define LPS0        0x10
-#define LPT2        0x20
-#define LPS1        0x40
+// Bit registers
+sbit at 0xB8 LPX0       ;
+sbit at 0xB9 LPT0       ;
+sbit at 0xBA LPX1       ;
+sbit at 0xBB LPT1       ;
+sbit at 0xBC LPS0       ;
+sbit at 0xBD LPT2       ;
+sbit at 0xBE LPS1       ;
 #endif
 
 #ifdef IP1__x__x__IP1_5__IP1_4__IP1_3__IP1_2__IP1_1__IP1_0
@@ -3071,14 +3071,14 @@ sfr at 0xB9 IP1         ; // interrupt priority register SAB80515 specific
 #ifdef IP1__x__MPS1__MPT2__MPS0__MPT1__MPX1__MPT0__MPX0
 #undef IP1__x__MPS1__MPT2__MPS0__MPT1__MPX1__MPT0__MPX0
 sfr at 0xB1 IP1         ; // interrupt priority register DS89C420 specific
-// Not directly accessible IP0 bits
-#define LPX0        0x01
-#define LPT0        0x02
-#define LPX1        0x04
-#define LPT1        0x08
-#define LPS0        0x10
-#define LPT2        0x20
-#define LPS1        0x40
+// Not directly accessible IP1 bits
+#define MPX0        0x01
+#define MPT0        0x02
+#define MPX1        0x04
+#define MPT1        0x08
+#define MPS0        0x10
+#define MPT2        0x20
+#define MPS1        0x40
 #endif
 
 #ifdef IP1__PT2__PCM2__PCM1__PCM0__PCT3__PCT2__PCT1__PCT0
@@ -4190,7 +4190,6 @@ sfr at 0xEE STE         ; // Set enable, P80C552 specific
 #define TG47        0x80
 #endif
 
-
 #ifdef SYSCON
 #undef SYSCON
 sfr at 0xB1 SYSCON      ; // XRAM Controller Access Control
@@ -4487,6 +4486,17 @@ sfr at 0x91 XPAGE       ; // Page Address Register for Extended On-Chip Ram - In
 #define WDI_VECTOR     12       /* 0x63 */
 #endif
 
+#ifdef MICROCONTROLLER_DS89C420
+#define TF2_VECTOR      5       /* 0x2B */
+#define PFI_VECTOR      6       /* 0x33 */
+#define SIO1_VECTOR     7       /* 0x3B */
+#define IE2_VECTOR      8       /* 0x43 */
+#define IE3_VECTOR      9       /* 0x4B */
+#define IE4_VECTOR     10       /* 0x53 */
+#define IE5_VECTOR     11       /* 0x5B */
+#define WDI_VECTOR     12       /* 0x63 */
+#endif
+
 #ifdef MICROCONTROLLER_DS8XC520
 #define TF2_VECTOR      5       /* 0x2B */
 #define PFI_VECTOR      6       /* 0x33 */