struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / lib / pic14 / libdev / pic16f1458.c
blob8b5a732d1671eaf176d3ccf6a844e731245a5b57
1 /*
2 * This definitions of the PIC16F1458 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:04 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 <pic16f1458.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(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(0x008D) __sfr TRISB;
100 __at(0x008D) volatile __TRISBbits_t TRISBbits;
102 __at(0x008E) __sfr TRISC;
103 __at(0x008E) volatile __TRISCbits_t TRISCbits;
105 __at(0x0091) __sfr PIE1;
106 __at(0x0091) volatile __PIE1bits_t PIE1bits;
108 __at(0x0092) __sfr PIE2;
109 __at(0x0092) volatile __PIE2bits_t PIE2bits;
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(0x010D) __sfr LATB;
148 __at(0x010D) volatile __LATBbits_t LATBbits;
150 __at(0x010E) __sfr LATC;
151 __at(0x010E) volatile __LATCbits_t LATCbits;
153 __at(0x0111) __sfr CM1CON0;
154 __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits;
156 __at(0x0112) __sfr CM1CON1;
157 __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits;
159 __at(0x0113) __sfr CM2CON0;
160 __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits;
162 __at(0x0114) __sfr CM2CON1;
163 __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits;
165 __at(0x0115) __sfr CMOUT;
166 __at(0x0115) volatile __CMOUTbits_t CMOUTbits;
168 __at(0x0116) __sfr BORCON;
169 __at(0x0116) volatile __BORCONbits_t BORCONbits;
171 __at(0x0117) __sfr FVRCON;
172 __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
174 __at(0x0118) __sfr DACCON0;
175 __at(0x0118) volatile __DACCON0bits_t DACCON0bits;
177 __at(0x0119) __sfr DACCON1;
178 __at(0x0119) volatile __DACCON1bits_t DACCON1bits;
180 __at(0x011D) __sfr APFCON;
181 __at(0x011D) volatile __APFCONbits_t APFCONbits;
183 __at(0x018C) __sfr ANSELA;
184 __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
186 __at(0x018D) __sfr ANSELB;
187 __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
189 __at(0x018E) __sfr ANSELC;
190 __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
192 __at(0x0191) __sfr PMADR;
194 __at(0x0191) __sfr PMADRL;
196 __at(0x0192) __sfr PMADRH;
198 __at(0x0193) __sfr PMDAT;
200 __at(0x0193) __sfr PMDATL;
202 __at(0x0194) __sfr PMDATH;
204 __at(0x0195) __sfr PMCON1;
205 __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
207 __at(0x0196) __sfr PMCON2;
209 __at(0x0197) __sfr VREGCON;
210 __at(0x0197) volatile __VREGCONbits_t VREGCONbits;
212 __at(0x0199) __sfr RCREG;
214 __at(0x019A) __sfr TXREG;
216 __at(0x019B) __sfr SPBRGL;
218 __at(0x019C) __sfr SPBRGH;
220 __at(0x019D) __sfr RCSTA;
221 __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
223 __at(0x019E) __sfr TXSTA;
224 __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
226 __at(0x019F) __sfr BAUDCON;
227 __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
229 __at(0x020C) __sfr WPUA;
230 __at(0x020C) volatile __WPUAbits_t WPUAbits;
232 __at(0x020D) __sfr WPUB;
233 __at(0x020D) volatile __WPUBbits_t WPUBbits;
235 __at(0x0211) __sfr SSP1BUF;
237 __at(0x0211) __sfr SSPBUF;
239 __at(0x0212) __sfr SSP1ADD;
241 __at(0x0212) __sfr SSPADD;
243 __at(0x0213) __sfr SSP1MSK;
245 __at(0x0213) __sfr SSPMSK;
247 __at(0x0214) __sfr SSP1STAT;
248 __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
250 __at(0x0214) __sfr SSPSTAT;
251 __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
253 __at(0x0215) __sfr SSP1CON1;
254 __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
256 __at(0x0215) __sfr SSPCON;
257 __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
259 __at(0x0215) __sfr SSPCON1;
260 __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
262 __at(0x0216) __sfr SSP1CON2;
263 __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
265 __at(0x0216) __sfr SSPCON2;
266 __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
268 __at(0x0217) __sfr SSP1CON3;
269 __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
271 __at(0x0217) __sfr SSPCON3;
272 __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
274 __at(0x0391) __sfr IOCAP;
275 __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
277 __at(0x0392) __sfr IOCAN;
278 __at(0x0392) volatile __IOCANbits_t IOCANbits;
280 __at(0x0393) __sfr IOCAF;
281 __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
283 __at(0x0394) __sfr IOCBP;
284 __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
286 __at(0x0395) __sfr IOCBN;
287 __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
289 __at(0x0396) __sfr IOCBF;
290 __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
292 __at(0x039A) __sfr CLKRCON;
293 __at(0x039A) volatile __CLKRCONbits_t CLKRCONbits;
295 __at(0x039B) __sfr CRCON;
296 __at(0x039B) volatile __CRCONbits_t CRCONbits;
298 __at(0x0611) __sfr PWM1DCL;
299 __at(0x0611) volatile __PWM1DCLbits_t PWM1DCLbits;
301 __at(0x0612) __sfr PWM1DCH;
302 __at(0x0612) volatile __PWM1DCHbits_t PWM1DCHbits;
304 __at(0x0613) __sfr PWM1CON;
305 __at(0x0613) volatile __PWM1CONbits_t PWM1CONbits;
307 __at(0x0613) __sfr PWM1CON0;
308 __at(0x0613) volatile __PWM1CON0bits_t PWM1CON0bits;
310 __at(0x0614) __sfr PWM2DCL;
311 __at(0x0614) volatile __PWM2DCLbits_t PWM2DCLbits;
313 __at(0x0615) __sfr PWM2DCH;
314 __at(0x0615) volatile __PWM2DCHbits_t PWM2DCHbits;
316 __at(0x0616) __sfr PWM2CON;
317 __at(0x0616) volatile __PWM2CONbits_t PWM2CONbits;
319 __at(0x0691) __sfr CWG1DBR;
320 __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits;
322 __at(0x0692) __sfr CWG1DBF;
323 __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits;
325 __at(0x0693) __sfr CWG1CON0;
326 __at(0x0693) volatile __CWG1CON0bits_t CWG1CON0bits;
328 __at(0x0694) __sfr CWG1CON1;
329 __at(0x0694) volatile __CWG1CON1bits_t CWG1CON1bits;
331 __at(0x0695) __sfr CWG1CON2;
332 __at(0x0695) volatile __CWG1CON2bits_t CWG1CON2bits;
334 __at(0x0E10) __sfr CRRC;
336 __at(0x0E10) __sfr TST_CRRCL;
338 __at(0x0E11) __sfr TST_CRRCH;
340 __at(0x0E12) __sfr TST_CRLT;
342 __at(0x0E8E) __sfr UCON;
343 __at(0x0E8E) volatile __UCONbits_t UCONbits;
345 __at(0x0E8F) __sfr USTAT;
346 __at(0x0E8F) volatile __USTATbits_t USTATbits;
348 __at(0x0E90) __sfr UIR;
349 __at(0x0E90) volatile __UIRbits_t UIRbits;
351 __at(0x0E91) __sfr UCFG;
352 __at(0x0E91) volatile __UCFGbits_t UCFGbits;
354 __at(0x0E92) __sfr UIE;
355 __at(0x0E92) volatile __UIEbits_t UIEbits;
357 __at(0x0E93) __sfr UEIR;
358 __at(0x0E93) volatile __UEIRbits_t UEIRbits;
360 __at(0x0E94) __sfr UFRM;
362 __at(0x0E94) __sfr UFRMH;
363 __at(0x0E94) volatile __UFRMHbits_t UFRMHbits;
365 __at(0x0E95) __sfr UFRML;
366 __at(0x0E95) volatile __UFRMLbits_t UFRMLbits;
368 __at(0x0E96) __sfr UADDR;
369 __at(0x0E96) volatile __UADDRbits_t UADDRbits;
371 __at(0x0E97) __sfr UEIE;
372 __at(0x0E97) volatile __UEIEbits_t UEIEbits;
374 __at(0x0E98) __sfr UEP0;
375 __at(0x0E98) volatile __UEP0bits_t UEP0bits;
377 __at(0x0E99) __sfr UEP1;
378 __at(0x0E99) volatile __UEP1bits_t UEP1bits;
380 __at(0x0E9A) __sfr UEP2;
381 __at(0x0E9A) volatile __UEP2bits_t UEP2bits;
383 __at(0x0E9B) __sfr UEP3;
384 __at(0x0E9B) volatile __UEP3bits_t UEP3bits;
386 __at(0x0E9C) __sfr UEP4;
387 __at(0x0E9C) volatile __UEP4bits_t UEP4bits;
389 __at(0x0E9D) __sfr UEP5;
390 __at(0x0E9D) volatile __UEP5bits_t UEP5bits;
392 __at(0x0E9E) __sfr UEP6;
393 __at(0x0E9E) volatile __UEP6bits_t UEP6bits;
395 __at(0x0E9F) __sfr UEP7;
396 __at(0x0E9F) volatile __UEP7bits_t UEP7bits;
398 __at(0x0F8C) __sfr ICDIO;
399 __at(0x0F8C) volatile __ICDIObits_t ICDIObits;
401 __at(0x0F8D) __sfr ICDCON0;
402 __at(0x0F8D) volatile __ICDCON0bits_t ICDCON0bits;
404 __at(0x0F91) __sfr ICDSTAT;
405 __at(0x0F91) volatile __ICDSTATbits_t ICDSTATbits;
407 __at(0x0F95) __sfr DEVSEL;
408 __at(0x0F95) volatile __DEVSELbits_t DEVSELbits;
410 __at(0x0F96) __sfr ICDINSTL;
411 __at(0x0F96) volatile __ICDINSTLbits_t ICDINSTLbits;
413 __at(0x0F97) __sfr ICDINSTH;
414 __at(0x0F97) volatile __ICDINSTHbits_t ICDINSTHbits;
416 __at(0x0F9C) __sfr ICDBK0CON;
417 __at(0x0F9C) volatile __ICDBK0CONbits_t ICDBK0CONbits;
419 __at(0x0F9D) __sfr ICDBK0L;
420 __at(0x0F9D) volatile __ICDBK0Lbits_t ICDBK0Lbits;
422 __at(0x0F9E) __sfr ICDBK0H;
423 __at(0x0F9E) volatile __ICDBK0Hbits_t ICDBK0Hbits;
425 __at(0x0FE3) __sfr BSRICDSHAD;
427 __at(0x0FE4) __sfr STATUS_SHAD;
428 __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
430 __at(0x0FE5) __sfr WREG_SHAD;
432 __at(0x0FE6) __sfr BSR_SHAD;
434 __at(0x0FE7) __sfr PCLATH_SHAD;
436 __at(0x0FE8) __sfr FSR0L_SHAD;
438 __at(0x0FE9) __sfr FSR0H_SHAD;
440 __at(0x0FEA) __sfr FSR1L_SHAD;
442 __at(0x0FEB) __sfr FSR1H_SHAD;
444 __at(0x0FED) __sfr STKPTR;
446 __at(0x0FEE) __sfr TOSL;
448 __at(0x0FEF) __sfr TOSH;