From dadb9065809fb28ce96031cecd736da5eaba3a4f Mon Sep 17 00:00:00 2001 From: bela Date: Thu, 22 Mar 2001 13:11:22 +0000 Subject: [PATCH] #ifdev REG8051_H bug corrected git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@703 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- device/include/8052.h | 6 +++--- device/include/at89x051.h | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/device/include/8052.h b/device/include/8052.h index 458e7d67..cefe2ef7 100755 --- a/device/include/8052.h +++ b/device/include/8052.h @@ -22,15 +22,15 @@ 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 */ diff --git a/device/include/at89x051.h b/device/include/at89x051.h index ec297611..2efb0e50 100755 --- a/device/include/at89x051.h +++ b/device/include/at89x051.h @@ -26,18 +26,18 @@ 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 */ +#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 */ +#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 -- 2.47.2