* device/include/stdarg.h: changed SDCC specific keywords to double
[fw/sdcc] / device / include / at89x051.h
1 /*-------------------------------------------------------------------------
2   Register Declarations for Atmel AT89C1051, AT89C2051 and AT89C4051 Processors
3
4    Written By - Bela Torok (august 2000)
5    bela.torokt@kssg.ch
6    based on 8051.h (8051.h must be in mcs51 subdirectory)
7
8    KEIL C compatible definitions are included
9
10    This program is free software; you can redistribute it and/or modify it
11    under the terms of the GNU General Public License as published by the
12    Free Software Foundation; either version 2, or (at your option) any
13    later version.
14
15    This program 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
18    GNU General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
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 -------------------------------------------------------------------------*/
28
29 #ifndef AT89Cx051_H
30 #define AT89Cx051_H
31
32 #include <8051.h>     /* load difinitions for the 8051 core */
33
34 #ifdef REG8051_H
35 #undef REG8051_H
36 #endif
37
38 /* remove non existing registers */
39
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 */
43 #undef P0_1
44 #undef P0_2
45 #undef P0_3
46 #undef P0_4
47 #undef P0_5
48 #undef P0_6
49 #undef P0_7
50 #endif
51
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 */
55 #undef P2_1
56 #undef P2_2
57 #undef P2_3
58 #undef P2_4
59 #undef P2_5
60 #undef P2_6
61 #undef P2_7
62 #endif
63
64 #endif
65