struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / lib / pic14 / libdev / pic16f1707.c
blob79c36529266d5be22a01a682c4b11378de7d7cdf
1 /*
2 * This definitions of the PIC16F1707 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 <pic16f1707.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(0x0013) __sfr PIR3;
76 __at(0x0013) volatile __PIR3bits_t PIR3bits;
78 __at(0x0015) __sfr TMR0;
80 __at(0x0016) __sfr TMR1;
82 __at(0x0016) __sfr TMR1L;
84 __at(0x0017) __sfr TMR1H;
86 __at(0x0018) __sfr T1CON;
87 __at(0x0018) volatile __T1CONbits_t T1CONbits;
89 __at(0x0019) __sfr T1GCON;
90 __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
92 __at(0x001A) __sfr TMR2;
94 __at(0x001B) __sfr PR2;
96 __at(0x001C) __sfr T2CON;
97 __at(0x001C) volatile __T2CONbits_t T2CONbits;
99 __at(0x008C) __sfr TRISA;
100 __at(0x008C) volatile __TRISAbits_t TRISAbits;
102 __at(0x008D) __sfr TRISB;
103 __at(0x008D) volatile __TRISBbits_t TRISBbits;
105 __at(0x008E) __sfr TRISC;
106 __at(0x008E) volatile __TRISCbits_t TRISCbits;
108 __at(0x0091) __sfr PIE1;
109 __at(0x0091) volatile __PIE1bits_t PIE1bits;
111 __at(0x0092) __sfr PIE2;
112 __at(0x0092) volatile __PIE2bits_t PIE2bits;
114 __at(0x0093) __sfr PIE3;
115 __at(0x0093) volatile __PIE3bits_t PIE3bits;
117 __at(0x0095) __sfr OPTION_REG;
118 __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
120 __at(0x0096) __sfr PCON;
121 __at(0x0096) volatile __PCONbits_t PCONbits;
123 __at(0x0097) __sfr WDTCON;
124 __at(0x0097) volatile __WDTCONbits_t WDTCONbits;
126 __at(0x0098) __sfr OSCTUNE;
127 __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
129 __at(0x0099) __sfr OSCCON;
130 __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
132 __at(0x009A) __sfr OSCSTAT;
133 __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
135 __at(0x009B) __sfr ADRES;
137 __at(0x009B) __sfr ADRESL;
139 __at(0x009C) __sfr ADRESH;
141 __at(0x009D) __sfr ADCON0;
142 __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
144 __at(0x009E) __sfr ADCON1;
145 __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
147 __at(0x009F) __sfr ADCON2;
148 __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
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(0x0116) __sfr BORCON;
160 __at(0x0116) volatile __BORCONbits_t BORCONbits;
162 __at(0x0117) __sfr FVRCON;
163 __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
165 __at(0x011C) __sfr ZCD1CON;
166 __at(0x011C) volatile __ZCD1CONbits_t ZCD1CONbits;
168 __at(0x018C) __sfr ANSELA;
169 __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
171 __at(0x018D) __sfr ANSELB;
172 __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
174 __at(0x018E) __sfr ANSELC;
175 __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
177 __at(0x0191) __sfr PMADR;
179 __at(0x0191) __sfr PMADRL;
181 __at(0x0192) __sfr PMADRH;
183 __at(0x0193) __sfr PMDAT;
185 __at(0x0193) __sfr PMDATL;
187 __at(0x0194) __sfr PMDATH;
189 __at(0x0195) __sfr PMCON1;
190 __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
192 __at(0x0196) __sfr PMCON2;
194 __at(0x0197) __sfr VREGCON;
195 __at(0x0197) volatile __VREGCONbits_t VREGCONbits;
197 __at(0x020C) __sfr WPUA;
198 __at(0x020C) volatile __WPUAbits_t WPUAbits;
200 __at(0x020D) __sfr WPUB;
201 __at(0x020D) volatile __WPUBbits_t WPUBbits;
203 __at(0x020E) __sfr WPUC;
204 __at(0x020E) volatile __WPUCbits_t WPUCbits;
206 __at(0x0211) __sfr SSP1BUF;
207 __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
209 __at(0x0211) __sfr SSPBUF;
210 __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
212 __at(0x0212) __sfr SSP1ADD;
213 __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
215 __at(0x0212) __sfr SSPADD;
216 __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
218 __at(0x0213) __sfr SSP1MSK;
219 __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
221 __at(0x0213) __sfr SSPMSK;
222 __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
224 __at(0x0214) __sfr SSP1STAT;
225 __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
227 __at(0x0214) __sfr SSPSTAT;
228 __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
230 __at(0x0215) __sfr SSP1CON;
231 __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
233 __at(0x0215) __sfr SSP1CON1;
234 __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
236 __at(0x0215) __sfr SSPCON;
237 __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
239 __at(0x0215) __sfr SSPCON1;
240 __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
242 __at(0x0216) __sfr SSP1CON2;
243 __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
245 __at(0x0216) __sfr SSPCON2;
246 __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
248 __at(0x0217) __sfr SSP1CON3;
249 __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
251 __at(0x0217) __sfr SSPCON3;
252 __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
254 __at(0x028C) __sfr ODCONA;
255 __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
257 __at(0x028D) __sfr ODCONB;
258 __at(0x028D) volatile __ODCONBbits_t ODCONBbits;
260 __at(0x028E) __sfr ODCONC;
261 __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
263 __at(0x0291) __sfr CCPR1;
265 __at(0x0291) __sfr CCPR1L;
267 __at(0x0292) __sfr CCPR1H;
269 __at(0x0293) __sfr CCP1CON;
270 __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
272 __at(0x0293) __sfr ECCP1CON;
273 __at(0x0293) volatile __ECCP1CONbits_t ECCP1CONbits;
275 __at(0x0298) __sfr CCPR2;
277 __at(0x0298) __sfr CCPR2L;
279 __at(0x0299) __sfr CCPR2H;
281 __at(0x029A) __sfr CCP2CON;
282 __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
284 __at(0x029A) __sfr ECCP2CON;
285 __at(0x029A) volatile __ECCP2CONbits_t ECCP2CONbits;
287 __at(0x030C) __sfr SLRCONA;
288 __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
290 __at(0x030D) __sfr SLRCONB;
291 __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits;
293 __at(0x030E) __sfr SLRCONC;
294 __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
296 __at(0x038C) __sfr INLVLA;
297 __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
299 __at(0x038D) __sfr INLVLB;
300 __at(0x038D) volatile __INLVLBbits_t INLVLBbits;
302 __at(0x038E) __sfr INLVLC;
303 __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
305 __at(0x0391) __sfr IOCAP;
306 __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
308 __at(0x0392) __sfr IOCAN;
309 __at(0x0392) volatile __IOCANbits_t IOCANbits;
311 __at(0x0393) __sfr IOCAF;
312 __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
314 __at(0x0394) __sfr IOCBP;
315 __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
317 __at(0x0395) __sfr IOCBN;
318 __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
320 __at(0x0396) __sfr IOCBF;
321 __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
323 __at(0x0397) __sfr IOCCP;
324 __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
326 __at(0x0398) __sfr IOCCN;
327 __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
329 __at(0x0399) __sfr IOCCF;
330 __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
332 __at(0x0511) __sfr OPA1CON;
333 __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits;
335 __at(0x0515) __sfr OPA2CON;
336 __at(0x0515) volatile __OPA2CONbits_t OPA2CONbits;
338 __at(0x0E0F) __sfr PPSLOCK;
339 __at(0x0E0F) volatile __PPSLOCKbits_t PPSLOCKbits;
341 __at(0x0E10) __sfr INTPPS;
343 __at(0x0E11) __sfr T0CKIPPS;
345 __at(0x0E12) __sfr T1CKIPPS;
347 __at(0x0E13) __sfr T1GPPS;
349 __at(0x0E14) __sfr CCP1PPS;
351 __at(0x0E15) __sfr CCP2PPS;
353 __at(0x0E20) __sfr SSPCLKPPS;
355 __at(0x0E21) __sfr SSPDATPPS;
357 __at(0x0E22) __sfr SSPSSPPS;
359 __at(0x0E90) __sfr RA0PPS;
361 __at(0x0E91) __sfr RA1PPS;
363 __at(0x0E92) __sfr RA2PPS;
365 __at(0x0E94) __sfr RA4PPS;
367 __at(0x0E95) __sfr RA5PPS;
369 __at(0x0E9C) __sfr RB4PPS;
371 __at(0x0E9D) __sfr RB5PPS;
373 __at(0x0E9E) __sfr RB6PPS;
375 __at(0x0E9F) __sfr RB7PPS;
377 __at(0x0EA0) __sfr RC0PPS;
379 __at(0x0EA1) __sfr RC1PPS;
381 __at(0x0EA2) __sfr RC2PPS;
383 __at(0x0EA3) __sfr RC3PPS;
385 __at(0x0EA4) __sfr RC4PPS;
387 __at(0x0EA5) __sfr RC5PPS;
389 __at(0x0EA6) __sfr RC6PPS;
391 __at(0x0EA7) __sfr RC7PPS;
393 __at(0x0F9E) __sfr ICDBK0H;
394 __at(0x0F9E) volatile __ICDBK0Hbits_t ICDBK0Hbits;
396 __at(0x0FE4) __sfr STATUS_SHAD;
397 __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
399 __at(0x0FE5) __sfr WREG_SHAD;
401 __at(0x0FE6) __sfr BSR_SHAD;
403 __at(0x0FE7) __sfr PCLATH_SHAD;
405 __at(0x0FE8) __sfr FSR0L_SHAD;
407 __at(0x0FE9) __sfr FSR0H_SHAD;
409 __at(0x0FEA) __sfr FSR1L_SHAD;
411 __at(0x0FEB) __sfr FSR1H_SHAD;
413 __at(0x0FED) __sfr STKPTR;
415 __at(0x0FEE) __sfr TOSL;
417 __at(0x0FEF) __sfr TOSH;