#ifdev REG8051_H bug corrected
authorbela <bela@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 22 Mar 2001 13:11:22 +0000 (13:11 +0000)
committerbela <bela@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 22 Mar 2001 13:11:22 +0000 (13:11 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@703 4a8a32a2-be11-0410-ad9d-d568d2c75423

device/include/8052.h
device/include/at89x051.h

index 458e7d678090047318a4442cda895f0c07940322..cefe2ef7edf5545975c8e34387a39df65daf4cb1 100755 (executable)
    what you give them.   Help stamp out software-hoarding!
 -------------------------------------------------------------------------*/
 
+#ifndef REG8052_H
+#define REG8052_H
+
 #include <8051.h>     /* load difinitions for the 8051 core */
 
 #ifdef REG8051_H
 #undef REG8051_H
 #endif
 
-#ifndef REG8052_H
-#define REG8052_H
-
 /* define 8052 specific registers only */
 
 /* T2CON */
index ec297611dd1d230d6d84e607a2c07b9797e76491..2efb0e50676df4a71a88211ab3c3b689843783b8 100755 (executable)
    what you give them.   Help stamp out software-hoarding!
 -------------------------------------------------------------------------*/
 
+#ifndef AT89Cx051_H
+#define AT89Cx051_H
+
 #include <8051.h>     /* load difinitions for the 8051 core */
 
 #ifdef REG8051_H
 #undef REG8051_H
 #endif
 
-#ifndef AT89Cx051_H
-#define AT89Cx051_H
-
 /* remove non existing registers */
 
-#ifdef P0                                /* P0 is defined in <mcs51/8051.h> */
+#ifdef P0                                /* P0 is defined in <8051.h> */
 #undef P0                                /* AT89Cx051 has no P0 */
 #undef P0_0                              /* undefine bit addressable registers in P0 */
 #undef P0_1
@@ -49,7 +49,7 @@
 #undef P0_7
 #endif
 
-#ifdef P2                                /* P2 is defined in <mcs51/8051.h> */
+#ifdef P2                                /* P2 is defined in <8051.h> */
 #undef P2                                /* AT89Cx051 has no P2 */
 #undef P2_0                              /* undefine bit addressable registers in P2 */
 #undef P2_1