struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / lib / pic14 / libdev / pic16lf1517.c
blobfdc246108ad8d9330e52902f3013019f21147c59
1 /*
2 * This definitions of the PIC16LF1517 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:07 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 <pic16lf1517.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(0x000F) __sfr PORTD;
70 __at(0x000F) volatile __PORTDbits_t PORTDbits;
72 __at(0x0010) __sfr PORTE;
73 __at(0x0010) volatile __PORTEbits_t PORTEbits;
75 __at(0x0011) __sfr PIR1;
76 __at(0x0011) volatile __PIR1bits_t PIR1bits;
78 __at(0x0012) __sfr PIR2;
79 __at(0x0012) volatile __PIR2bits_t PIR2bits;
81 __at(0x0015) __sfr TMR0;
83 __at(0x0016) __sfr TMR1;
85 __at(0x0016) __sfr TMR1L;
87 __at(0x0017) __sfr TMR1H;
89 __at(0x0018) __sfr T1CON;
90 __at(0x0018) volatile __T1CONbits_t T1CONbits;
92 __at(0x0019) __sfr T1GCON;
93 __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
95 __at(0x001A) __sfr TMR2;
97 __at(0x001B) __sfr PR2;
99 __at(0x001C) __sfr T2CON;
100 __at(0x001C) volatile __T2CONbits_t T2CONbits;
102 __at(0x008C) __sfr TRISA;
103 __at(0x008C) volatile __TRISAbits_t TRISAbits;
105 __at(0x008D) __sfr TRISB;
106 __at(0x008D) volatile __TRISBbits_t TRISBbits;
108 __at(0x008E) __sfr TRISC;
109 __at(0x008E) volatile __TRISCbits_t TRISCbits;
111 __at(0x008F) __sfr TRISD;
112 __at(0x008F) volatile __TRISDbits_t TRISDbits;
114 __at(0x0090) __sfr TRISE;
115 __at(0x0090) volatile __TRISEbits_t TRISEbits;
117 __at(0x0091) __sfr PIE1;
118 __at(0x0091) volatile __PIE1bits_t PIE1bits;
120 __at(0x0092) __sfr PIE2;
121 __at(0x0092) volatile __PIE2bits_t PIE2bits;
123 __at(0x0095) __sfr OPTION_REG;
124 __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
126 __at(0x0096) __sfr PCON;
127 __at(0x0096) volatile __PCONbits_t PCONbits;
129 __at(0x0097) __sfr WDTCON;
130 __at(0x0097) volatile __WDTCONbits_t WDTCONbits;
132 __at(0x0099) __sfr OSCCON;
133 __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
135 __at(0x009A) __sfr OSCSTAT;
136 __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
138 __at(0x009B) __sfr ADRES;
140 __at(0x009B) __sfr ADRESL;
142 __at(0x009C) __sfr ADRESH;
144 __at(0x009D) __sfr ADCON0;
145 __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
147 __at(0x009E) __sfr ADCON1;
148 __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
150 __at(0x010C) __sfr LATA;
151 __at(0x010C) volatile __LATAbits_t LATAbits;
153 __at(0x010D) __sfr LATB;
154 __at(0x010D) volatile __LATBbits_t LATBbits;
156 __at(0x010E) __sfr LATC;
157 __at(0x010E) volatile __LATCbits_t LATCbits;
159 __at(0x010F) __sfr LATD;
160 __at(0x010F) volatile __LATDbits_t LATDbits;
162 __at(0x0110) __sfr LATE;
163 __at(0x0110) volatile __LATEbits_t LATEbits;
165 __at(0x0116) __sfr BORCON;
166 __at(0x0116) volatile __BORCONbits_t BORCONbits;
168 __at(0x0117) __sfr FVRCON;
169 __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
171 __at(0x011D) __sfr APFCON;
172 __at(0x011D) volatile __APFCONbits_t APFCONbits;
174 __at(0x018C) __sfr ANSELA;
175 __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
177 __at(0x018D) __sfr ANSELB;
178 __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
180 __at(0x018E) __sfr ANSELC;
181 __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
183 __at(0x018F) __sfr ANSELD;
184 __at(0x018F) volatile __ANSELDbits_t ANSELDbits;
186 __at(0x0190) __sfr ANSELE;
187 __at(0x0190) volatile __ANSELEbits_t ANSELEbits;
189 __at(0x0191) __sfr PMADR;
191 __at(0x0191) __sfr PMADRL;
193 __at(0x0192) __sfr PMADRH;
195 __at(0x0193) __sfr PMDAT;
197 __at(0x0193) __sfr PMDATL;
199 __at(0x0194) __sfr PMDATH;
201 __at(0x0195) __sfr PMCON1;
202 __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
204 __at(0x0196) __sfr PMCON2;
206 __at(0x0199) __sfr RCREG;
208 __at(0x019A) __sfr TXREG;
210 __at(0x019B) __sfr SP1BRG;
212 __at(0x019B) __sfr SP1BRGL;
214 __at(0x019B) __sfr SPBRG;
216 __at(0x019B) __sfr SPBRGL;
218 __at(0x019C) __sfr SP1BRGH;
220 __at(0x019C) __sfr SPBRGH;
222 __at(0x019D) __sfr RCSTA;
223 __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
225 __at(0x019E) __sfr TXSTA;
226 __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
228 __at(0x019F) __sfr BAUDCON;
229 __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
231 __at(0x020D) __sfr WPUB;
232 __at(0x020D) volatile __WPUBbits_t WPUBbits;
234 __at(0x0210) __sfr WPUE;
235 __at(0x0210) volatile __WPUEbits_t WPUEbits;
237 __at(0x0211) __sfr SSP1BUF;
239 __at(0x0211) __sfr SSPBUF;
241 __at(0x0212) __sfr SSP1ADD;
243 __at(0x0212) __sfr SSPADD;
245 __at(0x0213) __sfr SSP1MSK;
247 __at(0x0213) __sfr SSPMSK;
249 __at(0x0214) __sfr SSP1STAT;
250 __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
252 __at(0x0214) __sfr SSPSTAT;
253 __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
255 __at(0x0215) __sfr SSP1CON1;
256 __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
258 __at(0x0215) __sfr SSPCON;
259 __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
261 __at(0x0215) __sfr SSPCON1;
262 __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
264 __at(0x0216) __sfr SSP1CON2;
265 __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
267 __at(0x0216) __sfr SSPCON2;
268 __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
270 __at(0x0217) __sfr SSP1CON3;
271 __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
273 __at(0x0217) __sfr SSPCON3;
274 __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
276 __at(0x0291) __sfr CCPR1;
278 __at(0x0291) __sfr CCPR1L;
280 __at(0x0292) __sfr CCPR1H;
282 __at(0x0293) __sfr CCP1CON;
283 __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
285 __at(0x0298) __sfr CCPR2;
287 __at(0x0298) __sfr CCPR2L;
289 __at(0x0299) __sfr CCPR2H;
291 __at(0x029A) __sfr CCP2CON;
292 __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
294 __at(0x0394) __sfr IOCBP;
295 __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
297 __at(0x0395) __sfr IOCBN;
298 __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
300 __at(0x0396) __sfr IOCBF;
301 __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
303 __at(0x0FE4) __sfr STATUS_SHAD;
304 __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
306 __at(0x0FE5) __sfr WREG_SHAD;
308 __at(0x0FE6) __sfr BSR_SHAD;
310 __at(0x0FE7) __sfr PCLATH_SHAD;
312 __at(0x0FE8) __sfr FSR0L_SHAD;
314 __at(0x0FE9) __sfr FSR0H_SHAD;
316 __at(0x0FEA) __sfr FSR1L_SHAD;
318 __at(0x0FEB) __sfr FSR1H_SHAD;
320 __at(0x0FED) __sfr STKPTR;
322 __at(0x0FEE) __sfr TOSL;
324 __at(0x0FEF) __sfr TOSH;