1 /*-------------------------------------------------------------------------
2 Register Declarations for Atmel AT89C1051, AT89C2051 and AT89C4051 Processors
4 Written By - Bela Torok (august 2000)
6 based on 8051.h (8051.h must be in mcs51 subdirectory)
8 KEIL C compatible definitions are included
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 2.1 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 In other words, you are welcome to use, share and improve this program.
25 You are forbidden to forbid anyone else to use, share and improve
26 what you give them. Help stamp out software-hoarding!
27 -------------------------------------------------------------------------*/
32 #include <8051.h> /* load difinitions for the 8051 core */
38 /* remove non existing registers */
40 #ifdef P0 /* P0 is defined in <8051.h> */
41 #undef P0 /* AT89Cx051 has no P0 */
42 #undef P0_0 /* undefine bit addressable registers in P0 */
52 #ifdef P2 /* P2 is defined in <8051.h> */
53 #undef P2 /* AT89Cx051 has no P2 */
54 #undef P2_0 /* undefine bit addressable registers in P2 */