* device/lib/Makefile.in: removed comment line with model-pic16,
[fw/sdcc] / device / lib / pic16 / libdev / pic18f452.c
1
2 /*
3  * pic18f452.c - PIC18F452 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$
12  *
13  */
14
15 #include <pic18f452.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 0xf83 PORTD;
27 volatile __PORTDbits_t at 0xf83 PORTDbits;
28
29 sfr at 0xf84 PORTE;
30 volatile __PORTEbits_t at 0xf84 PORTEbits;
31
32 sfr at 0xf89 LATA;
33 volatile __LATAbits_t at 0xf89 LATAbits;
34
35 sfr at 0xf8a LATB;
36 volatile __LATBbits_t at 0xf8a LATBbits;
37
38 sfr at 0xf8b LATC;
39 volatile __LATCbits_t at 0xf8b LATCbits;
40
41 sfr at 0xf8c LATD;
42 volatile __LATDbits_t at 0xf8c LATDbits;
43
44 sfr at 0xf8d LATE;
45 volatile __LATEbits_t at 0xf8d LATEbits;
46
47 sfr at 0xf92 TRISA;
48 volatile __TRISAbits_t at 0xf92 TRISAbits;
49
50 sfr at 0xf93 TRISB;
51 volatile __TRISBbits_t at 0xf93 TRISBbits;
52
53 sfr at 0xf94 TRISC;
54 volatile __TRISCbits_t at 0xf94 TRISCbits;
55
56 sfr at 0xf95 TRISD;
57 volatile __TRISDbits_t at 0xf95 TRISDbits;
58
59 sfr at 0xf96 TRISE;
60 volatile __TRISEbits_t at 0xf96 TRISEbits;
61
62 sfr at 0xf9d PIE1;
63 volatile __PIE1bits_t at 0xf9d PIE1bits;
64
65 sfr at 0xf9e PIR1;
66 volatile __PIR1bits_t at 0xf9e PIR1bits;
67
68 sfr at 0xf9f IPR1;
69 volatile __IPR1bits_t at 0xf9f IPR1bits;
70
71 sfr at 0xfa0 PIE2;
72 volatile __PIE2bits_t at 0xfa0 PIE2bits;
73
74 sfr at 0xfa1 PIR2;
75 volatile __PIR2bits_t at 0xfa1 PIR2bits;
76
77 sfr at 0xfa2 IPR2;
78 volatile __IPR2bits_t at 0xfa2 IPR2bits;
79
80 sfr at 0xfa6 EECON1;
81 volatile __EECON1bits_t at 0xfa6 EECON1bits;
82
83 sfr at 0xfa7 EECON2;
84 sfr at 0xfa8 EEDATA;
85 sfr at 0xfa9 EEADR;
86 sfr at 0xfab RCSTA;
87 volatile __RCSTAbits_t at 0xfab RCSTAbits;
88
89 sfr at 0xfac TXSTA;
90 volatile __TXSTAbits_t at 0xfac TXSTAbits;
91
92 sfr at 0xfad TXREG;
93 sfr at 0xfae RCREG;
94 sfr at 0xfaf SPBRG;
95 sfr at 0xfb1 T3CON;
96 volatile __T3CONbits_t at 0xfb1 T3CONbits;
97
98 sfr at 0xfb2 TMR3L;
99 sfr at 0xfb3 TMR3H;
100 sfr at 0xfba CCP2CON;
101 volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
102
103 sfr at 0xfbb CCPR2L;
104 sfr at 0xfbc CCPR2H;
105 sfr at 0xfbd CCP1CON;
106 volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
107
108 sfr at 0xfbe CCPR1L;
109 sfr at 0xfbf CCPR1H;
110 sfr at 0xfc1 ADCON1;
111 volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
112
113 sfr at 0xfc2 ADCON0;
114 volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
115
116 sfr at 0xfc3 ADRESL;
117 sfr at 0xfc4 ADRESH;
118 sfr at 0xfc5 SSPCON2;
119 volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
120
121 sfr at 0xfc6 SSPCON1;
122 volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
123
124 sfr at 0xfc7 SSPSTAT;
125 volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
126
127 sfr at 0xfc8 SSPADD;
128 sfr at 0xfc9 SSPBUF;
129 sfr at 0xfca T2CON;
130 volatile __T2CONbits_t at 0xfca T2CONbits;
131
132 sfr at 0xfcb PR2;
133 sfr at 0xfcc TMR2;
134 sfr at 0xfcd T1CON;
135 volatile __T1CONbits_t at 0xfcd T1CONbits;
136
137 sfr at 0xfce TMR1L;
138 sfr at 0xfcf TMR1H;
139 sfr at 0xfd0 RCON;
140 volatile __RCONbits_t at 0xfd0 RCONbits;
141
142 sfr at 0xfd1 WDTCON;
143 volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
144
145 sfr at 0xfd2 LVDCON;
146 volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
147
148 sfr at 0xfd3 OSCCON;
149 volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
150
151 sfr at 0xfd5 T0CON;
152 sfr at 0xfd6 TMR0L;
153 sfr at 0xfd7 TMR0H;
154 sfr at 0xfd8 STATUS;
155 volatile __STATUSbits_t at 0xfd8 STATUSbits;
156
157 sfr at 0xfd9 FSR2L;
158 sfr at 0xfda FSR2H;
159 sfr at 0xfdb PLUSW2;
160 sfr at 0xfdc PREINC2;
161 sfr at 0xfdd POSTDEC2;
162 sfr at 0xfde POSTINC2;
163 sfr at 0xfdf INDF2;
164 sfr at 0xfe0 BSR;
165 sfr at 0xfe1 FSR1L;
166 sfr at 0xfe2 FSR1H;
167 sfr at 0xfe3 PLUSW1;
168 sfr at 0xfe4 PREINC1;
169 sfr at 0xfe5 POSTDEC1;
170 sfr at 0xfe6 POSTINC1;
171 sfr at 0xfe7 INDF1;
172 sfr at 0xfe8 WREG;
173 sfr at 0xfe9 FSR0L;
174 sfr at 0xfea FSR0H;
175 sfr at 0xfeb PLUSW0;
176 sfr at 0xfec PREINC0;
177 sfr at 0xfed POSTDEC0;
178 sfr at 0xfee POSTINC0;
179 sfr at 0xfef INDF0;
180 sfr at 0xff0 INTCON3;
181 volatile __INTCON3bits_t at 0xff0 INTCON3bits;
182
183 sfr at 0xff1 INTCON2;
184 volatile __INTCON2bits_t at 0xff1 INTCON2bits;
185
186 sfr at 0xff2 INTCON;
187 volatile __INTCONbits_t at 0xff2 INTCONbits;
188
189 sfr at 0xff3 PRODL;
190 sfr at 0xff4 PRODH;
191 sfr at 0xff5 TABLAT;
192 sfr at 0xff6 TBLPTRL;
193 sfr at 0xff7 TBLPTRH;
194 sfr at 0xff8 TBLPTRU;
195 sfr at 0xff9 PCL;
196 sfr at 0xffa PCLATH;
197 sfr at 0xffb PCLATU;
198 sfr at 0xffc STKPTR;
199 volatile __STKPTRbits_t at 0xffc STKPTRbits;
200
201 sfr at 0xffd TOSL;
202 sfr at 0xffe TOSH;
203 sfr at 0xfff TOSU;
204
205