Prepare for SDCC 4.5.0 release.
[sdcc.git] / sdcc / device / non-free / lib / pic14 / libdev / pic16lf1559.c
blob82ea3bda749877619bfb4d78ccdcb9732541c815
1 /*
2 * This definitions of the PIC16LF1559 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:08 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 <pic16lf1559.h>
27 //==============================================================================
29 __at(0x0000) __sfr INDF0;
31 __at(0x0001) __sfr INDF1;
33 __at(0x0002) __sfr PCL;
35 __at(0x0003) __sfr STATUS;
36 __at(0x0003) volatile __STATUSbits_t STATUSbits;
38 __at(0x0004) __sfr FSR0;
40 __at(0x0004) __sfr FSR0L;
42 __at(0x0005) __sfr FSR0H;
44 __at(0x0006) __sfr FSR1;
46 __at(0x0006) __sfr FSR1L;
48 __at(0x0007) __sfr FSR1H;
50 __at(0x0008) __sfr BSR;
51 __at(0x0008) volatile __BSRbits_t BSRbits;
53 __at(0x0009) __sfr WREG;
55 __at(0x000A) __sfr PCLATH;
57 __at(0x000B) __sfr INTCON;
58 __at(0x000B) volatile __INTCONbits_t INTCONbits;
60 __at(0x000C) __sfr PORTA;
61 __at(0x000C) volatile __PORTAbits_t PORTAbits;
63 __at(0x000D) __sfr PORTB;
64 __at(0x000D) volatile __PORTBbits_t PORTBbits;
66 __at(0x000E) __sfr PORTC;
67 __at(0x000E) volatile __PORTCbits_t PORTCbits;
69 __at(0x0011) __sfr PIR1;
70 __at(0x0011) volatile __PIR1bits_t PIR1bits;
72 __at(0x0012) __sfr PIR2;
73 __at(0x0012) volatile __PIR2bits_t PIR2bits;
75 __at(0x0015) __sfr TMR0;
77 __at(0x0016) __sfr TMR1;
79 __at(0x0016) __sfr TMR1L;
81 __at(0x0017) __sfr TMR1H;
83 __at(0x0018) __sfr T1CON;
84 __at(0x0018) volatile __T1CONbits_t T1CONbits;
86 __at(0x0019) __sfr T1GCON;
87 __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
89 __at(0x001A) __sfr TMR2;
91 __at(0x001B) __sfr PR2;
93 __at(0x001C) __sfr T2CON;
94 __at(0x001C) volatile __T2CONbits_t T2CONbits;
96 __at(0x008C) __sfr TRISA;
97 __at(0x008C) volatile __TRISAbits_t TRISAbits;
99 __at(0x008D) __sfr TRISB;
100 __at(0x008D) volatile __TRISBbits_t TRISBbits;
102 __at(0x008E) __sfr TRISC;
103 __at(0x008E) volatile __TRISCbits_t TRISCbits;
105 __at(0x0091) __sfr PIE1;
106 __at(0x0091) volatile __PIE1bits_t PIE1bits;
108 __at(0x0092) __sfr PIE2;
109 __at(0x0092) volatile __PIE2bits_t PIE2bits;
111 __at(0x0095) __sfr OPTION_REG;
112 __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
114 __at(0x0096) __sfr PCON;
115 __at(0x0096) volatile __PCONbits_t PCONbits;
117 __at(0x0097) __sfr WDTCON;
118 __at(0x0097) volatile __WDTCONbits_t WDTCONbits;
120 __at(0x0099) __sfr OSCCON;
121 __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
123 __at(0x009A) __sfr OSCSTAT;
124 __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
126 __at(0x009B) __sfr ADRES;
128 __at(0x009B) __sfr ADRESL;
130 __at(0x009C) __sfr ADRESH;
132 __at(0x009D) __sfr ADCON0;
133 __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
135 __at(0x009E) __sfr ADCON1;
136 __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
138 __at(0x009F) __sfr ADCON2;
139 __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
141 __at(0x010C) __sfr LATA;
142 __at(0x010C) volatile __LATAbits_t LATAbits;
144 __at(0x010D) __sfr LATB;
145 __at(0x010D) volatile __LATBbits_t LATBbits;
147 __at(0x010E) __sfr LATC;
148 __at(0x010E) volatile __LATCbits_t LATCbits;
150 __at(0x0116) __sfr BORCON;
151 __at(0x0116) volatile __BORCONbits_t BORCONbits;
153 __at(0x0117) __sfr FVRCON;
154 __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
156 __at(0x011D) __sfr APFCON;
157 __at(0x011D) volatile __APFCONbits_t APFCONbits;
159 __at(0x018C) __sfr ANSELA;
160 __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
162 __at(0x018D) __sfr ANSELB;
163 __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
165 __at(0x018E) __sfr ANSELC;
166 __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
168 __at(0x0191) __sfr PMADR;
170 __at(0x0191) __sfr PMADRL;
172 __at(0x0192) __sfr PMADRH;
174 __at(0x0193) __sfr PMDAT;
176 __at(0x0193) __sfr PMDATL;
178 __at(0x0194) __sfr PMDATH;
180 __at(0x0195) __sfr PMCON1;
181 __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
183 __at(0x0196) __sfr PMCON2;
185 __at(0x0199) __sfr RCREG;
187 __at(0x019A) __sfr TXREG;
189 __at(0x019B) __sfr SPBRG;
191 __at(0x019B) __sfr SPBRGL;
193 __at(0x019C) __sfr SPBRGH;
195 __at(0x019D) __sfr RCSTA;
196 __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
198 __at(0x019E) __sfr TXSTA;
199 __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
201 __at(0x019F) __sfr BAUDCON;
202 __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
204 __at(0x020C) __sfr WPUA;
205 __at(0x020C) volatile __WPUAbits_t WPUAbits;
207 __at(0x020D) __sfr WPUB;
208 __at(0x020D) volatile __WPUBbits_t WPUBbits;
210 __at(0x0211) __sfr SSP1BUF;
212 __at(0x0211) __sfr SSPBUF;
214 __at(0x0212) __sfr SSP1ADD;
216 __at(0x0212) __sfr SSPADD;
218 __at(0x0213) __sfr SSP1MSK;
220 __at(0x0213) __sfr SSPMSK;
222 __at(0x0214) __sfr SSP1STAT;
223 __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
225 __at(0x0214) __sfr SSPSTAT;
226 __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
228 __at(0x0215) __sfr SSP1CON1;
229 __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
231 __at(0x0215) __sfr SSPCON;
232 __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
234 __at(0x0215) __sfr SSPCON1;
235 __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
237 __at(0x0216) __sfr SSP1CON2;
238 __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
240 __at(0x0216) __sfr SSPCON2;
241 __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
243 __at(0x0217) __sfr SSP1CON3;
244 __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
246 __at(0x0217) __sfr SSPCON3;
247 __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
249 __at(0x0391) __sfr IOCAP;
250 __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
252 __at(0x0392) __sfr IOCAN;
253 __at(0x0392) volatile __IOCANbits_t IOCANbits;
255 __at(0x0393) __sfr IOCAF;
256 __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
258 __at(0x0394) __sfr IOCBP;
259 __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
261 __at(0x0395) __sfr IOCBN;
262 __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
264 __at(0x0396) __sfr IOCBF;
265 __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
267 __at(0x0611) __sfr PWM1DCL;
268 __at(0x0611) volatile __PWM1DCLbits_t PWM1DCLbits;
270 __at(0x0612) __sfr PWM1DCH;
271 __at(0x0612) volatile __PWM1DCHbits_t PWM1DCHbits;
273 __at(0x0613) __sfr PWM1CON;
274 __at(0x0613) volatile __PWM1CONbits_t PWM1CONbits;
276 __at(0x0613) __sfr PWM1CON0;
277 __at(0x0613) volatile __PWM1CON0bits_t PWM1CON0bits;
279 __at(0x0614) __sfr PWM2DCL;
280 __at(0x0614) volatile __PWM2DCLbits_t PWM2DCLbits;
282 __at(0x0615) __sfr PWM2DCH;
283 __at(0x0615) volatile __PWM2DCHbits_t PWM2DCHbits;
285 __at(0x0616) __sfr PWM2CON;
286 __at(0x0616) volatile __PWM2CONbits_t PWM2CONbits;
288 __at(0x0616) __sfr PWM2CON0;
289 __at(0x0616) volatile __PWM2CON0bits_t PWM2CON0bits;
291 __at(0x0711) __sfr AAD1CON0;
292 __at(0x0711) volatile __AAD1CON0bits_t AAD1CON0bits;
294 __at(0x0711) __sfr AADCON0;
295 __at(0x0711) volatile __AADCON0bits_t AADCON0bits;
297 __at(0x0711) __sfr AD1CON0;
298 __at(0x0711) volatile __AD1CON0bits_t AD1CON0bits;
300 __at(0x0712) __sfr AADCON1;
301 __at(0x0712) volatile __AADCON1bits_t AADCON1bits;
303 __at(0x0712) __sfr ADCOMCON;
304 __at(0x0712) volatile __ADCOMCONbits_t ADCOMCONbits;
306 __at(0x0713) __sfr AAD1CON2;
307 __at(0x0713) volatile __AAD1CON2bits_t AAD1CON2bits;
309 __at(0x0713) __sfr AADCON2;
310 __at(0x0713) volatile __AADCON2bits_t AADCON2bits;
312 __at(0x0713) __sfr AD1CON2;
313 __at(0x0713) volatile __AD1CON2bits_t AD1CON2bits;
315 __at(0x0714) __sfr AAD1CON3;
316 __at(0x0714) volatile __AAD1CON3bits_t AAD1CON3bits;
318 __at(0x0714) __sfr AADCON3;
319 __at(0x0714) volatile __AADCON3bits_t AADCON3bits;
321 __at(0x0714) __sfr AD1CON3;
322 __at(0x0714) volatile __AD1CON3bits_t AD1CON3bits;
324 __at(0x0715) __sfr AADSTAT;
325 __at(0x0715) volatile __AADSTATbits_t AADSTATbits;
327 __at(0x0715) __sfr ADSTAT;
328 __at(0x0715) volatile __ADSTATbits_t ADSTATbits;
330 __at(0x0716) __sfr AAD1PRE;
331 __at(0x0716) volatile __AAD1PREbits_t AAD1PREbits;
333 __at(0x0716) __sfr AADPRE;
334 __at(0x0716) volatile __AADPREbits_t AADPREbits;
336 __at(0x0716) __sfr AD1PRE;
337 __at(0x0716) volatile __AD1PREbits_t AD1PREbits;
339 __at(0x0716) __sfr AD1PRECON;
340 __at(0x0716) volatile __AD1PRECONbits_t AD1PRECONbits;
342 __at(0x0717) __sfr AAD1ACQ;
343 __at(0x0717) volatile __AAD1ACQbits_t AAD1ACQbits;
345 __at(0x0717) __sfr AADACQ;
346 __at(0x0717) volatile __AADACQbits_t AADACQbits;
348 __at(0x0717) __sfr AD1ACQ;
349 __at(0x0717) volatile __AD1ACQbits_t AD1ACQbits;
351 __at(0x0717) __sfr AD1ACQCON;
352 __at(0x0717) volatile __AD1ACQCONbits_t AD1ACQCONbits;
354 __at(0x0718) __sfr AAD1GRD;
355 __at(0x0718) volatile __AAD1GRDbits_t AAD1GRDbits;
357 __at(0x0718) __sfr AADGRD;
358 __at(0x0718) volatile __AADGRDbits_t AADGRDbits;
360 __at(0x0718) __sfr AD1GRD;
361 __at(0x0718) volatile __AD1GRDbits_t AD1GRDbits;
363 __at(0x0719) __sfr AAD1CAP;
364 __at(0x0719) volatile __AAD1CAPbits_t AAD1CAPbits;
366 __at(0x0719) __sfr AAD1CAPCON;
367 __at(0x0719) volatile __AAD1CAPCONbits_t AAD1CAPCONbits;
369 __at(0x0719) __sfr AADCAP;
370 __at(0x0719) volatile __AADCAPbits_t AADCAPbits;
372 __at(0x0719) __sfr AD1CAPCON;
373 __at(0x0719) volatile __AD1CAPCONbits_t AD1CAPCONbits;
375 __at(0x071A) __sfr AAD1RES0;
377 __at(0x071A) __sfr AAD1RES0L;
379 __at(0x071A) __sfr AD1RES0;
381 __at(0x071A) __sfr AD1RES0L;
383 __at(0x071A) __sfr ADRES0;
385 __at(0x071B) __sfr AAD1RES0H;
387 __at(0x071B) __sfr AD1RES0H;
389 __at(0x071C) __sfr AAD1RES1;
391 __at(0x071C) __sfr AAD1RES1L;
393 __at(0x071C) __sfr AD1RES1;
395 __at(0x071C) __sfr AD1RES1L;
397 __at(0x071C) __sfr ADRES1;
399 __at(0x071D) __sfr AAD1RES1H;
401 __at(0x071D) __sfr AD1RES1H;
403 __at(0x071E) __sfr AAD1CH;
404 __at(0x071E) volatile __AAD1CHbits_t AAD1CHbits;
406 __at(0x071E) __sfr AD1CH;
407 __at(0x071E) volatile __AD1CHbits_t AD1CHbits;
409 __at(0x0791) __sfr AAD2CON0;
410 __at(0x0791) volatile __AAD2CON0bits_t AAD2CON0bits;
412 __at(0x0791) __sfr AD2CON0;
413 __at(0x0791) volatile __AD2CON0bits_t AD2CON0bits;
415 __at(0x0793) __sfr AAD2CON2;
416 __at(0x0793) volatile __AAD2CON2bits_t AAD2CON2bits;
418 __at(0x0793) __sfr AD2CON2;
419 __at(0x0793) volatile __AD2CON2bits_t AD2CON2bits;
421 __at(0x0794) __sfr AAD2CON3;
422 __at(0x0794) volatile __AAD2CON3bits_t AAD2CON3bits;
424 __at(0x0794) __sfr AD2CON3;
425 __at(0x0794) volatile __AD2CON3bits_t AD2CON3bits;
427 __at(0x0796) __sfr AAD2PRE;
428 __at(0x0796) volatile __AAD2PREbits_t AAD2PREbits;
430 __at(0x0796) __sfr AD2PRE;
431 __at(0x0796) volatile __AD2PREbits_t AD2PREbits;
433 __at(0x0796) __sfr AD2PRECON;
434 __at(0x0796) volatile __AD2PRECONbits_t AD2PRECONbits;
436 __at(0x0797) __sfr AAD2ACQ;
437 __at(0x0797) volatile __AAD2ACQbits_t AAD2ACQbits;
439 __at(0x0797) __sfr AD2ACQ;
440 __at(0x0797) volatile __AD2ACQbits_t AD2ACQbits;
442 __at(0x0797) __sfr AD2ACQCON;
443 __at(0x0797) volatile __AD2ACQCONbits_t AD2ACQCONbits;
445 __at(0x0798) __sfr AAD2GRD;
446 __at(0x0798) volatile __AAD2GRDbits_t AAD2GRDbits;
448 __at(0x0798) __sfr AD2GRD;
449 __at(0x0798) volatile __AD2GRDbits_t AD2GRDbits;
451 __at(0x0799) __sfr AAD2CAP;
452 __at(0x0799) volatile __AAD2CAPbits_t AAD2CAPbits;
454 __at(0x0799) __sfr AAD2CAPCON;
455 __at(0x0799) volatile __AAD2CAPCONbits_t AAD2CAPCONbits;
457 __at(0x0799) __sfr AD2CAPCON;
458 __at(0x0799) volatile __AD2CAPCONbits_t AD2CAPCONbits;
460 __at(0x079A) __sfr AAD2RES0;
462 __at(0x079A) __sfr AAD2RES0L;
464 __at(0x079A) __sfr AD2RES0;
466 __at(0x079B) __sfr AAD2RES0H;
468 __at(0x079C) __sfr AAD2RES1;
470 __at(0x079C) __sfr AAD2RES1L;
472 __at(0x079C) __sfr AD2RES1;
474 __at(0x079D) __sfr AAD2RES1H;
476 __at(0x079E) __sfr AAD2CH;
477 __at(0x079E) volatile __AAD2CHbits_t AAD2CHbits;
479 __at(0x079E) __sfr AD2CH;
480 __at(0x079E) volatile __AD2CHbits_t AD2CHbits;
482 __at(0x0F8C) __sfr ICDIO;
483 __at(0x0F8C) volatile __ICDIObits_t ICDIObits;
485 __at(0x0F8D) __sfr ICDCON0;
486 __at(0x0F8D) volatile __ICDCON0bits_t ICDCON0bits;
488 __at(0x0F91) __sfr ICDSTAT;
489 __at(0x0F91) volatile __ICDSTATbits_t ICDSTATbits;
491 __at(0x0F96) __sfr ICDINSTL;
492 __at(0x0F96) volatile __ICDINSTLbits_t ICDINSTLbits;
494 __at(0x0F97) __sfr ICDINSTH;
495 __at(0x0F97) volatile __ICDINSTHbits_t ICDINSTHbits;
497 __at(0x0F9C) __sfr ICDBK0CON;
498 __at(0x0F9C) volatile __ICDBK0CONbits_t ICDBK0CONbits;
500 __at(0x0F9D) __sfr ICDBK0L;
501 __at(0x0F9D) volatile __ICDBK0Lbits_t ICDBK0Lbits;
503 __at(0x0F9E) __sfr ICDBK0H;
504 __at(0x0F9E) volatile __ICDBK0Hbits_t ICDBK0Hbits;
506 __at(0x0FE3) __sfr BSRICDSHAD;
508 __at(0x0FE4) __sfr STATUS_SHAD;
509 __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
511 __at(0x0FE5) __sfr WREG_SHAD;
513 __at(0x0FE6) __sfr BSR_SHAD;
515 __at(0x0FE7) __sfr PCLATH_SHAD;
517 __at(0x0FE8) __sfr FSR0L_SHAD;
519 __at(0x0FE9) __sfr FSR0H_SHAD;
521 __at(0x0FEA) __sfr FSR1L_SHAD;
523 __at(0x0FEB) __sfr FSR1H_SHAD;
525 __at(0x0FED) __sfr STKPTR;
527 __at(0x0FEE) __sfr TOSL;
529 __at(0x0FEF) __sfr TOSH;