Prepare for SDCC 4.5.0 release.
[sdcc.git] / sdcc / device / non-free / lib / pic16 / libdev / pic18f85j90.c
blob246466812afd416c5c665a1db422e8095d7ebe45
1 /*
2 * This definitions of the PIC18F85J90 MCU.
4 * This file is part of the GNU PIC library for SDCC, originally
5 * created by Molnar Karoly <molnarkaroly@users.sf.net> 2016.
7 * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:23:36 UTC.
9 * SDCC is licensed under the GNU Public license (GPL) v2. Note that
10 * this license covers the code to the compiler and other executables,
11 * but explicitly does not cover any code or objects generated by sdcc.
13 * For pic device libraries and header files which are derived from
14 * Microchip header (.inc) and linker script (.lkr) files Microchip
15 * requires that "The header files should state that they are only to be
16 * used with authentic Microchip devices" which makes them incompatible
17 * with the GPL. Pic device libraries and header files are located at
18 * non-free/lib and non-free/include directories respectively.
19 * Sdcc should be run with the --use-non-free command line option in
20 * order to include non-free header files and libraries.
22 * See http://sdcc.sourceforge.net/ for the latest information on sdcc.
25 #include <pic18f85j90.h>
27 //==============================================================================
29 __at(0x0F60) __sfr RCSTA2;
30 __at(0x0F60) volatile __RCSTA2bits_t RCSTA2bits;
32 __at(0x0F61) __sfr TXSTA2;
33 __at(0x0F61) volatile __TXSTA2bits_t TXSTA2bits;
35 __at(0x0F62) __sfr TXREG2;
37 __at(0x0F63) __sfr RCREG2;
39 __at(0x0F64) __sfr SPBRG2;
41 __at(0x0F65) __sfr CCP2CON;
42 __at(0x0F65) volatile __CCP2CONbits_t CCP2CONbits;
44 __at(0x0F66) __sfr CCPR2;
46 __at(0x0F66) __sfr CCPR2L;
48 __at(0x0F67) __sfr CCPR2H;
50 __at(0x0F68) __sfr CCP1CON;
51 __at(0x0F68) volatile __CCP1CONbits_t CCP1CONbits;
53 __at(0x0F69) __sfr CCPR1;
55 __at(0x0F69) __sfr CCPR1L;
57 __at(0x0F6A) __sfr CCPR1H;
59 __at(0x0F6B) __sfr LCDDATA5;
60 __at(0x0F6B) volatile __LCDDATA5bits_t LCDDATA5bits;
62 __at(0x0F6C) __sfr LCDDATA6;
63 __at(0x0F6C) volatile __LCDDATA6bits_t LCDDATA6bits;
65 __at(0x0F6D) __sfr LCDDATA7;
66 __at(0x0F6D) volatile __LCDDATA7bits_t LCDDATA7bits;
68 __at(0x0F6E) __sfr LCDDATA8;
69 __at(0x0F6E) volatile __LCDDATA8bits_t LCDDATA8bits;
71 __at(0x0F6F) __sfr LCDDATA9;
72 __at(0x0F6F) volatile __LCDDATA9bits_t LCDDATA9bits;
74 __at(0x0F70) __sfr LCDDATA10;
75 __at(0x0F70) volatile __LCDDATA10bits_t LCDDATA10bits;
77 __at(0x0F71) __sfr LCDDATA11;
78 __at(0x0F71) volatile __LCDDATA11bits_t LCDDATA11bits;
80 __at(0x0F72) __sfr LCDDATA12;
81 __at(0x0F72) volatile __LCDDATA12bits_t LCDDATA12bits;
83 __at(0x0F73) __sfr LCDDATA13;
84 __at(0x0F73) volatile __LCDDATA13bits_t LCDDATA13bits;
86 __at(0x0F74) __sfr LCDDATA14;
87 __at(0x0F74) volatile __LCDDATA14bits_t LCDDATA14bits;
89 __at(0x0F75) __sfr LCDDATA15;
90 __at(0x0F75) volatile __LCDDATA15bits_t LCDDATA15bits;
92 __at(0x0F76) __sfr LCDDATA16;
93 __at(0x0F76) volatile __LCDDATA16bits_t LCDDATA16bits;
95 __at(0x0F77) __sfr LCDDATA17;
96 __at(0x0F77) volatile __LCDDATA17bits_t LCDDATA17bits;
98 __at(0x0F78) __sfr LCDDATA18;
99 __at(0x0F78) volatile __LCDDATA18bits_t LCDDATA18bits;
101 __at(0x0F79) __sfr LCDDATA19;
102 __at(0x0F79) volatile __LCDDATA19bits_t LCDDATA19bits;
104 __at(0x0F7A) __sfr LCDDATA20;
105 __at(0x0F7A) volatile __LCDDATA20bits_t LCDDATA20bits;
107 __at(0x0F7B) __sfr LCDDATA21;
108 __at(0x0F7B) volatile __LCDDATA21bits_t LCDDATA21bits;
110 __at(0x0F7C) __sfr LCDDATA22;
111 __at(0x0F7C) volatile __LCDDATA22bits_t LCDDATA22bits;
113 __at(0x0F7D) __sfr LCDDATA23;
114 __at(0x0F7D) volatile __LCDDATA23bits_t LCDDATA23bits;
116 __at(0x0F7E) __sfr BAUDCON1;
117 __at(0x0F7E) volatile __BAUDCON1bits_t BAUDCON1bits;
119 __at(0x0F7F) __sfr SPBRGH1;
121 __at(0x0F80) __sfr PORTA;
122 __at(0x0F80) volatile __PORTAbits_t PORTAbits;
124 __at(0x0F81) __sfr PORTB;
125 __at(0x0F81) volatile __PORTBbits_t PORTBbits;
127 __at(0x0F82) __sfr PORTC;
128 __at(0x0F82) volatile __PORTCbits_t PORTCbits;
130 __at(0x0F83) __sfr PORTD;
131 __at(0x0F83) volatile __PORTDbits_t PORTDbits;
133 __at(0x0F84) __sfr PORTE;
134 __at(0x0F84) volatile __PORTEbits_t PORTEbits;
136 __at(0x0F85) __sfr PORTF;
137 __at(0x0F85) volatile __PORTFbits_t PORTFbits;
139 __at(0x0F86) __sfr PORTG;
140 __at(0x0F86) volatile __PORTGbits_t PORTGbits;
142 __at(0x0F87) __sfr PORTH;
143 __at(0x0F87) volatile __PORTHbits_t PORTHbits;
145 __at(0x0F88) __sfr PORTJ;
146 __at(0x0F88) volatile __PORTJbits_t PORTJbits;
148 __at(0x0F89) __sfr LATA;
149 __at(0x0F89) volatile __LATAbits_t LATAbits;
151 __at(0x0F8A) __sfr LATB;
152 __at(0x0F8A) volatile __LATBbits_t LATBbits;
154 __at(0x0F8B) __sfr LATC;
155 __at(0x0F8B) volatile __LATCbits_t LATCbits;
157 __at(0x0F8C) __sfr LATD;
158 __at(0x0F8C) volatile __LATDbits_t LATDbits;
160 __at(0x0F8D) __sfr LATE;
161 __at(0x0F8D) volatile __LATEbits_t LATEbits;
163 __at(0x0F8E) __sfr LATF;
164 __at(0x0F8E) volatile __LATFbits_t LATFbits;
166 __at(0x0F8F) __sfr LATG;
167 __at(0x0F8F) volatile __LATGbits_t LATGbits;
169 __at(0x0F90) __sfr LATH;
170 __at(0x0F90) volatile __LATHbits_t LATHbits;
172 __at(0x0F91) __sfr LATJ;
173 __at(0x0F91) volatile __LATJbits_t LATJbits;
175 __at(0x0F92) __sfr DDRA;
176 __at(0x0F92) volatile __DDRAbits_t DDRAbits;
178 __at(0x0F92) __sfr TRISA;
179 __at(0x0F92) volatile __TRISAbits_t TRISAbits;
181 __at(0x0F93) __sfr DDRB;
182 __at(0x0F93) volatile __DDRBbits_t DDRBbits;
184 __at(0x0F93) __sfr TRISB;
185 __at(0x0F93) volatile __TRISBbits_t TRISBbits;
187 __at(0x0F94) __sfr DDRC;
188 __at(0x0F94) volatile __DDRCbits_t DDRCbits;
190 __at(0x0F94) __sfr TRISC;
191 __at(0x0F94) volatile __TRISCbits_t TRISCbits;
193 __at(0x0F95) __sfr DDRD;
194 __at(0x0F95) volatile __DDRDbits_t DDRDbits;
196 __at(0x0F95) __sfr TRISD;
197 __at(0x0F95) volatile __TRISDbits_t TRISDbits;
199 __at(0x0F96) __sfr DDRE;
200 __at(0x0F96) volatile __DDREbits_t DDREbits;
202 __at(0x0F96) __sfr TRISE;
203 __at(0x0F96) volatile __TRISEbits_t TRISEbits;
205 __at(0x0F97) __sfr DDRF;
206 __at(0x0F97) volatile __DDRFbits_t DDRFbits;
208 __at(0x0F97) __sfr TRISF;
209 __at(0x0F97) volatile __TRISFbits_t TRISFbits;
211 __at(0x0F98) __sfr DDRG;
212 __at(0x0F98) volatile __DDRGbits_t DDRGbits;
214 __at(0x0F98) __sfr TRISG;
215 __at(0x0F98) volatile __TRISGbits_t TRISGbits;
217 __at(0x0F99) __sfr DDRH;
218 __at(0x0F99) volatile __DDRHbits_t DDRHbits;
220 __at(0x0F99) __sfr TRISH;
221 __at(0x0F99) volatile __TRISHbits_t TRISHbits;
223 __at(0x0F9A) __sfr DDRJ;
224 __at(0x0F9A) volatile __DDRJbits_t DDRJbits;
226 __at(0x0F9A) __sfr TRISJ;
227 __at(0x0F9A) volatile __TRISJbits_t TRISJbits;
229 __at(0x0F9B) __sfr OSCTUNE;
230 __at(0x0F9B) volatile __OSCTUNEbits_t OSCTUNEbits;
232 __at(0x0F9D) __sfr PIE1;
233 __at(0x0F9D) volatile __PIE1bits_t PIE1bits;
235 __at(0x0F9E) __sfr PIR1;
236 __at(0x0F9E) volatile __PIR1bits_t PIR1bits;
238 __at(0x0F9F) __sfr IPR1;
239 __at(0x0F9F) volatile __IPR1bits_t IPR1bits;
241 __at(0x0FA0) __sfr PIE2;
242 __at(0x0FA0) volatile __PIE2bits_t PIE2bits;
244 __at(0x0FA1) __sfr PIR2;
245 __at(0x0FA1) volatile __PIR2bits_t PIR2bits;
247 __at(0x0FA2) __sfr IPR2;
248 __at(0x0FA2) volatile __IPR2bits_t IPR2bits;
250 __at(0x0FA3) __sfr PIE3;
251 __at(0x0FA3) volatile __PIE3bits_t PIE3bits;
253 __at(0x0FA4) __sfr PIR3;
254 __at(0x0FA4) volatile __PIR3bits_t PIR3bits;
256 __at(0x0FA5) __sfr IPR3;
257 __at(0x0FA5) volatile __IPR3bits_t IPR3bits;
259 __at(0x0FA6) __sfr EECON1;
260 __at(0x0FA6) volatile __EECON1bits_t EECON1bits;
262 __at(0x0FA7) __sfr EECON2;
264 __at(0x0FA8) __sfr LCDCON;
265 __at(0x0FA8) volatile __LCDCONbits_t LCDCONbits;
267 __at(0x0FA9) __sfr LCDSE0;
268 __at(0x0FA9) volatile __LCDSE0bits_t LCDSE0bits;
270 __at(0x0FAA) __sfr LCDPS;
271 __at(0x0FAA) volatile __LCDPSbits_t LCDPSbits;
273 __at(0x0FAB) __sfr RCSTA;
274 __at(0x0FAB) volatile __RCSTAbits_t RCSTAbits;
276 __at(0x0FAB) __sfr RCSTA1;
277 __at(0x0FAB) volatile __RCSTA1bits_t RCSTA1bits;
279 __at(0x0FAC) __sfr TXSTA;
280 __at(0x0FAC) volatile __TXSTAbits_t TXSTAbits;
282 __at(0x0FAC) __sfr TXSTA1;
283 __at(0x0FAC) volatile __TXSTA1bits_t TXSTA1bits;
285 __at(0x0FAD) __sfr TXREG;
287 __at(0x0FAD) __sfr TXREG1;
289 __at(0x0FAE) __sfr RCREG;
291 __at(0x0FAE) __sfr RCREG1;
293 __at(0x0FAF) __sfr SPBRG;
295 __at(0x0FAF) __sfr SPBRG1;
297 __at(0x0FB1) __sfr T3CON;
298 __at(0x0FB1) volatile __T3CONbits_t T3CONbits;
300 __at(0x0FB2) __sfr TMR3;
302 __at(0x0FB2) __sfr TMR3L;
304 __at(0x0FB3) __sfr TMR3H;
306 __at(0x0FB4) __sfr CMCON;
307 __at(0x0FB4) volatile __CMCONbits_t CMCONbits;
309 __at(0x0FB5) __sfr CVRCON;
310 __at(0x0FB5) volatile __CVRCONbits_t CVRCONbits;
312 __at(0x0FB6) __sfr LCDSE1;
313 __at(0x0FB6) volatile __LCDSE1bits_t LCDSE1bits;
315 __at(0x0FB7) __sfr LCDSE2;
316 __at(0x0FB7) volatile __LCDSE2bits_t LCDSE2bits;
318 __at(0x0FB8) __sfr LCDSE3;
319 __at(0x0FB8) volatile __LCDSE3bits_t LCDSE3bits;
321 __at(0x0FB9) __sfr LCDSE4;
322 __at(0x0FB9) volatile __LCDSE4bits_t LCDSE4bits;
324 __at(0x0FBA) __sfr LCDSE5;
325 __at(0x0FBA) volatile __LCDSE5bits_t LCDSE5bits;
327 __at(0x0FBB) __sfr LCDDATA0;
328 __at(0x0FBB) volatile __LCDDATA0bits_t LCDDATA0bits;
330 __at(0x0FBC) __sfr LCDDATA1;
331 __at(0x0FBC) volatile __LCDDATA1bits_t LCDDATA1bits;
333 __at(0x0FBD) __sfr LCDDATA2;
334 __at(0x0FBD) volatile __LCDDATA2bits_t LCDDATA2bits;
336 __at(0x0FBE) __sfr LCDDATA3;
337 __at(0x0FBE) volatile __LCDDATA3bits_t LCDDATA3bits;
339 __at(0x0FBF) __sfr LCDDATA4;
340 __at(0x0FBF) volatile __LCDDATA4bits_t LCDDATA4bits;
342 __at(0x0FC0) __sfr ADCON2;
343 __at(0x0FC0) volatile __ADCON2bits_t ADCON2bits;
345 __at(0x0FC1) __sfr ADCON1;
346 __at(0x0FC1) volatile __ADCON1bits_t ADCON1bits;
348 __at(0x0FC2) __sfr ADCON0;
349 __at(0x0FC2) volatile __ADCON0bits_t ADCON0bits;
351 __at(0x0FC3) __sfr ADRES;
353 __at(0x0FC3) __sfr ADRESL;
355 __at(0x0FC4) __sfr ADRESH;
357 __at(0x0FC5) __sfr SSP1CON2;
358 __at(0x0FC5) volatile __SSP1CON2bits_t SSP1CON2bits;
360 __at(0x0FC5) __sfr SSPCON2;
361 __at(0x0FC5) volatile __SSPCON2bits_t SSPCON2bits;
363 __at(0x0FC6) __sfr SSP1CON1;
364 __at(0x0FC6) volatile __SSP1CON1bits_t SSP1CON1bits;
366 __at(0x0FC6) __sfr SSPCON1;
367 __at(0x0FC6) volatile __SSPCON1bits_t SSPCON1bits;
369 __at(0x0FC7) __sfr SSP1STAT;
370 __at(0x0FC7) volatile __SSP1STATbits_t SSP1STATbits;
372 __at(0x0FC7) __sfr SSPSTAT;
373 __at(0x0FC7) volatile __SSPSTATbits_t SSPSTATbits;
375 __at(0x0FC8) __sfr SSP1ADD;
377 __at(0x0FC8) __sfr SSPADD;
379 __at(0x0FC9) __sfr SSP1BUF;
381 __at(0x0FC9) __sfr SSPBUF;
383 __at(0x0FCA) __sfr T2CON;
384 __at(0x0FCA) volatile __T2CONbits_t T2CONbits;
386 __at(0x0FCB) __sfr PR2;
388 __at(0x0FCC) __sfr TMR2;
390 __at(0x0FCD) __sfr T1CON;
391 __at(0x0FCD) volatile __T1CONbits_t T1CONbits;
393 __at(0x0FCE) __sfr TMR1;
395 __at(0x0FCE) __sfr TMR1L;
397 __at(0x0FCF) __sfr TMR1H;
399 __at(0x0FD0) __sfr RCON;
400 __at(0x0FD0) volatile __RCONbits_t RCONbits;
402 __at(0x0FD1) __sfr WDTCON;
403 __at(0x0FD1) volatile __WDTCONbits_t WDTCONbits;
405 __at(0x0FD2) __sfr LCDREG;
406 __at(0x0FD2) volatile __LCDREGbits_t LCDREGbits;
408 __at(0x0FD3) __sfr OSCCON;
409 __at(0x0FD3) volatile __OSCCONbits_t OSCCONbits;
411 __at(0x0FD5) __sfr T0CON;
412 __at(0x0FD5) volatile __T0CONbits_t T0CONbits;
414 __at(0x0FD6) __sfr TMR0;
416 __at(0x0FD6) __sfr TMR0L;
418 __at(0x0FD7) __sfr TMR0H;
420 __at(0x0FD8) __sfr STATUS;
421 __at(0x0FD8) volatile __STATUSbits_t STATUSbits;
423 __at(0x0FD9) __sfr FSR2L;
425 __at(0x0FDA) __sfr FSR2H;
427 __at(0x0FDB) __sfr PLUSW2;
429 __at(0x0FDC) __sfr PREINC2;
431 __at(0x0FDD) __sfr POSTDEC2;
433 __at(0x0FDE) __sfr POSTINC2;
435 __at(0x0FDF) __sfr INDF2;
437 __at(0x0FE0) __sfr BSR;
439 __at(0x0FE1) __sfr FSR1L;
441 __at(0x0FE2) __sfr FSR1H;
443 __at(0x0FE3) __sfr PLUSW1;
445 __at(0x0FE4) __sfr PREINC1;
447 __at(0x0FE5) __sfr POSTDEC1;
449 __at(0x0FE6) __sfr POSTINC1;
451 __at(0x0FE7) __sfr INDF1;
453 __at(0x0FE8) __sfr WREG;
455 __at(0x0FE9) __sfr FSR0L;
457 __at(0x0FEA) __sfr FSR0H;
459 __at(0x0FEB) __sfr PLUSW0;
461 __at(0x0FEC) __sfr PREINC0;
463 __at(0x0FED) __sfr POSTDEC0;
465 __at(0x0FEE) __sfr POSTINC0;
467 __at(0x0FEF) __sfr INDF0;
469 __at(0x0FF0) __sfr INTCON3;
470 __at(0x0FF0) volatile __INTCON3bits_t INTCON3bits;
472 __at(0x0FF1) __sfr INTCON2;
473 __at(0x0FF1) volatile __INTCON2bits_t INTCON2bits;
475 __at(0x0FF2) __sfr INTCON;
476 __at(0x0FF2) volatile __INTCONbits_t INTCONbits;
478 __at(0x0FF3) __sfr PROD;
480 __at(0x0FF3) __sfr PRODL;
482 __at(0x0FF4) __sfr PRODH;
484 __at(0x0FF5) __sfr TABLAT;
486 __at(0x0FF6) __sfr TBLPTR;
488 __at(0x0FF6) __sfr TBLPTRL;
490 __at(0x0FF7) __sfr TBLPTRH;
492 __at(0x0FF8) __sfr TBLPTRU;
494 __at(0x0FF9) __sfr PC;
496 __at(0x0FF9) __sfr PCL;
498 __at(0x0FFA) __sfr PCLATH;
500 __at(0x0FFB) __sfr PCLATU;
502 __at(0x0FFC) __sfr STKPTR;
503 __at(0x0FFC) volatile __STKPTRbits_t STKPTRbits;
505 __at(0x0FFD) __sfr TOS;
507 __at(0x0FFD) __sfr TOSL;
509 __at(0x0FFE) __sfr TOSH;
511 __at(0x0FFF) __sfr TOSU;