1 /*------------------------------------------------------------------------- 2 at89x051.h - Register Declarations for Atmel AT89C1051, AT89C2051 and AT89C4051 Processors 3 based on 8051.h (8051.h must be in mcs51 subdirectory) 4 KEIL C compatible definitions are included 5 6 Copyright (C) 2000, Bela Torok / bela.torok@kssg.ch 7 8 This library is free software; you can redistribute it and/or modify it 9 under the terms of the GNU General Public License as published by the 10 Free Software Foundation; either version 2, or (at your option) any 11 later version. 12 13 This library is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this library; see the file COPYING. If not, write to the 20 Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, 21 MA 02110-1301, USA. 22 23 As a special exception, if you link this library with other files, 24 some of which are compiled with SDCC, to produce an executable, 25 this library does not by itself cause the resulting executable to 26 be covered by the GNU General Public License. This exception does 27 not however invalidate any other reasons why the executable file 28 might be covered by the GNU General Public License. 29 -------------------------------------------------------------------------*/ 30 31 #ifndef AT89Cx051_H 32 #define AT89Cx051_H 33 34 #include <8051.h> /* load difinitions for the 8051 core */ 35 36 #ifdef REG8051_H 37 #undef REG8051_H 38 #endif 39 40 /* remove non existing registers */ 41 42 #ifdef P0 /* P0 is defined in <8051.h> */ 43 #undef P0 /* AT89Cx051 has no P0 */ 44 #undef P0_0 /* undefine bit addressable registers in P0 */ 45 #undef P0_1 46 #undef P0_2 47 #undef P0_3 48 #undef P0_4 49 #undef P0_5 50 #undef P0_6 51 #undef P0_7 52 #endif 53 54 #ifdef P2 /* P2 is defined in <8051.h> */ 55 #undef P2 /* AT89Cx051 has no P2 */ 56 #undef P2_0 /* undefine bit addressable registers in P2 */ 57 #undef P2_1 58 #undef P2_2 59 #undef P2_3 60 #undef P2_4 61 #undef P2_5 62 #undef P2_6 63 #undef P2_7 64 #endif 65 66 #endif 67 68