struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / lib / pic14 / libdev / pic16lf1703.c
blob478e62462b0118666a71dde09f9874ba735c75c3
1 /*
2 * This definitions of the PIC16LF1703 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:11 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 <pic16lf1703.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(0x000E) __sfr PORTC;
64 __at(0x000E) volatile __PORTCbits_t PORTCbits;
66 __at(0x0011) __sfr PIR1;
67 __at(0x0011) volatile __PIR1bits_t PIR1bits;
69 __at(0x0012) __sfr PIR2;
70 __at(0x0012) volatile __PIR2bits_t PIR2bits;
72 __at(0x0013) __sfr PIR3;
73 __at(0x0013) volatile __PIR3bits_t PIR3bits;
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(0x008E) __sfr TRISC;
100 __at(0x008E) volatile __TRISCbits_t TRISCbits;
102 __at(0x0091) __sfr PIE1;
103 __at(0x0091) volatile __PIE1bits_t PIE1bits;
105 __at(0x0092) __sfr PIE2;
106 __at(0x0092) volatile __PIE2bits_t PIE2bits;
108 __at(0x0093) __sfr PIE3;
109 __at(0x0093) volatile __PIE3bits_t PIE3bits;
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(0x0098) __sfr OSCTUNE;
121 __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
123 __at(0x0099) __sfr OSCCON;
124 __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
126 __at(0x009A) __sfr OSCSTAT;
127 __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
129 __at(0x009B) __sfr ADRES;
131 __at(0x009B) __sfr ADRESL;
133 __at(0x009C) __sfr ADRESH;
135 __at(0x009D) __sfr ADCON0;
136 __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
138 __at(0x009E) __sfr ADCON1;
139 __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
141 __at(0x009F) __sfr ADCON2;
142 __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
144 __at(0x010C) __sfr LATA;
145 __at(0x010C) volatile __LATAbits_t LATAbits;
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(0x011C) __sfr ZCD1CON;
157 __at(0x011C) volatile __ZCD1CONbits_t ZCD1CONbits;
159 __at(0x018C) __sfr ANSELA;
160 __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
162 __at(0x018E) __sfr ANSELC;
163 __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
165 __at(0x0191) __sfr PMADR;
167 __at(0x0191) __sfr PMADRL;
169 __at(0x0192) __sfr PMADRH;
171 __at(0x0193) __sfr PMDAT;
173 __at(0x0193) __sfr PMDATL;
175 __at(0x0194) __sfr PMDATH;
177 __at(0x0195) __sfr PMCON1;
178 __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
180 __at(0x0196) __sfr PMCON2;
182 __at(0x020C) __sfr WPUA;
183 __at(0x020C) volatile __WPUAbits_t WPUAbits;
185 __at(0x020E) __sfr WPUC;
186 __at(0x020E) volatile __WPUCbits_t WPUCbits;
188 __at(0x0211) __sfr SSP1BUF;
189 __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
191 __at(0x0211) __sfr SSPBUF;
192 __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
194 __at(0x0212) __sfr SSP1ADD;
195 __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
197 __at(0x0212) __sfr SSPADD;
198 __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
200 __at(0x0213) __sfr SSP1MSK;
201 __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
203 __at(0x0213) __sfr SSPMSK;
204 __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
206 __at(0x0214) __sfr SSP1STAT;
207 __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
209 __at(0x0214) __sfr SSPSTAT;
210 __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
212 __at(0x0215) __sfr SSP1CON;
213 __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
215 __at(0x0215) __sfr SSP1CON1;
216 __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
218 __at(0x0215) __sfr SSPCON;
219 __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
221 __at(0x0215) __sfr SSPCON1;
222 __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
224 __at(0x0216) __sfr SSP1CON2;
225 __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
227 __at(0x0216) __sfr SSPCON2;
228 __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
230 __at(0x0217) __sfr SSP1CON3;
231 __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
233 __at(0x0217) __sfr SSPCON3;
234 __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
236 __at(0x028C) __sfr ODCONA;
237 __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
239 __at(0x028E) __sfr ODCONC;
240 __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
242 __at(0x0291) __sfr CCPR1;
244 __at(0x0291) __sfr CCPR1L;
246 __at(0x0292) __sfr CCPR1H;
248 __at(0x0293) __sfr CCP1CON;
249 __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
251 __at(0x0293) __sfr ECCP1CON;
252 __at(0x0293) volatile __ECCP1CONbits_t ECCP1CONbits;
254 __at(0x0298) __sfr CCPR2;
256 __at(0x0298) __sfr CCPR2L;
258 __at(0x0299) __sfr CCPR2H;
260 __at(0x029A) __sfr CCP2CON;
261 __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
263 __at(0x029A) __sfr ECCP2CON;
264 __at(0x029A) volatile __ECCP2CONbits_t ECCP2CONbits;
266 __at(0x030C) __sfr SLRCONA;
267 __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
269 __at(0x030E) __sfr SLRCONC;
270 __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
272 __at(0x038C) __sfr INLVLA;
273 __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
275 __at(0x038E) __sfr INLVLC;
276 __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
278 __at(0x0391) __sfr IOCAP;
279 __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
281 __at(0x0392) __sfr IOCAN;
282 __at(0x0392) volatile __IOCANbits_t IOCANbits;
284 __at(0x0393) __sfr IOCAF;
285 __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
287 __at(0x0397) __sfr IOCCP;
288 __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
290 __at(0x0398) __sfr IOCCN;
291 __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
293 __at(0x0399) __sfr IOCCF;
294 __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
296 __at(0x0511) __sfr OPA1CON;
297 __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits;
299 __at(0x0515) __sfr OPA2CON;
300 __at(0x0515) volatile __OPA2CONbits_t OPA2CONbits;
302 __at(0x0E0F) __sfr PPSLOCK;
303 __at(0x0E0F) volatile __PPSLOCKbits_t PPSLOCKbits;
305 __at(0x0E10) __sfr INTPPS;
307 __at(0x0E11) __sfr T0CKIPPS;
309 __at(0x0E12) __sfr T1CKIPPS;
311 __at(0x0E13) __sfr T1GPPS;
313 __at(0x0E14) __sfr CCP1PPS;
315 __at(0x0E15) __sfr CCP2PPS;
317 __at(0x0E20) __sfr SSPCLKPPS;
319 __at(0x0E21) __sfr SSPDATPPS;
321 __at(0x0E22) __sfr SSPSSPPS;
323 __at(0x0E90) __sfr RA0PPS;
325 __at(0x0E91) __sfr RA1PPS;
327 __at(0x0E92) __sfr RA2PPS;
329 __at(0x0E94) __sfr RA4PPS;
331 __at(0x0E95) __sfr RA5PPS;
333 __at(0x0EA0) __sfr RC0PPS;
335 __at(0x0EA1) __sfr RC1PPS;
337 __at(0x0EA2) __sfr RC2PPS;
339 __at(0x0EA3) __sfr RC3PPS;
341 __at(0x0EA4) __sfr RC4PPS;
343 __at(0x0EA5) __sfr RC5PPS;
345 __at(0x0F9E) __sfr ICDBK0H;
346 __at(0x0F9E) volatile __ICDBK0Hbits_t ICDBK0Hbits;
348 __at(0x0FE4) __sfr STATUS_SHAD;
349 __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
351 __at(0x0FE5) __sfr WREG_SHAD;
353 __at(0x0FE6) __sfr BSR_SHAD;
355 __at(0x0FE7) __sfr PCLATH_SHAD;
357 __at(0x0FE8) __sfr FSR0L_SHAD;
359 __at(0x0FE9) __sfr FSR0H_SHAD;
361 __at(0x0FEA) __sfr FSR1L_SHAD;
363 __at(0x0FEB) __sfr FSR1H_SHAD;
365 __at(0x0FED) __sfr STKPTR;
367 __at(0x0FEE) __sfr TOSL;
369 __at(0x0FEF) __sfr TOSH;