struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / lib / pic14 / libdev / pic16f1827.c
blob1db9b98f080608b69493540637f78ff6fc5721c0
1 /*
2 * This definitions of the PIC16F1827 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:20 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 <pic16f1827.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(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(0x0014) __sfr PIR4;
76 __at(0x0014) volatile __PIR4bits_t PIR4bits;
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(0x001E) __sfr CPSCON0;
100 __at(0x001E) volatile __CPSCON0bits_t CPSCON0bits;
102 __at(0x001F) __sfr CPSCON1;
103 __at(0x001F) volatile __CPSCON1bits_t CPSCON1bits;
105 __at(0x008C) __sfr TRISA;
106 __at(0x008C) volatile __TRISAbits_t TRISAbits;
108 __at(0x008D) __sfr TRISB;
109 __at(0x008D) volatile __TRISBbits_t TRISBbits;
111 __at(0x0091) __sfr PIE1;
112 __at(0x0091) volatile __PIE1bits_t PIE1bits;
114 __at(0x0092) __sfr PIE2;
115 __at(0x0092) volatile __PIE2bits_t PIE2bits;
117 __at(0x0093) __sfr PIE3;
118 __at(0x0093) volatile __PIE3bits_t PIE3bits;
120 __at(0x0094) __sfr PIE4;
121 __at(0x0094) volatile __PIE4bits_t PIE4bits;
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(0x0098) __sfr OSCTUNE;
133 __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
135 __at(0x0099) __sfr OSCCON;
136 __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
138 __at(0x009A) __sfr OSCSTAT;
139 __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
141 __at(0x009B) __sfr ADRES;
143 __at(0x009B) __sfr ADRESL;
145 __at(0x009C) __sfr ADRESH;
147 __at(0x009D) __sfr ADCON0;
148 __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
150 __at(0x009E) __sfr ADCON1;
151 __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
153 __at(0x010C) __sfr LATA;
154 __at(0x010C) volatile __LATAbits_t LATAbits;
156 __at(0x010D) __sfr LATB;
157 __at(0x010D) volatile __LATBbits_t LATBbits;
159 __at(0x0111) __sfr CM1CON0;
160 __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits;
162 __at(0x0112) __sfr CM1CON1;
163 __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits;
165 __at(0x0113) __sfr CM2CON0;
166 __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits;
168 __at(0x0114) __sfr CM2CON1;
169 __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits;
171 __at(0x0115) __sfr CMOUT;
172 __at(0x0115) volatile __CMOUTbits_t CMOUTbits;
174 __at(0x0116) __sfr BORCON;
175 __at(0x0116) volatile __BORCONbits_t BORCONbits;
177 __at(0x0117) __sfr FVRCON;
178 __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
180 __at(0x0118) __sfr DACCON0;
181 __at(0x0118) volatile __DACCON0bits_t DACCON0bits;
183 __at(0x0119) __sfr DACCON1;
184 __at(0x0119) volatile __DACCON1bits_t DACCON1bits;
186 __at(0x011A) __sfr SRCON0;
187 __at(0x011A) volatile __SRCON0bits_t SRCON0bits;
189 __at(0x011B) __sfr SRCON1;
190 __at(0x011B) volatile __SRCON1bits_t SRCON1bits;
192 __at(0x011D) __sfr APFCON0;
193 __at(0x011D) volatile __APFCON0bits_t APFCON0bits;
195 __at(0x011E) __sfr APFCON1;
196 __at(0x011E) volatile __APFCON1bits_t APFCON1bits;
198 __at(0x018C) __sfr ANSELA;
199 __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
201 __at(0x018D) __sfr ANSELB;
202 __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
204 __at(0x0191) __sfr EEADR;
206 __at(0x0191) __sfr EEADRL;
208 __at(0x0192) __sfr EEADRH;
210 __at(0x0193) __sfr EEDAT;
212 __at(0x0193) __sfr EEDATL;
214 __at(0x0194) __sfr EEDATH;
216 __at(0x0195) __sfr EECON1;
217 __at(0x0195) volatile __EECON1bits_t EECON1bits;
219 __at(0x0196) __sfr EECON2;
221 __at(0x0199) __sfr RCREG;
223 __at(0x019A) __sfr TXREG;
225 __at(0x019B) __sfr SP1BRG;
227 __at(0x019B) __sfr SP1BRGL;
229 __at(0x019B) __sfr SPBRG;
231 __at(0x019B) __sfr SPBRGL;
233 __at(0x019C) __sfr SP1BRGH;
235 __at(0x019C) __sfr SPBRGH;
237 __at(0x019D) __sfr RCSTA;
238 __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
240 __at(0x019E) __sfr TXSTA;
241 __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
243 __at(0x019F) __sfr BAUDCON;
244 __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
246 __at(0x020C) __sfr WPUA;
247 __at(0x020C) volatile __WPUAbits_t WPUAbits;
249 __at(0x020D) __sfr WPUB;
250 __at(0x020D) volatile __WPUBbits_t WPUBbits;
252 __at(0x0211) __sfr SSP1BUF;
254 __at(0x0211) __sfr SSPBUF;
256 __at(0x0212) __sfr SSP1ADD;
258 __at(0x0212) __sfr SSPADD;
260 __at(0x0213) __sfr SSP1MSK;
262 __at(0x0213) __sfr SSPMSK;
264 __at(0x0214) __sfr SSP1STAT;
265 __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
267 __at(0x0214) __sfr SSPSTAT;
268 __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
270 __at(0x0215) __sfr SSP1CON1;
271 __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
273 __at(0x0215) __sfr SSPCON;
274 __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
276 __at(0x0215) __sfr SSPCON1;
277 __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
279 __at(0x0216) __sfr SSP1CON2;
280 __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
282 __at(0x0216) __sfr SSPCON2;
283 __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
285 __at(0x0217) __sfr SSP1CON3;
286 __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
288 __at(0x0217) __sfr SSPCON3;
289 __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
291 __at(0x0219) __sfr SSP2BUF;
293 __at(0x021A) __sfr SSP2ADD;
295 __at(0x021B) __sfr SSP2MSK;
297 __at(0x021C) __sfr SSP2STAT;
298 __at(0x021C) volatile __SSP2STATbits_t SSP2STATbits;
300 __at(0x021D) __sfr SSP2CON1;
301 __at(0x021D) volatile __SSP2CON1bits_t SSP2CON1bits;
303 __at(0x021E) __sfr SSP2CON2;
304 __at(0x021E) volatile __SSP2CON2bits_t SSP2CON2bits;
306 __at(0x021F) __sfr SSP2CON3;
307 __at(0x021F) volatile __SSP2CON3bits_t SSP2CON3bits;
309 __at(0x0291) __sfr CCPR1;
311 __at(0x0291) __sfr CCPR1L;
313 __at(0x0292) __sfr CCPR1H;
315 __at(0x0293) __sfr CCP1CON;
316 __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
318 __at(0x0294) __sfr PWM1CON;
319 __at(0x0294) volatile __PWM1CONbits_t PWM1CONbits;
321 __at(0x0295) __sfr CCP1AS;
322 __at(0x0295) volatile __CCP1ASbits_t CCP1ASbits;
324 __at(0x0295) __sfr ECCP1AS;
325 __at(0x0295) volatile __ECCP1ASbits_t ECCP1ASbits;
327 __at(0x0296) __sfr PSTR1CON;
328 __at(0x0296) volatile __PSTR1CONbits_t PSTR1CONbits;
330 __at(0x0298) __sfr CCPR2;
332 __at(0x0298) __sfr CCPR2L;
334 __at(0x0299) __sfr CCPR2H;
336 __at(0x029A) __sfr CCP2CON;
337 __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
339 __at(0x029B) __sfr PWM2CON;
340 __at(0x029B) volatile __PWM2CONbits_t PWM2CONbits;
342 __at(0x029C) __sfr CCP2AS;
343 __at(0x029C) volatile __CCP2ASbits_t CCP2ASbits;
345 __at(0x029C) __sfr ECCP2AS;
346 __at(0x029C) volatile __ECCP2ASbits_t ECCP2ASbits;
348 __at(0x029D) __sfr PSTR2CON;
349 __at(0x029D) volatile __PSTR2CONbits_t PSTR2CONbits;
351 __at(0x029E) __sfr CCPTMRS;
352 __at(0x029E) volatile __CCPTMRSbits_t CCPTMRSbits;
354 __at(0x029E) __sfr CCPTMRS0;
355 __at(0x029E) volatile __CCPTMRS0bits_t CCPTMRS0bits;
357 __at(0x0311) __sfr CCPR3;
359 __at(0x0311) __sfr CCPR3L;
361 __at(0x0312) __sfr CCPR3H;
363 __at(0x0313) __sfr CCP3CON;
364 __at(0x0313) volatile __CCP3CONbits_t CCP3CONbits;
366 __at(0x0318) __sfr CCPR4;
368 __at(0x0318) __sfr CCPR4L;
370 __at(0x0319) __sfr CCPR4H;
372 __at(0x031A) __sfr CCP4CON;
373 __at(0x031A) volatile __CCP4CONbits_t CCP4CONbits;
375 __at(0x0394) __sfr IOCBP;
376 __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
378 __at(0x0395) __sfr IOCBN;
379 __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
381 __at(0x0396) __sfr IOCBF;
382 __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
384 __at(0x039A) __sfr CLKRCON;
385 __at(0x039A) volatile __CLKRCONbits_t CLKRCONbits;
387 __at(0x039C) __sfr MDCON;
388 __at(0x039C) volatile __MDCONbits_t MDCONbits;
390 __at(0x039D) __sfr MDSRC;
391 __at(0x039D) volatile __MDSRCbits_t MDSRCbits;
393 __at(0x039E) __sfr MDCARL;
394 __at(0x039E) volatile __MDCARLbits_t MDCARLbits;
396 __at(0x039F) __sfr MDCARH;
397 __at(0x039F) volatile __MDCARHbits_t MDCARHbits;
399 __at(0x0415) __sfr TMR4;
401 __at(0x0416) __sfr PR4;
403 __at(0x0417) __sfr T4CON;
404 __at(0x0417) volatile __T4CONbits_t T4CONbits;
406 __at(0x041C) __sfr TMR6;
408 __at(0x041D) __sfr PR6;
410 __at(0x041E) __sfr T6CON;
411 __at(0x041E) volatile __T6CONbits_t T6CONbits;
413 __at(0x0FE4) __sfr STATUS_SHAD;
414 __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
416 __at(0x0FE5) __sfr WREG_SHAD;
418 __at(0x0FE6) __sfr BSR_SHAD;
420 __at(0x0FE7) __sfr PCLATH_SHAD;
422 __at(0x0FE8) __sfr FSR0L_SHAD;
424 __at(0x0FE9) __sfr FSR0H_SHAD;
426 __at(0x0FEA) __sfr FSR1L_SHAD;
428 __at(0x0FEB) __sfr FSR1H_SHAD;
430 __at(0x0FED) __sfr STKPTR;
432 __at(0x0FEE) __sfr TOSL;
434 __at(0x0FEF) __sfr TOSH;