Imported Upstream version 2.9.0
[debian/cc1111] / device / lib / pic16 / libdev / pic18f252.c
1
2 /*
3  * pic18f252.c - PIC18F252 Device Library Source
4  *
5  * This file is part of the GNU PIC Library.
6  *
7  * January, 2004
8  * The GNU PIC Library is maintained by,
9  *      Vangelis Rokas <vrokas@otenet.gr>
10  *
11  * $Id: pic18f252.c 3765 2005-05-18 20:32:06Z tecodev $
12  *
13  */
14
15 #include <pic18f252.h>
16
17 __sfr __at (0xf80) PORTA;
18 volatile __PORTAbits_t __at (0xf80) PORTAbits;
19
20 __sfr __at (0xf81) PORTB;
21 volatile __PORTBbits_t __at (0xf81) PORTBbits;
22
23 __sfr __at (0xf82) PORTC;
24 volatile __PORTCbits_t __at (0xf82) PORTCbits;
25
26 __sfr __at (0xf89) LATA;
27 volatile __LATAbits_t __at (0xf89) LATAbits;
28
29 __sfr __at (0xf8a) LATB;
30 volatile __LATBbits_t __at (0xf8a) LATBbits;
31
32 __sfr __at (0xf8b) LATC;
33 volatile __LATCbits_t __at (0xf8b) LATCbits;
34
35 __sfr __at (0xf92) TRISA;
36 volatile __TRISAbits_t __at (0xf92) TRISAbits;
37
38 __sfr __at (0xf93) TRISB;
39 volatile __TRISBbits_t __at (0xf93) TRISBbits;
40
41 __sfr __at (0xf94) TRISC;
42 volatile __TRISCbits_t __at (0xf94) TRISCbits;
43
44 __sfr __at (0xf9d) PIE1;
45 volatile __PIE1bits_t __at (0xf9d) PIE1bits;
46
47 __sfr __at (0xf9e) PIR1;
48 volatile __PIR1bits_t __at (0xf9e) PIR1bits;
49
50 __sfr __at (0xf9f) IPR1;
51 volatile __IPR1bits_t __at (0xf9f) IPR1bits;
52
53 __sfr __at (0xfa0) PIE2;
54 volatile __PIE2bits_t __at (0xfa0) PIE2bits;
55
56 __sfr __at (0xfa1) PIR2;
57 volatile __PIR2bits_t __at (0xfa1) PIR2bits;
58
59 __sfr __at (0xfa2) IPR2;
60 volatile __IPR2bits_t __at (0xfa2) IPR2bits;
61
62 __sfr __at (0xfa6) EECON1;
63 volatile __EECON1bits_t __at (0xfa6) EECON1bits;
64
65 __sfr __at (0xfa7) EECON2;
66 __sfr __at (0xfa8) EEDATA;
67 __sfr __at (0xfa9) EEADR;
68 __sfr __at (0xfab) RCSTA;
69 volatile __RCSTAbits_t __at (0xfab) RCSTAbits;
70
71 __sfr __at (0xfac) TXSTA;
72 volatile __TXSTAbits_t __at (0xfac) TXSTAbits;
73
74 __sfr __at (0xfad) TXREG;
75 __sfr __at (0xfae) RCREG;
76 __sfr __at (0xfaf) SPBRG;
77 __sfr __at (0xfb1) T3CON;
78 volatile __T3CONbits_t __at (0xfb1) T3CONbits;
79
80 __sfr __at (0xfb2) TMR3L;
81 __sfr __at (0xfb3) TMR3H;
82 __sfr __at (0xfba) CCP2CON;
83 volatile __CCP2CONbits_t __at (0xfba) CCP2CONbits;
84
85 __sfr __at (0xfbb) CCPR2L;
86 __sfr __at (0xfbc) CCPR2H;
87 __sfr __at (0xfbd) CCP1CON;
88 volatile __CCP1CONbits_t __at (0xfbd) CCP1CONbits;
89
90 __sfr __at (0xfbe) CCPR1L;
91 __sfr __at (0xfbf) CCPR1H;
92 __sfr __at (0xfc1) ADCON1;
93 volatile __ADCON1bits_t __at (0xfc1) ADCON1bits;
94
95 __sfr __at (0xfc2) ADCON0;
96 volatile __ADCON0bits_t __at (0xfc2) ADCON0bits;
97
98 __sfr __at (0xfc3) ADRESL;
99 __sfr __at (0xfc4) ADRESH;
100 __sfr __at (0xfc5) SSPCON2;
101 volatile __SSPCON2bits_t __at (0xfc5) SSPCON2bits;
102
103 __sfr __at (0xfc6) SSPCON1;
104 volatile __SSPCON1bits_t __at (0xfc6) SSPCON1bits;
105
106 __sfr __at (0xfc7) SSPSTAT;
107 volatile __SSPSTATbits_t __at (0xfc7) SSPSTATbits;
108
109 __sfr __at (0xfc8) SSPADD;
110 __sfr __at (0xfc9) SSPBUF;
111 __sfr __at (0xfca) T2CON;
112 volatile __T2CONbits_t __at (0xfca) T2CONbits;
113
114 __sfr __at (0xfcb) PR2;
115 __sfr __at (0xfcc) TMR2;
116 __sfr __at (0xfcd) T1CON;
117 volatile __T1CONbits_t __at (0xfcd) T1CONbits;
118
119 __sfr __at (0xfce) TMR1L;
120 __sfr __at (0xfcf) TMR1H;
121 __sfr __at (0xfd0) RCON;
122 volatile __RCONbits_t __at (0xfd0) RCONbits;
123
124 __sfr __at (0xfd1) WDTCON;
125 volatile __WDTCONbits_t __at (0xfd1) WDTCONbits;
126
127 __sfr __at (0xfd2) LVDCON;
128 volatile __LVDCONbits_t __at (0xfd2) LVDCONbits;
129
130 __sfr __at (0xfd3) OSCCON;
131 volatile __OSCCONbits_t __at (0xfd3) OSCCONbits;
132
133 __sfr __at (0xfd5) T0CON;
134 volatile __T0CONbits_t __at (0xfd5) T0CONbits;
135
136 __sfr __at (0xfd6) TMR0L;
137 __sfr __at (0xfd7) TMR0H;
138 __sfr __at (0xfd8) STATUS;
139 volatile __STATUSbits_t __at (0xfd8) STATUSbits;
140
141 __sfr __at (0xfd9) FSR2L;
142 __sfr __at (0xfda) FSR2H;
143 __sfr __at (0xfdb) PLUSW2;
144 __sfr __at (0xfdc) PREINC2;
145 __sfr __at (0xfdd) POSTDEC2;
146 __sfr __at (0xfde) POSTINC2;
147 __sfr __at (0xfdf) INDF2;
148 __sfr __at (0xfe0) BSR;
149 __sfr __at (0xfe1) FSR1L;
150 __sfr __at (0xfe2) FSR1H;
151 __sfr __at (0xfe3) PLUSW1;
152 __sfr __at (0xfe4) PREINC1;
153 __sfr __at (0xfe5) POSTDEC1;
154 __sfr __at (0xfe6) POSTINC1;
155 __sfr __at (0xfe7) INDF1;
156 __sfr __at (0xfe8) WREG;
157 __sfr __at (0xfe9) FSR0L;
158 __sfr __at (0xfea) FSR0H;
159 __sfr __at (0xfeb) PLUSW0;
160 __sfr __at (0xfec) PREINC0;
161 __sfr __at (0xfed) POSTDEC0;
162 __sfr __at (0xfee) POSTINC0;
163 __sfr __at (0xfef) INDF0;
164 __sfr __at (0xff0) INTCON3;
165 volatile __INTCON3bits_t __at (0xff0) INTCON3bits;
166
167 __sfr __at (0xff1) INTCON2;
168 volatile __INTCON2bits_t __at (0xff1) INTCON2bits;
169
170 __sfr __at (0xff2) INTCON;
171 volatile __INTCONbits_t __at (0xff2) INTCONbits;
172
173 __sfr __at (0xff3) PRODL;
174 __sfr __at (0xff4) PRODH;
175 __sfr __at (0xff5) TABLAT;
176 __sfr __at (0xff6) TBLPTRL;
177 __sfr __at (0xff7) TBLPTRH;
178 __sfr __at (0xff8) TBLPTRU;
179 __sfr __at (0xff9) PCL;
180 __sfr __at (0xffa) PCLATH;
181 __sfr __at (0xffb) PCLATU;
182 __sfr __at (0xffc) STKPTR;
183 volatile __STKPTRbits_t __at (0xffc) STKPTRbits;
184
185 __sfr __at (0xffd) TOSL;
186 __sfr __at (0xffe) TOSH;
187 __sfr __at (0xfff) TOSU;
188
189