struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / lib / pic14 / libdev / pic16lf1906.c
blob0316a8310550b7686e4291c566e89991e8ec23c8
1 /*
2 * This definitions of the PIC16LF1906 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:21 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 <pic16lf1906.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(0x0010) __sfr PORTE;
70 __at(0x0010) volatile __PORTEbits_t PORTEbits;
72 __at(0x0011) __sfr PIR1;
73 __at(0x0011) volatile __PIR1bits_t PIR1bits;
75 __at(0x0012) __sfr PIR2;
76 __at(0x0012) volatile __PIR2bits_t PIR2bits;
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(0x008C) __sfr TRISA;
93 __at(0x008C) volatile __TRISAbits_t TRISAbits;
95 __at(0x008D) __sfr TRISB;
96 __at(0x008D) volatile __TRISBbits_t TRISBbits;
98 __at(0x008E) __sfr TRISC;
99 __at(0x008E) volatile __TRISCbits_t TRISCbits;
101 __at(0x0090) __sfr TRISE;
103 __at(0x0091) __sfr PIE1;
104 __at(0x0091) volatile __PIE1bits_t PIE1bits;
106 __at(0x0092) __sfr PIE2;
107 __at(0x0092) volatile __PIE2bits_t PIE2bits;
109 __at(0x0095) __sfr OPTION_REG;
110 __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
112 __at(0x0096) __sfr PCON;
113 __at(0x0096) volatile __PCONbits_t PCONbits;
115 __at(0x0097) __sfr WDTCON;
116 __at(0x0097) volatile __WDTCONbits_t WDTCONbits;
118 __at(0x0099) __sfr OSCCON;
119 __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
121 __at(0x009A) __sfr OSCSTAT;
122 __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
124 __at(0x009B) __sfr ADRES;
126 __at(0x009B) __sfr ADRESL;
128 __at(0x009C) __sfr ADRESH;
130 __at(0x009D) __sfr ADCON0;
131 __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
133 __at(0x009E) __sfr ADCON1;
134 __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
136 __at(0x010C) __sfr LATA;
137 __at(0x010C) volatile __LATAbits_t LATAbits;
139 __at(0x010D) __sfr LATB;
140 __at(0x010D) volatile __LATBbits_t LATBbits;
142 __at(0x010E) __sfr LATC;
143 __at(0x010E) volatile __LATCbits_t LATCbits;
145 __at(0x0116) __sfr BORCON;
146 __at(0x0116) volatile __BORCONbits_t BORCONbits;
148 __at(0x0117) __sfr FVRCON;
149 __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
151 __at(0x018C) __sfr ANSELA;
152 __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
154 __at(0x018D) __sfr ANSELB;
155 __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
157 __at(0x0191) __sfr PMADR;
159 __at(0x0191) __sfr PMADRL;
161 __at(0x0192) __sfr PMADRH;
163 __at(0x0193) __sfr PMDAT;
165 __at(0x0193) __sfr PMDATL;
167 __at(0x0194) __sfr PMDATH;
169 __at(0x0195) __sfr PMCON1;
170 __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
172 __at(0x0196) __sfr PMCON2;
174 __at(0x0199) __sfr RC1REG;
176 __at(0x0199) __sfr RCREG;
178 __at(0x0199) __sfr RCREG1;
180 __at(0x019A) __sfr TX1REG;
182 __at(0x019A) __sfr TXREG;
184 __at(0x019A) __sfr TXREG1;
186 __at(0x019B) __sfr SP1BRG;
188 __at(0x019B) __sfr SP1BRGL;
189 __at(0x019B) volatile __SP1BRGLbits_t SP1BRGLbits;
191 __at(0x019B) __sfr SPBRG;
192 __at(0x019B) volatile __SPBRGbits_t SPBRGbits;
194 __at(0x019B) __sfr SPBRGL;
195 __at(0x019B) volatile __SPBRGLbits_t SPBRGLbits;
197 __at(0x019B) __sfr SPBRGL1;
198 __at(0x019B) volatile __SPBRGL1bits_t SPBRGL1bits;
200 __at(0x019C) __sfr SP1BRGH;
201 __at(0x019C) volatile __SP1BRGHbits_t SP1BRGHbits;
203 __at(0x019C) __sfr SPBRGH;
204 __at(0x019C) volatile __SPBRGHbits_t SPBRGHbits;
206 __at(0x019C) __sfr SPBRGH1;
207 __at(0x019C) volatile __SPBRGH1bits_t SPBRGH1bits;
209 __at(0x019D) __sfr RC1STA;
210 __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
212 __at(0x019D) __sfr RCSTA;
213 __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
215 __at(0x019D) __sfr RCSTA1;
216 __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
218 __at(0x019E) __sfr TX1STA;
219 __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
221 __at(0x019E) __sfr TXSTA;
222 __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
224 __at(0x019E) __sfr TXSTA1;
225 __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
227 __at(0x019F) __sfr BAUD1CON;
228 __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
230 __at(0x019F) __sfr BAUDCON;
231 __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
233 __at(0x019F) __sfr BAUDCON1;
234 __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
236 __at(0x020D) __sfr WPUB;
237 __at(0x020D) volatile __WPUBbits_t WPUBbits;
239 __at(0x0210) __sfr WPUE;
240 __at(0x0210) volatile __WPUEbits_t WPUEbits;
242 __at(0x0394) __sfr IOCBP;
243 __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
245 __at(0x0395) __sfr IOCBN;
246 __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
248 __at(0x0396) __sfr IOCBF;
249 __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
251 __at(0x0791) __sfr LCDCON;
252 __at(0x0791) volatile __LCDCONbits_t LCDCONbits;
254 __at(0x0792) __sfr LCDPS;
255 __at(0x0792) volatile __LCDPSbits_t LCDPSbits;
257 __at(0x0793) __sfr LCDREF;
258 __at(0x0793) volatile __LCDREFbits_t LCDREFbits;
260 __at(0x0794) __sfr LCDCST;
261 __at(0x0794) volatile __LCDCSTbits_t LCDCSTbits;
263 __at(0x0795) __sfr LCDRL;
264 __at(0x0795) volatile __LCDRLbits_t LCDRLbits;
266 __at(0x0798) __sfr LCDSE0;
267 __at(0x0798) volatile __LCDSE0bits_t LCDSE0bits;
269 __at(0x0799) __sfr LCDSE1;
270 __at(0x0799) volatile __LCDSE1bits_t LCDSE1bits;
272 __at(0x079B) __sfr LCDSE3;
273 __at(0x079B) volatile __LCDSE3bits_t LCDSE3bits;
275 __at(0x07A0) __sfr LCDDATA0;
276 __at(0x07A0) volatile __LCDDATA0bits_t LCDDATA0bits;
278 __at(0x07A1) __sfr LCDDATA1;
279 __at(0x07A1) volatile __LCDDATA1bits_t LCDDATA1bits;
281 __at(0x07A3) __sfr LCDDATA3;
282 __at(0x07A3) volatile __LCDDATA3bits_t LCDDATA3bits;
284 __at(0x07A4) __sfr LCDDATA4;
285 __at(0x07A4) volatile __LCDDATA4bits_t LCDDATA4bits;
287 __at(0x07A6) __sfr LCDDATA6;
288 __at(0x07A6) volatile __LCDDATA6bits_t LCDDATA6bits;
290 __at(0x07A7) __sfr LCDDATA7;
291 __at(0x07A7) volatile __LCDDATA7bits_t LCDDATA7bits;
293 __at(0x07A9) __sfr LCDDATA9;
294 __at(0x07A9) volatile __LCDDATA9bits_t LCDDATA9bits;
296 __at(0x07AA) __sfr LCDDATA10;
297 __at(0x07AA) volatile __LCDDATA10bits_t LCDDATA10bits;
299 __at(0x07AC) __sfr LCDDATA12;
300 __at(0x07AC) volatile __LCDDATA12bits_t LCDDATA12bits;
302 __at(0x07AF) __sfr LCDDATA15;
303 __at(0x07AF) volatile __LCDDATA15bits_t LCDDATA15bits;
305 __at(0x07B2) __sfr LCDDATA18;
306 __at(0x07B2) volatile __LCDDATA18bits_t LCDDATA18bits;
308 __at(0x07B5) __sfr LCDDATA21;
309 __at(0x07B5) volatile __LCDDATA21bits_t LCDDATA21bits;
311 __at(0x0FE4) __sfr STATUS_SHAD;
312 __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
314 __at(0x0FE5) __sfr WREG_SHAD;
316 __at(0x0FE6) __sfr BSR_SHAD;
318 __at(0x0FE7) __sfr PCLATH_SHAD;
320 __at(0x0FE8) __sfr FSR0L_SHAD;
322 __at(0x0FE9) __sfr FSR0H_SHAD;
324 __at(0x0FEA) __sfr FSR1L_SHAD;
326 __at(0x0FEB) __sfr FSR1H_SHAD;
328 __at(0x0FED) __sfr STKPTR;
330 __at(0x0FEE) __sfr TOSL;
332 __at(0x0FEF) __sfr TOSH;