+2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
+
+ * device/include/asm/pic16/features.h,
+ * pic18f*.h headers,
+ * device/include/pic16/adc.h,
+ * device/include/pic16/delay.h,
+ * device/include/pic16/i2c.h,
+ * device/include/pic16/malloc.h,
+ * device/include/pic16/stdio.h,
+ * device/include/pic16/stdlib.h,
+ * device/include/pic16/string.h,
+ * device/lib/pic16/libc/stdio/printf_tiny.c,
+ * device/lib/pic16/libc/stdio/printf_small.c,
+ * device/lib/pic16/libc/stdio/strmgpsim.c,
+ * device/lib/pic16/libc/stdio/strmmssp.c,
+ * device/lib/pic16/libc/stdio/strmusart.c,
+ * device/lib/pic16/libc/stdio/vfprintf.c,
+ * device/lib/pic16/libc/stdlib/ltoa.c,
+ * device/lib/pic16/libc/stdlib/putchar.c,
+ * device/lib/pic16/libc/stdlib/x_ftoa.c,
+ * device/lib/pic16/libc/stdlib/memchrpgm.c,
+ * device/lib/pic16/libc/stdlib/memchrram.c,
+ * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
+ * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
+ * device/lib/pic16/libio/adc/adcbusy.c,
+ * device/lib/pic16/libio/adc/adcread.c,
+ * device/lib/pic16/libio/adc/adcsetch.c,
+ * device/lib/pic16/libio/usart/ubaud.c,
+ * device/lib/pic16/libio/usart/ubusy.c,
+ * device/lib/pic16/libio/usart/udrdy.c,
+ * device/lib/pic16/libio/usart/uopen.c,
+ * device/lib/pic16/libio/usart/uputc.c,
+ * device/lib/pic16/libsdcc/gptr/gptrget1.c,
+ * device/lib/pic16/libsdcc/gptr/gptrget2.c,
+ * device/lib/pic16/libsdcc/gptr/gptrget3.c,
+ * device/lib/pic16/libsdcc/gptr/gptrget4.c,
+ * device/lib/pic16/libsdcc/gptr/gptrput1.c,
+ * device/lib/pic16/libsdcc/gptr/gptrput2.c,
+ * device/lib/pic16/libsdcc/gptr/gptrput3.c,
+ * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
+ specific keywords to double underlined form,
+ * device/lib/pic16/libc/Makefile.rules,
+ * device/lib/pic16/libsdcc/Makefile.rules,
+ * device/lib/pic16/libm/Makefile,
+ * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
+ to compile with C standard set in Makefile.common
+ * device/lib/pic16/libc/stdlib/Makefile: added new C sources
+ rand.c and crc.c in compilation process,
+ * device/lib/pic16/libsdcc/int/divuint.c,
+ * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
+ `c' from signed to unsigned,
+ * device/lib/pic16/startup/crt0.c,
+ * device/lib/pic16/startup/crt0i.c,
+ * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
+ keywords to double underlined form, bug fixes in _do_cinit function
+ which prevented the correct initialization of the .idata segment,
+ * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
+ core to enter a infinite loop
+ * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
+
2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
* src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
#define _FS_REENTRANT
#define _MATH_REENTRANT
-#define _CODE code
-#define _DATA data
+#define _CODE __code
+#define _DATA __data
#define _AUTOMEM
#define _STATMEM
void adc_conv(void);
/* return 1 if AD is performing a conversion, 0 if done */
-char adc_busy(void) _naked;
+char adc_busy(void) __naked;
/* get value of convertion */
-int adc_read(void) _naked;
+int adc_read(void) __naked;
/* setup conversion channel */
-void adc_setchannel(unsigned char channel) _naked;
+void adc_setchannel(unsigned char channel) __naked;
#endif
* 1m 1000000*n cycles delay
*/
-void delay10tcy(unsigned char) wparam;
-void delay100tcy(unsigned char) wparam;
-void delay1ktcy(unsigned char) wparam;
-void delay10ktcy(unsigned char) wparam;
-void delay100ktcy(unsigned char) wparam;
-void delay1mtcy(unsigned char) wparam;
+void delay10tcy(unsigned char) __wparam;
+void delay100tcy(unsigned char) __wparam;
+void delay1ktcy(unsigned char) __wparam;
+void delay10ktcy(unsigned char) __wparam;
+void delay100ktcy(unsigned char) __wparam;
+void delay1mtcy(unsigned char) __wparam;
#endif
#include <pic18fregs.h>
-#define _I2CPARAM_SPEC data
+#define _I2CPARAM_SPEC __data
/* I2C modes of operation */
#pragma library c
-#define _MALLOC_SPEC data
+#define _MALLOC_SPEC __data
#endif
#ifndef __PIC18F1220_H__
#define __PIC18F1220_H__
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned :1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned :1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned :1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa BAUDCTL;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa BAUDCTL;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb0 SPBRGH;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb0 SPBRGH;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
typedef union {
struct {
unsigned ADCS0:1;
};
} __ADCON2bits_t;
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F2220_H__
#define __PIC18F2220_H__
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf9b OSCTUNE;
+extern __sfr __at 0xf9b OSCTUNE;
typedef union {
struct {
unsigned TUN0:1;
};
} __OSCTUNEbits_t;
-extern volatile __OSCTUNEbits_t at 0xf9b OSCTUNEbits;
+extern volatile __OSCTUNEbits_t __at 0xf9b OSCTUNEbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
typedef union {
struct {
unsigned CM0:1;
};
} __CMCONbits_t;
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
typedef union {
struct {
unsigned CVR0:1;
};
} __CVRCONbits_t;
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
typedef union {
struct {
unsigned ADCS0:1;
};
} __ADCON2bits_t;
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F242_H__
#define __PIC18F242_H__
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
+extern __sfr __at 0xfd5 T0CON;
typedef union {
struct {
unsigned T0PS0:1;
};
} __T0CONbits_t;
-extern volatile __T0CONbits_t at 0xfd5 T0CONbits;
+extern volatile __T0CONbits_t __at 0xfd5 T0CONbits;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F248_H__
#define __PIC18F248_H__
-extern sfr at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf00 RXF0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF0SIDHbits_t;
-extern volatile __RXF0SIDHbits_t at 0xf00 RXF0SIDHbits;
+extern volatile __RXF0SIDHbits_t __at 0xf00 RXF0SIDHbits;
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf01 RXF0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF0SIDLbits_t;
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
-extern sfr at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf02 RXF0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF0EIDHbits_t;
-extern volatile __RXF0EIDHbits_t at 0xf02 RXF0EIDHbits;
+extern volatile __RXF0EIDHbits_t __at 0xf02 RXF0EIDHbits;
-extern sfr at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf03 RXF0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF0EIDLbits_t;
-extern volatile __RXF0EIDLbits_t at 0xf03 RXF0EIDLbits;
+extern volatile __RXF0EIDLbits_t __at 0xf03 RXF0EIDLbits;
-extern sfr at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf04 RXF1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF1SIDHbits_t;
-extern volatile __RXF1SIDHbits_t at 0xf04 RXF1SIDHbits;
+extern volatile __RXF1SIDHbits_t __at 0xf04 RXF1SIDHbits;
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf05 RXF1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF1SIDLbits_t;
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
-extern sfr at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf06 RXF1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF1EIDHbits_t;
-extern volatile __RXF1EIDHbits_t at 0xf06 RXF1EIDHbits;
+extern volatile __RXF1EIDHbits_t __at 0xf06 RXF1EIDHbits;
-extern sfr at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf07 RXF1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF1EIDLbits_t;
-extern volatile __RXF1EIDLbits_t at 0xf07 RXF1EIDLbits;
+extern volatile __RXF1EIDLbits_t __at 0xf07 RXF1EIDLbits;
-extern sfr at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf08 RXF2SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF2SIDHbits_t;
-extern volatile __RXF2SIDHbits_t at 0xf08 RXF2SIDHbits;
+extern volatile __RXF2SIDHbits_t __at 0xf08 RXF2SIDHbits;
-extern sfr at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf09 RXF2SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF2SIDLbits_t;
-extern volatile __RXF2SIDLbits_t at 0xf09 RXF2SIDLbits;
+extern volatile __RXF2SIDLbits_t __at 0xf09 RXF2SIDLbits;
-extern sfr at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0a RXF2EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF2EIDHbits_t;
-extern volatile __RXF2EIDHbits_t at 0xf0a RXF2EIDHbits;
+extern volatile __RXF2EIDHbits_t __at 0xf0a RXF2EIDHbits;
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf0b RXF2EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF2EIDLbits_t;
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
-extern sfr at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0c RXF3SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF3SIDHbits_t;
-extern volatile __RXF3SIDHbits_t at 0xf0c RXF3SIDHbits;
+extern volatile __RXF3SIDHbits_t __at 0xf0c RXF3SIDHbits;
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0d RXF3SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF3SIDLbits_t;
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
-extern sfr at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0e RXF3EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF3EIDHbits_t;
-extern volatile __RXF3EIDHbits_t at 0xf0e RXF3EIDHbits;
+extern volatile __RXF3EIDHbits_t __at 0xf0e RXF3EIDHbits;
-extern sfr at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf0f RXF3EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF3EIDLbits_t;
-extern volatile __RXF3EIDLbits_t at 0xf0f RXF3EIDLbits;
+extern volatile __RXF3EIDLbits_t __at 0xf0f RXF3EIDLbits;
-extern sfr at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf10 RXF4SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF4SIDHbits_t;
-extern volatile __RXF4SIDHbits_t at 0xf10 RXF4SIDHbits;
+extern volatile __RXF4SIDHbits_t __at 0xf10 RXF4SIDHbits;
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf11 RXF4SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF4SIDLbits_t;
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
-extern sfr at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf12 RXF4EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF4EIDHbits_t;
-extern volatile __RXF4EIDHbits_t at 0xf12 RXF4EIDHbits;
+extern volatile __RXF4EIDHbits_t __at 0xf12 RXF4EIDHbits;
-extern sfr at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf13 RXF4EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF4EIDLbits_t;
-extern volatile __RXF4EIDLbits_t at 0xf13 RXF4EIDLbits;
+extern volatile __RXF4EIDLbits_t __at 0xf13 RXF4EIDLbits;
-extern sfr at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf14 RXF5SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF5SIDHbits_t;
-extern volatile __RXF5SIDHbits_t at 0xf14 RXF5SIDHbits;
+extern volatile __RXF5SIDHbits_t __at 0xf14 RXF5SIDHbits;
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf15 RXF5SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF5SIDLbits_t;
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
-extern sfr at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf16 RXF5EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF5EIDHbits_t;
-extern volatile __RXF5EIDHbits_t at 0xf16 RXF5EIDHbits;
+extern volatile __RXF5EIDHbits_t __at 0xf16 RXF5EIDHbits;
-extern sfr at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf17 RXF5EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF5EIDLbits_t;
-extern volatile __RXF5EIDLbits_t at 0xf17 RXF5EIDLbits;
+extern volatile __RXF5EIDLbits_t __at 0xf17 RXF5EIDLbits;
-extern sfr at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf18 RXM0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXM0SIDHbits_t;
-extern volatile __RXM0SIDHbits_t at 0xf18 RXM0SIDHbits;
+extern volatile __RXM0SIDHbits_t __at 0xf18 RXM0SIDHbits;
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf19 RXM0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM0SIDLbits_t;
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
-extern sfr at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1a RXM0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXM0EIDHbits_t;
-extern volatile __RXM0EIDHbits_t at 0xf1a RXM0EIDHbits;
+extern volatile __RXM0EIDHbits_t __at 0xf1a RXM0EIDHbits;
-extern sfr at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1b RXM0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXM0EIDLbits_t;
-extern volatile __RXM0EIDLbits_t at 0xf1b RXM0EIDLbits;
+extern volatile __RXM0EIDLbits_t __at 0xf1b RXM0EIDLbits;
-extern sfr at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1c RXM1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXM1SIDHbits_t;
-extern volatile __RXM1SIDHbits_t at 0xf1c RXM1SIDHbits;
+extern volatile __RXM1SIDHbits_t __at 0xf1c RXM1SIDHbits;
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1d RXM1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM1SIDLbits_t;
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
-extern sfr at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1e RXM1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXM1EIDHbits_t;
-extern volatile __RXM1EIDHbits_t at 0xf1e RXM1EIDHbits;
+extern volatile __RXM1EIDHbits_t __at 0xf1e RXM1EIDHbits;
-extern sfr at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf1f RXM1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXM1EIDLbits_t;
-extern volatile __RXM1EIDLbits_t at 0xf1f RXM1EIDLbits;
+extern volatile __RXM1EIDLbits_t __at 0xf1f RXM1EIDLbits;
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf20 TXB2CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB2CONbits_t;
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
-extern sfr at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf21 TXB2SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB2SIDHbits_t;
-extern volatile __TXB2SIDHbits_t at 0xf21 TXB2SIDHbits;
+extern volatile __TXB2SIDHbits_t __at 0xf21 TXB2SIDHbits;
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf22 TXB2SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB2SIDLbits_t;
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
-extern sfr at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf23 TXB2EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB2EIDHbits_t;
-extern volatile __TXB2EIDHbits_t at 0xf23 TXB2EIDHbits;
+extern volatile __TXB2EIDHbits_t __at 0xf23 TXB2EIDHbits;
-extern sfr at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf24 TXB2EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB2EIDLbits_t;
-extern volatile __TXB2EIDLbits_t at 0xf24 TXB2EIDLbits;
+extern volatile __TXB2EIDLbits_t __at 0xf24 TXB2EIDLbits;
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf25 TXB2DLC;
typedef union {
struct {
unsigned TXB2DLC0:1;
};
} __TXB2DLCbits_t;
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
-extern sfr at 0xf26 TXB2D0;
+extern __sfr __at 0xf26 TXB2D0;
typedef union {
struct {
unsigned TXB2D00:1;
};
} __TXB2D0bits_t;
-extern volatile __TXB2D0bits_t at 0xf26 TXB2D0bits;
+extern volatile __TXB2D0bits_t __at 0xf26 TXB2D0bits;
-extern sfr at 0xf27 TXB2D1;
+extern __sfr __at 0xf27 TXB2D1;
typedef union {
struct {
unsigned TXB2D10:1;
};
} __TXB2D1bits_t;
-extern volatile __TXB2D1bits_t at 0xf27 TXB2D1bits;
+extern volatile __TXB2D1bits_t __at 0xf27 TXB2D1bits;
-extern sfr at 0xf28 TXB2D2;
+extern __sfr __at 0xf28 TXB2D2;
typedef union {
struct {
unsigned TXB2D20:1;
};
} __TXB2D2bits_t;
-extern volatile __TXB2D2bits_t at 0xf28 TXB2D2bits;
+extern volatile __TXB2D2bits_t __at 0xf28 TXB2D2bits;
-extern sfr at 0xf29 TXB2D3;
+extern __sfr __at 0xf29 TXB2D3;
typedef union {
struct {
unsigned TXB2D30:1;
};
} __TXB2D3bits_t;
-extern volatile __TXB2D3bits_t at 0xf29 TXB2D3bits;
+extern volatile __TXB2D3bits_t __at 0xf29 TXB2D3bits;
-extern sfr at 0xf2a TXB2D4;
+extern __sfr __at 0xf2a TXB2D4;
typedef union {
struct {
unsigned TXB2D40:1;
};
} __TXB2D4bits_t;
-extern volatile __TXB2D4bits_t at 0xf2a TXB2D4bits;
+extern volatile __TXB2D4bits_t __at 0xf2a TXB2D4bits;
-extern sfr at 0xf2b TXB2D5;
+extern __sfr __at 0xf2b TXB2D5;
typedef union {
struct {
unsigned TXB2D50:1;
};
} __TXB2D5bits_t;
-extern volatile __TXB2D5bits_t at 0xf2b TXB2D5bits;
+extern volatile __TXB2D5bits_t __at 0xf2b TXB2D5bits;
-extern sfr at 0xf2c TXB2D6;
+extern __sfr __at 0xf2c TXB2D6;
typedef union {
struct {
unsigned TXB2D60:1;
};
} __TXB2D6bits_t;
-extern volatile __TXB2D6bits_t at 0xf2c TXB2D6bits;
+extern volatile __TXB2D6bits_t __at 0xf2c TXB2D6bits;
-extern sfr at 0xf2d TXB2D7;
+extern __sfr __at 0xf2d TXB2D7;
typedef union {
struct {
unsigned TXB2D70:1;
};
} __TXB2D7bits_t;
-extern volatile __TXB2D7bits_t at 0xf2d TXB2D7bits;
+extern volatile __TXB2D7bits_t __at 0xf2d TXB2D7bits;
-extern sfr at 0xf2e CANSTATRO4;
+extern __sfr __at 0xf2e CANSTATRO4;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO4bits_t;
-extern volatile __CANSTATRO4bits_t at 0xf2e CANSTATRO4bits;
+extern volatile __CANSTATRO4bits_t __at 0xf2e CANSTATRO4bits;
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf30 TXB1CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB1CONbits_t;
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
-extern sfr at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf31 TXB1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB1SIDHbits_t;
-extern volatile __TXB1SIDHbits_t at 0xf31 TXB1SIDHbits;
+extern volatile __TXB1SIDHbits_t __at 0xf31 TXB1SIDHbits;
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf32 TXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB1SIDLbits_t;
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
-extern sfr at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf33 TXB1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB1EIDHbits_t;
-extern volatile __TXB1EIDHbits_t at 0xf33 TXB1EIDHbits;
+extern volatile __TXB1EIDHbits_t __at 0xf33 TXB1EIDHbits;
-extern sfr at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf34 TXB1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB1EIDLbits_t;
-extern volatile __TXB1EIDLbits_t at 0xf34 TXB1EIDLbits;
+extern volatile __TXB1EIDLbits_t __at 0xf34 TXB1EIDLbits;
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf35 TXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB1DLCbits_t;
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
-extern sfr at 0xf36 TXB1D0;
+extern __sfr __at 0xf36 TXB1D0;
typedef union {
struct {
unsigned TXB1D00:1;
};
} __TXB1D0bits_t;
-extern volatile __TXB1D0bits_t at 0xf36 TXB1D0bits;
+extern volatile __TXB1D0bits_t __at 0xf36 TXB1D0bits;
-extern sfr at 0xf37 TXB1D1;
+extern __sfr __at 0xf37 TXB1D1;
typedef union {
struct {
unsigned TXB1D10:1;
};
} __TXB1D1bits_t;
-extern volatile __TXB1D1bits_t at 0xf37 TXB1D1bits;
+extern volatile __TXB1D1bits_t __at 0xf37 TXB1D1bits;
-extern sfr at 0xf38 TXB1D2;
+extern __sfr __at 0xf38 TXB1D2;
typedef union {
struct {
unsigned TXB1D20:1;
};
} __TXB1D2bits_t;
-extern volatile __TXB1D2bits_t at 0xf38 TXB1D2bits;
+extern volatile __TXB1D2bits_t __at 0xf38 TXB1D2bits;
-extern sfr at 0xf39 TXB1D3;
+extern __sfr __at 0xf39 TXB1D3;
typedef union {
struct {
unsigned TXB1D30:1;
};
} __TXB1D3bits_t;
-extern volatile __TXB1D3bits_t at 0xf39 TXB1D3bits;
+extern volatile __TXB1D3bits_t __at 0xf39 TXB1D3bits;
-extern sfr at 0xf3a TXB1D4;
+extern __sfr __at 0xf3a TXB1D4;
typedef union {
struct {
unsigned TXB1D40:1;
};
} __TXB1D4bits_t;
-extern volatile __TXB1D4bits_t at 0xf3a TXB1D4bits;
+extern volatile __TXB1D4bits_t __at 0xf3a TXB1D4bits;
-extern sfr at 0xf3b TXB1D5;
+extern __sfr __at 0xf3b TXB1D5;
typedef union {
struct {
unsigned TXB1D50:1;
};
} __TXB1D5bits_t;
-extern volatile __TXB1D5bits_t at 0xf3b TXB1D5bits;
+extern volatile __TXB1D5bits_t __at 0xf3b TXB1D5bits;
-extern sfr at 0xf3c TXB1D6;
+extern __sfr __at 0xf3c TXB1D6;
typedef union {
struct {
unsigned TXB1D60:1;
};
} __TXB1D6bits_t;
-extern volatile __TXB1D6bits_t at 0xf3c TXB1D6bits;
+extern volatile __TXB1D6bits_t __at 0xf3c TXB1D6bits;
-extern sfr at 0xf3d TXB1D7;
+extern __sfr __at 0xf3d TXB1D7;
typedef union {
struct {
unsigned TXB1D70:1;
};
} __TXB1D7bits_t;
-extern volatile __TXB1D7bits_t at 0xf3d TXB1D7bits;
+extern volatile __TXB1D7bits_t __at 0xf3d TXB1D7bits;
-extern sfr at 0xf3e CANSTATRO3;
+extern __sfr __at 0xf3e CANSTATRO3;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO3bits_t;
-extern volatile __CANSTATRO3bits_t at 0xf3e CANSTATRO3bits;
+extern volatile __CANSTATRO3bits_t __at 0xf3e CANSTATRO3bits;
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf40 TXB0CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB0CONbits_t;
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
-extern sfr at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf41 TXB0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB0SIDHbits_t;
-extern volatile __TXB0SIDHbits_t at 0xf41 TXB0SIDHbits;
+extern volatile __TXB0SIDHbits_t __at 0xf41 TXB0SIDHbits;
-extern sfr at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf42 TXB0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB0SIDLbits_t;
-extern volatile __TXB0SIDLbits_t at 0xf42 TXB0SIDLbits;
+extern volatile __TXB0SIDLbits_t __at 0xf42 TXB0SIDLbits;
-extern sfr at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf43 TXB0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB0EIDHbits_t;
-extern volatile __TXB0EIDHbits_t at 0xf43 TXB0EIDHbits;
+extern volatile __TXB0EIDHbits_t __at 0xf43 TXB0EIDHbits;
-extern sfr at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf44 TXB0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB0EIDLbits_t;
-extern volatile __TXB0EIDLbits_t at 0xf44 TXB0EIDLbits;
+extern volatile __TXB0EIDLbits_t __at 0xf44 TXB0EIDLbits;
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf45 TXB0DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB0DLCbits_t;
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
-extern sfr at 0xf46 TXB0D0;
+extern __sfr __at 0xf46 TXB0D0;
typedef union {
struct {
unsigned TXB0D00:1;
};
} __TXB0D0bits_t;
-extern volatile __TXB0D0bits_t at 0xf46 TXB0D0bits;
+extern volatile __TXB0D0bits_t __at 0xf46 TXB0D0bits;
-extern sfr at 0xf47 TXB0D1;
+extern __sfr __at 0xf47 TXB0D1;
typedef union {
struct {
unsigned TXB0D10:1;
};
} __TXB0D1bits_t;
-extern volatile __TXB0D1bits_t at 0xf47 TXB0D1bits;
+extern volatile __TXB0D1bits_t __at 0xf47 TXB0D1bits;
-extern sfr at 0xf48 TXB0D2;
+extern __sfr __at 0xf48 TXB0D2;
typedef union {
struct {
unsigned TXB0D20:1;
};
} __TXB0D2bits_t;
-extern volatile __TXB0D2bits_t at 0xf48 TXB0D2bits;
+extern volatile __TXB0D2bits_t __at 0xf48 TXB0D2bits;
-extern sfr at 0xf49 TXB0D3;
+extern __sfr __at 0xf49 TXB0D3;
typedef union {
struct {
unsigned TXB0D30:1;
};
} __TXB0D3bits_t;
-extern volatile __TXB0D3bits_t at 0xf49 TXB0D3bits;
+extern volatile __TXB0D3bits_t __at 0xf49 TXB0D3bits;
-extern sfr at 0xf4a TXB0D4;
+extern __sfr __at 0xf4a TXB0D4;
typedef union {
struct {
unsigned TXB0D40:1;
};
} __TXB0D4bits_t;
-extern volatile __TXB0D4bits_t at 0xf4a TXB0D4bits;
+extern volatile __TXB0D4bits_t __at 0xf4a TXB0D4bits;
-extern sfr at 0xf4b TXB0D5;
+extern __sfr __at 0xf4b TXB0D5;
typedef union {
struct {
unsigned TXB0D50:1;
};
} __TXB0D5bits_t;
-extern volatile __TXB0D5bits_t at 0xf4b TXB0D5bits;
+extern volatile __TXB0D5bits_t __at 0xf4b TXB0D5bits;
-extern sfr at 0xf4c TXB0D6;
+extern __sfr __at 0xf4c TXB0D6;
typedef union {
struct {
unsigned TXB0D60:1;
};
} __TXB0D6bits_t;
-extern volatile __TXB0D6bits_t at 0xf4c TXB0D6bits;
+extern volatile __TXB0D6bits_t __at 0xf4c TXB0D6bits;
-extern sfr at 0xf4d TXB0D7;
+extern __sfr __at 0xf4d TXB0D7;
typedef union {
struct {
unsigned TXB0D70:1;
};
} __TXB0D7bits_t;
-extern volatile __TXB0D7bits_t at 0xf4d TXB0D7bits;
+extern volatile __TXB0D7bits_t __at 0xf4d TXB0D7bits;
-extern sfr at 0xf4e CANSTATRO2;
+extern __sfr __at 0xf4e CANSTATRO2;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO2bits_t;
-extern volatile __CANSTATRO2bits_t at 0xf4e CANSTATRO2bits;
+extern volatile __CANSTATRO2bits_t __at 0xf4e CANSTATRO2bits;
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf50 RXB1CON;
typedef union {
struct {
unsigned FILHIT0:1;
};
} __RXB1CONbits_t;
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
-extern sfr at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf51 RXB1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXB1SIDHbits_t;
-extern volatile __RXB1SIDHbits_t at 0xf51 RXB1SIDHbits;
+extern volatile __RXB1SIDHbits_t __at 0xf51 RXB1SIDHbits;
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf52 RXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB1SIDLbits_t;
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
-extern sfr at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf53 RXB1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXB1EIDHbits_t;
-extern volatile __RXB1EIDHbits_t at 0xf53 RXB1EIDHbits;
+extern volatile __RXB1EIDHbits_t __at 0xf53 RXB1EIDHbits;
-extern sfr at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf54 RXB1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXB1EIDLbits_t;
-extern volatile __RXB1EIDLbits_t at 0xf54 RXB1EIDLbits;
+extern volatile __RXB1EIDLbits_t __at 0xf54 RXB1EIDLbits;
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf55 RXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __RXB1DLCbits_t;
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
-extern sfr at 0xf56 RXB1D0;
+extern __sfr __at 0xf56 RXB1D0;
typedef union {
struct {
unsigned RXB1D00:1;
};
} __RXB1D0bits_t;
-extern volatile __RXB1D0bits_t at 0xf56 RXB1D0bits;
+extern volatile __RXB1D0bits_t __at 0xf56 RXB1D0bits;
-extern sfr at 0xf57 RXB1D1;
+extern __sfr __at 0xf57 RXB1D1;
typedef union {
struct {
unsigned RXB1D10:1;
};
} __RXB1D1bits_t;
-extern volatile __RXB1D1bits_t at 0xf57 RXB1D1bits;
+extern volatile __RXB1D1bits_t __at 0xf57 RXB1D1bits;
-extern sfr at 0xf58 RXB1D2;
+extern __sfr __at 0xf58 RXB1D2;
typedef union {
struct {
unsigned RXB1D20:1;
};
} __RXB1D2bits_t;
-extern volatile __RXB1D2bits_t at 0xf58 RXB1D2bits;
+extern volatile __RXB1D2bits_t __at 0xf58 RXB1D2bits;
-extern sfr at 0xf59 RXB1D3;
+extern __sfr __at 0xf59 RXB1D3;
typedef union {
struct {
unsigned RXB1D30:1;
};
} __RXB1D3bits_t;
-extern volatile __RXB1D3bits_t at 0xf59 RXB1D3bits;
+extern volatile __RXB1D3bits_t __at 0xf59 RXB1D3bits;
-extern sfr at 0xf5a RXB1D4;
+extern __sfr __at 0xf5a RXB1D4;
typedef union {
struct {
unsigned RXB1D40:1;
};
} __RXB1D4bits_t;
-extern volatile __RXB1D4bits_t at 0xf5a RXB1D4bits;
+extern volatile __RXB1D4bits_t __at 0xf5a RXB1D4bits;
-extern sfr at 0xf5b RXB1D5;
+extern __sfr __at 0xf5b RXB1D5;
typedef union {
struct {
unsigned RXB1D50:1;
};
} __RXB1D5bits_t;
-extern volatile __RXB1D5bits_t at 0xf5b RXB1D5bits;
+extern volatile __RXB1D5bits_t __at 0xf5b RXB1D5bits;
-extern sfr at 0xf5c RXB1D6;
+extern __sfr __at 0xf5c RXB1D6;
typedef union {
struct {
unsigned RXB1D60:1;
};
} __RXB1D6bits_t;
-extern volatile __RXB1D6bits_t at 0xf5c RXB1D6bits;
+extern volatile __RXB1D6bits_t __at 0xf5c RXB1D6bits;
-extern sfr at 0xf5d RXB1D7;
+extern __sfr __at 0xf5d RXB1D7;
typedef union {
struct {
unsigned RXB1D70:1;
};
} __RXB1D7bits_t;
-extern volatile __RXB1D7bits_t at 0xf5d RXB1D7bits;
+extern volatile __RXB1D7bits_t __at 0xf5d RXB1D7bits;
-extern sfr at 0xf5e CANSTATRO1;
+extern __sfr __at 0xf5e CANSTATRO1;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO1bits_t;
-extern volatile __CANSTATRO1bits_t at 0xf5e CANSTATRO1bits;
+extern volatile __CANSTATRO1bits_t __at 0xf5e CANSTATRO1bits;
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf60 RXB0CON;
typedef union {
struct {
unsigned FILHIT0:1;
};
} __RXB0CONbits_t;
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
-extern sfr at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf61 RXB0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXB0SIDHbits_t;
-extern volatile __RXB0SIDHbits_t at 0xf61 RXB0SIDHbits;
+extern volatile __RXB0SIDHbits_t __at 0xf61 RXB0SIDHbits;
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf62 RXB0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB0SIDLbits_t;
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
-extern sfr at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf63 RXB0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXB0EIDHbits_t;
-extern volatile __RXB0EIDHbits_t at 0xf63 RXB0EIDHbits;
+extern volatile __RXB0EIDHbits_t __at 0xf63 RXB0EIDHbits;
-extern sfr at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf64 RXB0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXB0EIDLbits_t;
-extern volatile __RXB0EIDLbits_t at 0xf64 RXB0EIDLbits;
+extern volatile __RXB0EIDLbits_t __at 0xf64 RXB0EIDLbits;
-extern sfr at 0xf65 RXB0DLC;
+extern __sfr __at 0xf65 RXB0DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __RXB0DLCbits_t;
-extern volatile __RXB0DLCbits_t at 0xf65 RXB0DLCbits;
+extern volatile __RXB0DLCbits_t __at 0xf65 RXB0DLCbits;
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
typedef union {
struct {
unsigned :1;
};
} __CANSTATbits_t;
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
typedef union {
struct {
unsigned WIN0:1;
};
} __CANCONbits_t;
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
typedef union {
struct {
unsigned BRP0:1;
};
} __BRGCON1bits_t;
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
typedef union {
struct {
unsigned PRSEG0:1;
};
} __BRGCON2bits_t;
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
typedef union {
struct {
unsigned SEG2PH0:1;
};
} __BRGCON3bits_t;
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
typedef union {
struct {
unsigned :1;
};
} __CIOCONbits_t;
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
typedef union {
struct {
unsigned EWARN:1;
};
} __COMSTATbits_t;
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
typedef union {
struct {
unsigned REC0:1;
};
} __RXERRCNTbits_t;
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
typedef union {
struct {
unsigned TEC0:1;
};
} __TXERRCNTbits_t;
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned RX0IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned RX0IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned RX0IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F252_H__
#define __PIC18F252_H__
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
+extern __sfr __at 0xfd5 T0CON;
typedef union {
struct {
unsigned T0PS0:1;
};
} __T0CONbits_t;
-extern volatile __T0CONbits_t at 0xfd5 T0CONbits;
+extern volatile __T0CONbits_t __at 0xfd5 T0CONbits;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F258_H__
#define __PIC18F258_H__
-extern sfr at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf00 RXF0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF0SIDHbits_t;
-extern volatile __RXF0SIDHbits_t at 0xf00 RXF0SIDHbits;
+extern volatile __RXF0SIDHbits_t __at 0xf00 RXF0SIDHbits;
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf01 RXF0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF0SIDLbits_t;
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
-extern sfr at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf02 RXF0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF0EIDHbits_t;
-extern volatile __RXF0EIDHbits_t at 0xf02 RXF0EIDHbits;
+extern volatile __RXF0EIDHbits_t __at 0xf02 RXF0EIDHbits;
-extern sfr at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf03 RXF0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF0EIDLbits_t;
-extern volatile __RXF0EIDLbits_t at 0xf03 RXF0EIDLbits;
+extern volatile __RXF0EIDLbits_t __at 0xf03 RXF0EIDLbits;
-extern sfr at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf04 RXF1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF1SIDHbits_t;
-extern volatile __RXF1SIDHbits_t at 0xf04 RXF1SIDHbits;
+extern volatile __RXF1SIDHbits_t __at 0xf04 RXF1SIDHbits;
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf05 RXF1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF1SIDLbits_t;
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
-extern sfr at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf06 RXF1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF1EIDHbits_t;
-extern volatile __RXF1EIDHbits_t at 0xf06 RXF1EIDHbits;
+extern volatile __RXF1EIDHbits_t __at 0xf06 RXF1EIDHbits;
-extern sfr at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf07 RXF1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF1EIDLbits_t;
-extern volatile __RXF1EIDLbits_t at 0xf07 RXF1EIDLbits;
+extern volatile __RXF1EIDLbits_t __at 0xf07 RXF1EIDLbits;
-extern sfr at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf08 RXF2SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF2SIDHbits_t;
-extern volatile __RXF2SIDHbits_t at 0xf08 RXF2SIDHbits;
+extern volatile __RXF2SIDHbits_t __at 0xf08 RXF2SIDHbits;
-extern sfr at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf09 RXF2SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF2SIDLbits_t;
-extern volatile __RXF2SIDLbits_t at 0xf09 RXF2SIDLbits;
+extern volatile __RXF2SIDLbits_t __at 0xf09 RXF2SIDLbits;
-extern sfr at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0a RXF2EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF2EIDHbits_t;
-extern volatile __RXF2EIDHbits_t at 0xf0a RXF2EIDHbits;
+extern volatile __RXF2EIDHbits_t __at 0xf0a RXF2EIDHbits;
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf0b RXF2EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF2EIDLbits_t;
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
-extern sfr at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0c RXF3SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF3SIDHbits_t;
-extern volatile __RXF3SIDHbits_t at 0xf0c RXF3SIDHbits;
+extern volatile __RXF3SIDHbits_t __at 0xf0c RXF3SIDHbits;
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0d RXF3SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF3SIDLbits_t;
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
-extern sfr at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0e RXF3EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF3EIDHbits_t;
-extern volatile __RXF3EIDHbits_t at 0xf0e RXF3EIDHbits;
+extern volatile __RXF3EIDHbits_t __at 0xf0e RXF3EIDHbits;
-extern sfr at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf0f RXF3EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF3EIDLbits_t;
-extern volatile __RXF3EIDLbits_t at 0xf0f RXF3EIDLbits;
+extern volatile __RXF3EIDLbits_t __at 0xf0f RXF3EIDLbits;
-extern sfr at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf10 RXF4SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF4SIDHbits_t;
-extern volatile __RXF4SIDHbits_t at 0xf10 RXF4SIDHbits;
+extern volatile __RXF4SIDHbits_t __at 0xf10 RXF4SIDHbits;
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf11 RXF4SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF4SIDLbits_t;
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
-extern sfr at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf12 RXF4EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF4EIDHbits_t;
-extern volatile __RXF4EIDHbits_t at 0xf12 RXF4EIDHbits;
+extern volatile __RXF4EIDHbits_t __at 0xf12 RXF4EIDHbits;
-extern sfr at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf13 RXF4EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF4EIDLbits_t;
-extern volatile __RXF4EIDLbits_t at 0xf13 RXF4EIDLbits;
+extern volatile __RXF4EIDLbits_t __at 0xf13 RXF4EIDLbits;
-extern sfr at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf14 RXF5SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF5SIDHbits_t;
-extern volatile __RXF5SIDHbits_t at 0xf14 RXF5SIDHbits;
+extern volatile __RXF5SIDHbits_t __at 0xf14 RXF5SIDHbits;
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf15 RXF5SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF5SIDLbits_t;
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
-extern sfr at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf16 RXF5EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF5EIDHbits_t;
-extern volatile __RXF5EIDHbits_t at 0xf16 RXF5EIDHbits;
+extern volatile __RXF5EIDHbits_t __at 0xf16 RXF5EIDHbits;
-extern sfr at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf17 RXF5EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF5EIDLbits_t;
-extern volatile __RXF5EIDLbits_t at 0xf17 RXF5EIDLbits;
+extern volatile __RXF5EIDLbits_t __at 0xf17 RXF5EIDLbits;
-extern sfr at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf18 RXM0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXM0SIDHbits_t;
-extern volatile __RXM0SIDHbits_t at 0xf18 RXM0SIDHbits;
+extern volatile __RXM0SIDHbits_t __at 0xf18 RXM0SIDHbits;
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf19 RXM0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM0SIDLbits_t;
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
-extern sfr at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1a RXM0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXM0EIDHbits_t;
-extern volatile __RXM0EIDHbits_t at 0xf1a RXM0EIDHbits;
+extern volatile __RXM0EIDHbits_t __at 0xf1a RXM0EIDHbits;
-extern sfr at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1b RXM0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXM0EIDLbits_t;
-extern volatile __RXM0EIDLbits_t at 0xf1b RXM0EIDLbits;
+extern volatile __RXM0EIDLbits_t __at 0xf1b RXM0EIDLbits;
-extern sfr at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1c RXM1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXM1SIDHbits_t;
-extern volatile __RXM1SIDHbits_t at 0xf1c RXM1SIDHbits;
+extern volatile __RXM1SIDHbits_t __at 0xf1c RXM1SIDHbits;
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1d RXM1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM1SIDLbits_t;
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
-extern sfr at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1e RXM1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXM1EIDHbits_t;
-extern volatile __RXM1EIDHbits_t at 0xf1e RXM1EIDHbits;
+extern volatile __RXM1EIDHbits_t __at 0xf1e RXM1EIDHbits;
-extern sfr at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf1f RXM1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXM1EIDLbits_t;
-extern volatile __RXM1EIDLbits_t at 0xf1f RXM1EIDLbits;
+extern volatile __RXM1EIDLbits_t __at 0xf1f RXM1EIDLbits;
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf20 TXB2CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB2CONbits_t;
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
-extern sfr at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf21 TXB2SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB2SIDHbits_t;
-extern volatile __TXB2SIDHbits_t at 0xf21 TXB2SIDHbits;
+extern volatile __TXB2SIDHbits_t __at 0xf21 TXB2SIDHbits;
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf22 TXB2SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB2SIDLbits_t;
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
-extern sfr at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf23 TXB2EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB2EIDHbits_t;
-extern volatile __TXB2EIDHbits_t at 0xf23 TXB2EIDHbits;
+extern volatile __TXB2EIDHbits_t __at 0xf23 TXB2EIDHbits;
-extern sfr at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf24 TXB2EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB2EIDLbits_t;
-extern volatile __TXB2EIDLbits_t at 0xf24 TXB2EIDLbits;
+extern volatile __TXB2EIDLbits_t __at 0xf24 TXB2EIDLbits;
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf25 TXB2DLC;
typedef union {
struct {
unsigned TXB2DLC0:1;
};
} __TXB2DLCbits_t;
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
-extern sfr at 0xf26 TXB2D0;
+extern __sfr __at 0xf26 TXB2D0;
typedef union {
struct {
unsigned TXB2D00:1;
};
} __TXB2D0bits_t;
-extern volatile __TXB2D0bits_t at 0xf26 TXB2D0bits;
+extern volatile __TXB2D0bits_t __at 0xf26 TXB2D0bits;
-extern sfr at 0xf27 TXB2D1;
+extern __sfr __at 0xf27 TXB2D1;
typedef union {
struct {
unsigned TXB2D10:1;
};
} __TXB2D1bits_t;
-extern volatile __TXB2D1bits_t at 0xf27 TXB2D1bits;
+extern volatile __TXB2D1bits_t __at 0xf27 TXB2D1bits;
-extern sfr at 0xf28 TXB2D2;
+extern __sfr __at 0xf28 TXB2D2;
typedef union {
struct {
unsigned TXB2D20:1;
};
} __TXB2D2bits_t;
-extern volatile __TXB2D2bits_t at 0xf28 TXB2D2bits;
+extern volatile __TXB2D2bits_t __at 0xf28 TXB2D2bits;
-extern sfr at 0xf29 TXB2D3;
+extern __sfr __at 0xf29 TXB2D3;
typedef union {
struct {
unsigned TXB2D30:1;
};
} __TXB2D3bits_t;
-extern volatile __TXB2D3bits_t at 0xf29 TXB2D3bits;
+extern volatile __TXB2D3bits_t __at 0xf29 TXB2D3bits;
-extern sfr at 0xf2a TXB2D4;
+extern __sfr __at 0xf2a TXB2D4;
typedef union {
struct {
unsigned TXB2D40:1;
};
} __TXB2D4bits_t;
-extern volatile __TXB2D4bits_t at 0xf2a TXB2D4bits;
+extern volatile __TXB2D4bits_t __at 0xf2a TXB2D4bits;
-extern sfr at 0xf2b TXB2D5;
+extern __sfr __at 0xf2b TXB2D5;
typedef union {
struct {
unsigned TXB2D50:1;
};
} __TXB2D5bits_t;
-extern volatile __TXB2D5bits_t at 0xf2b TXB2D5bits;
+extern volatile __TXB2D5bits_t __at 0xf2b TXB2D5bits;
-extern sfr at 0xf2c TXB2D6;
+extern __sfr __at 0xf2c TXB2D6;
typedef union {
struct {
unsigned TXB2D60:1;
};
} __TXB2D6bits_t;
-extern volatile __TXB2D6bits_t at 0xf2c TXB2D6bits;
+extern volatile __TXB2D6bits_t __at 0xf2c TXB2D6bits;
-extern sfr at 0xf2d TXB2D7;
+extern __sfr __at 0xf2d TXB2D7;
typedef union {
struct {
unsigned TXB2D70:1;
};
} __TXB2D7bits_t;
-extern volatile __TXB2D7bits_t at 0xf2d TXB2D7bits;
+extern volatile __TXB2D7bits_t __at 0xf2d TXB2D7bits;
-extern sfr at 0xf2e CANSTATRO4;
+extern __sfr __at 0xf2e CANSTATRO4;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO4bits_t;
-extern volatile __CANSTATRO4bits_t at 0xf2e CANSTATRO4bits;
+extern volatile __CANSTATRO4bits_t __at 0xf2e CANSTATRO4bits;
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf30 TXB1CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB1CONbits_t;
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
-extern sfr at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf31 TXB1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB1SIDHbits_t;
-extern volatile __TXB1SIDHbits_t at 0xf31 TXB1SIDHbits;
+extern volatile __TXB1SIDHbits_t __at 0xf31 TXB1SIDHbits;
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf32 TXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB1SIDLbits_t;
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
-extern sfr at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf33 TXB1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB1EIDHbits_t;
-extern volatile __TXB1EIDHbits_t at 0xf33 TXB1EIDHbits;
+extern volatile __TXB1EIDHbits_t __at 0xf33 TXB1EIDHbits;
-extern sfr at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf34 TXB1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB1EIDLbits_t;
-extern volatile __TXB1EIDLbits_t at 0xf34 TXB1EIDLbits;
+extern volatile __TXB1EIDLbits_t __at 0xf34 TXB1EIDLbits;
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf35 TXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB1DLCbits_t;
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
-extern sfr at 0xf36 TXB1D0;
+extern __sfr __at 0xf36 TXB1D0;
typedef union {
struct {
unsigned TXB1D00:1;
};
} __TXB1D0bits_t;
-extern volatile __TXB1D0bits_t at 0xf36 TXB1D0bits;
+extern volatile __TXB1D0bits_t __at 0xf36 TXB1D0bits;
-extern sfr at 0xf37 TXB1D1;
+extern __sfr __at 0xf37 TXB1D1;
typedef union {
struct {
unsigned TXB1D10:1;
};
} __TXB1D1bits_t;
-extern volatile __TXB1D1bits_t at 0xf37 TXB1D1bits;
+extern volatile __TXB1D1bits_t __at 0xf37 TXB1D1bits;
-extern sfr at 0xf38 TXB1D2;
+extern __sfr __at 0xf38 TXB1D2;
typedef union {
struct {
unsigned TXB1D20:1;
};
} __TXB1D2bits_t;
-extern volatile __TXB1D2bits_t at 0xf38 TXB1D2bits;
+extern volatile __TXB1D2bits_t __at 0xf38 TXB1D2bits;
-extern sfr at 0xf39 TXB1D3;
+extern __sfr __at 0xf39 TXB1D3;
typedef union {
struct {
unsigned TXB1D30:1;
};
} __TXB1D3bits_t;
-extern volatile __TXB1D3bits_t at 0xf39 TXB1D3bits;
+extern volatile __TXB1D3bits_t __at 0xf39 TXB1D3bits;
-extern sfr at 0xf3a TXB1D4;
+extern __sfr __at 0xf3a TXB1D4;
typedef union {
struct {
unsigned TXB1D40:1;
};
} __TXB1D4bits_t;
-extern volatile __TXB1D4bits_t at 0xf3a TXB1D4bits;
+extern volatile __TXB1D4bits_t __at 0xf3a TXB1D4bits;
-extern sfr at 0xf3b TXB1D5;
+extern __sfr __at 0xf3b TXB1D5;
typedef union {
struct {
unsigned TXB1D50:1;
};
} __TXB1D5bits_t;
-extern volatile __TXB1D5bits_t at 0xf3b TXB1D5bits;
+extern volatile __TXB1D5bits_t __at 0xf3b TXB1D5bits;
-extern sfr at 0xf3c TXB1D6;
+extern __sfr __at 0xf3c TXB1D6;
typedef union {
struct {
unsigned TXB1D60:1;
};
} __TXB1D6bits_t;
-extern volatile __TXB1D6bits_t at 0xf3c TXB1D6bits;
+extern volatile __TXB1D6bits_t __at 0xf3c TXB1D6bits;
-extern sfr at 0xf3d TXB1D7;
+extern __sfr __at 0xf3d TXB1D7;
typedef union {
struct {
unsigned TXB1D70:1;
};
} __TXB1D7bits_t;
-extern volatile __TXB1D7bits_t at 0xf3d TXB1D7bits;
+extern volatile __TXB1D7bits_t __at 0xf3d TXB1D7bits;
-extern sfr at 0xf3e CANSTATRO3;
+extern __sfr __at 0xf3e CANSTATRO3;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO3bits_t;
-extern volatile __CANSTATRO3bits_t at 0xf3e CANSTATRO3bits;
+extern volatile __CANSTATRO3bits_t __at 0xf3e CANSTATRO3bits;
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf40 TXB0CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB0CONbits_t;
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
-extern sfr at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf41 TXB0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB0SIDHbits_t;
-extern volatile __TXB0SIDHbits_t at 0xf41 TXB0SIDHbits;
+extern volatile __TXB0SIDHbits_t __at 0xf41 TXB0SIDHbits;
-extern sfr at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf42 TXB0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB0SIDLbits_t;
-extern volatile __TXB0SIDLbits_t at 0xf42 TXB0SIDLbits;
+extern volatile __TXB0SIDLbits_t __at 0xf42 TXB0SIDLbits;
-extern sfr at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf43 TXB0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB0EIDHbits_t;
-extern volatile __TXB0EIDHbits_t at 0xf43 TXB0EIDHbits;
+extern volatile __TXB0EIDHbits_t __at 0xf43 TXB0EIDHbits;
-extern sfr at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf44 TXB0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB0EIDLbits_t;
-extern volatile __TXB0EIDLbits_t at 0xf44 TXB0EIDLbits;
+extern volatile __TXB0EIDLbits_t __at 0xf44 TXB0EIDLbits;
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf45 TXB0DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB0DLCbits_t;
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
-extern sfr at 0xf46 TXB0D0;
+extern __sfr __at 0xf46 TXB0D0;
typedef union {
struct {
unsigned TXB0D00:1;
};
} __TXB0D0bits_t;
-extern volatile __TXB0D0bits_t at 0xf46 TXB0D0bits;
+extern volatile __TXB0D0bits_t __at 0xf46 TXB0D0bits;
-extern sfr at 0xf47 TXB0D1;
+extern __sfr __at 0xf47 TXB0D1;
typedef union {
struct {
unsigned TXB0D10:1;
};
} __TXB0D1bits_t;
-extern volatile __TXB0D1bits_t at 0xf47 TXB0D1bits;
+extern volatile __TXB0D1bits_t __at 0xf47 TXB0D1bits;
-extern sfr at 0xf48 TXB0D2;
+extern __sfr __at 0xf48 TXB0D2;
typedef union {
struct {
unsigned TXB0D20:1;
};
} __TXB0D2bits_t;
-extern volatile __TXB0D2bits_t at 0xf48 TXB0D2bits;
+extern volatile __TXB0D2bits_t __at 0xf48 TXB0D2bits;
-extern sfr at 0xf49 TXB0D3;
+extern __sfr __at 0xf49 TXB0D3;
typedef union {
struct {
unsigned TXB0D30:1;
};
} __TXB0D3bits_t;
-extern volatile __TXB0D3bits_t at 0xf49 TXB0D3bits;
+extern volatile __TXB0D3bits_t __at 0xf49 TXB0D3bits;
-extern sfr at 0xf4a TXB0D4;
+extern __sfr __at 0xf4a TXB0D4;
typedef union {
struct {
unsigned TXB0D40:1;
};
} __TXB0D4bits_t;
-extern volatile __TXB0D4bits_t at 0xf4a TXB0D4bits;
+extern volatile __TXB0D4bits_t __at 0xf4a TXB0D4bits;
-extern sfr at 0xf4b TXB0D5;
+extern __sfr __at 0xf4b TXB0D5;
typedef union {
struct {
unsigned TXB0D50:1;
};
} __TXB0D5bits_t;
-extern volatile __TXB0D5bits_t at 0xf4b TXB0D5bits;
+extern volatile __TXB0D5bits_t __at 0xf4b TXB0D5bits;
-extern sfr at 0xf4c TXB0D6;
+extern __sfr __at 0xf4c TXB0D6;
typedef union {
struct {
unsigned TXB0D60:1;
};
} __TXB0D6bits_t;
-extern volatile __TXB0D6bits_t at 0xf4c TXB0D6bits;
+extern volatile __TXB0D6bits_t __at 0xf4c TXB0D6bits;
-extern sfr at 0xf4d TXB0D7;
+extern __sfr __at 0xf4d TXB0D7;
typedef union {
struct {
unsigned TXB0D70:1;
};
} __TXB0D7bits_t;
-extern volatile __TXB0D7bits_t at 0xf4d TXB0D7bits;
+extern volatile __TXB0D7bits_t __at 0xf4d TXB0D7bits;
-extern sfr at 0xf4e CANSTATRO2;
+extern __sfr __at 0xf4e CANSTATRO2;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO2bits_t;
-extern volatile __CANSTATRO2bits_t at 0xf4e CANSTATRO2bits;
+extern volatile __CANSTATRO2bits_t __at 0xf4e CANSTATRO2bits;
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf50 RXB1CON;
typedef union {
struct {
unsigned FILHIT0:1;
};
} __RXB1CONbits_t;
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
-extern sfr at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf51 RXB1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXB1SIDHbits_t;
-extern volatile __RXB1SIDHbits_t at 0xf51 RXB1SIDHbits;
+extern volatile __RXB1SIDHbits_t __at 0xf51 RXB1SIDHbits;
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf52 RXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB1SIDLbits_t;
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
-extern sfr at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf53 RXB1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXB1EIDHbits_t;
-extern volatile __RXB1EIDHbits_t at 0xf53 RXB1EIDHbits;
+extern volatile __RXB1EIDHbits_t __at 0xf53 RXB1EIDHbits;
-extern sfr at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf54 RXB1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXB1EIDLbits_t;
-extern volatile __RXB1EIDLbits_t at 0xf54 RXB1EIDLbits;
+extern volatile __RXB1EIDLbits_t __at 0xf54 RXB1EIDLbits;
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf55 RXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __RXB1DLCbits_t;
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
-extern sfr at 0xf56 RXB1D0;
+extern __sfr __at 0xf56 RXB1D0;
typedef union {
struct {
unsigned RXB1D00:1;
};
} __RXB1D0bits_t;
-extern volatile __RXB1D0bits_t at 0xf56 RXB1D0bits;
+extern volatile __RXB1D0bits_t __at 0xf56 RXB1D0bits;
-extern sfr at 0xf57 RXB1D1;
+extern __sfr __at 0xf57 RXB1D1;
typedef union {
struct {
unsigned RXB1D10:1;
};
} __RXB1D1bits_t;
-extern volatile __RXB1D1bits_t at 0xf57 RXB1D1bits;
+extern volatile __RXB1D1bits_t __at 0xf57 RXB1D1bits;
-extern sfr at 0xf58 RXB1D2;
+extern __sfr __at 0xf58 RXB1D2;
typedef union {
struct {
unsigned RXB1D20:1;
};
} __RXB1D2bits_t;
-extern volatile __RXB1D2bits_t at 0xf58 RXB1D2bits;
+extern volatile __RXB1D2bits_t __at 0xf58 RXB1D2bits;
-extern sfr at 0xf59 RXB1D3;
+extern __sfr __at 0xf59 RXB1D3;
typedef union {
struct {
unsigned RXB1D30:1;
};
} __RXB1D3bits_t;
-extern volatile __RXB1D3bits_t at 0xf59 RXB1D3bits;
+extern volatile __RXB1D3bits_t __at 0xf59 RXB1D3bits;
-extern sfr at 0xf5a RXB1D4;
+extern __sfr __at 0xf5a RXB1D4;
typedef union {
struct {
unsigned RXB1D40:1;
};
} __RXB1D4bits_t;
-extern volatile __RXB1D4bits_t at 0xf5a RXB1D4bits;
+extern volatile __RXB1D4bits_t __at 0xf5a RXB1D4bits;
-extern sfr at 0xf5b RXB1D5;
+extern __sfr __at 0xf5b RXB1D5;
typedef union {
struct {
unsigned RXB1D50:1;
};
} __RXB1D5bits_t;
-extern volatile __RXB1D5bits_t at 0xf5b RXB1D5bits;
+extern volatile __RXB1D5bits_t __at 0xf5b RXB1D5bits;
-extern sfr at 0xf5c RXB1D6;
+extern __sfr __at 0xf5c RXB1D6;
typedef union {
struct {
unsigned RXB1D60:1;
};
} __RXB1D6bits_t;
-extern volatile __RXB1D6bits_t at 0xf5c RXB1D6bits;
+extern volatile __RXB1D6bits_t __at 0xf5c RXB1D6bits;
-extern sfr at 0xf5d RXB1D7;
+extern __sfr __at 0xf5d RXB1D7;
typedef union {
struct {
unsigned RXB1D70:1;
};
} __RXB1D7bits_t;
-extern volatile __RXB1D7bits_t at 0xf5d RXB1D7bits;
+extern volatile __RXB1D7bits_t __at 0xf5d RXB1D7bits;
-extern sfr at 0xf5e CANSTATRO1;
+extern __sfr __at 0xf5e CANSTATRO1;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO1bits_t;
-extern volatile __CANSTATRO1bits_t at 0xf5e CANSTATRO1bits;
+extern volatile __CANSTATRO1bits_t __at 0xf5e CANSTATRO1bits;
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf60 RXB0CON;
typedef union {
struct {
unsigned FILHIT0:1;
};
} __RXB0CONbits_t;
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
-extern sfr at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf61 RXB0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXB0SIDHbits_t;
-extern volatile __RXB0SIDHbits_t at 0xf61 RXB0SIDHbits;
+extern volatile __RXB0SIDHbits_t __at 0xf61 RXB0SIDHbits;
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf62 RXB0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB0SIDLbits_t;
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
-extern sfr at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf63 RXB0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXB0EIDHbits_t;
-extern volatile __RXB0EIDHbits_t at 0xf63 RXB0EIDHbits;
+extern volatile __RXB0EIDHbits_t __at 0xf63 RXB0EIDHbits;
-extern sfr at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf64 RXB0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXB0EIDLbits_t;
-extern volatile __RXB0EIDLbits_t at 0xf64 RXB0EIDLbits;
+extern volatile __RXB0EIDLbits_t __at 0xf64 RXB0EIDLbits;
-extern sfr at 0xf65 RXB0DLC;
+extern __sfr __at 0xf65 RXB0DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __RXB0DLCbits_t;
-extern volatile __RXB0DLCbits_t at 0xf65 RXB0DLCbits;
+extern volatile __RXB0DLCbits_t __at 0xf65 RXB0DLCbits;
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
typedef union {
struct {
unsigned :1;
};
} __CANSTATbits_t;
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
typedef union {
struct {
unsigned WIN0:1;
};
} __CANCONbits_t;
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
typedef union {
struct {
unsigned BRP0:1;
};
} __BRGCON1bits_t;
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
typedef union {
struct {
unsigned PRSEG0:1;
};
} __BRGCON2bits_t;
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
typedef union {
struct {
unsigned SEG2PH0:1;
};
} __BRGCON3bits_t;
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
typedef union {
struct {
unsigned :1;
};
} __CIOCONbits_t;
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
typedef union {
struct {
unsigned EWARN:1;
};
} __COMSTATbits_t;
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
typedef union {
struct {
unsigned REC0:1;
};
} __RXERRCNTbits_t;
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
typedef union {
struct {
unsigned TEC0:1;
};
} __TXERRCNTbits_t;
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned RX0IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned RX0IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned RX0IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F442_H__
#define __PIC18F442_H__
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned :1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
+extern __sfr __at 0xfd5 T0CON;
typedef union {
struct {
unsigned T0PS0:1;
};
} __T0CONbits_t;
-extern volatile __T0CONbits_t at 0xfd5 T0CONbits;
+extern volatile __T0CONbits_t __at 0xfd5 T0CONbits;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F448_H__
#define __PIC18F448_H__
-extern sfr at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf00 RXF0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF0SIDHbits_t;
-extern volatile __RXF0SIDHbits_t at 0xf00 RXF0SIDHbits;
+extern volatile __RXF0SIDHbits_t __at 0xf00 RXF0SIDHbits;
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf01 RXF0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF0SIDLbits_t;
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
-extern sfr at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf02 RXF0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF0EIDHbits_t;
-extern volatile __RXF0EIDHbits_t at 0xf02 RXF0EIDHbits;
+extern volatile __RXF0EIDHbits_t __at 0xf02 RXF0EIDHbits;
-extern sfr at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf03 RXF0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF0EIDLbits_t;
-extern volatile __RXF0EIDLbits_t at 0xf03 RXF0EIDLbits;
+extern volatile __RXF0EIDLbits_t __at 0xf03 RXF0EIDLbits;
-extern sfr at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf04 RXF1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF1SIDHbits_t;
-extern volatile __RXF1SIDHbits_t at 0xf04 RXF1SIDHbits;
+extern volatile __RXF1SIDHbits_t __at 0xf04 RXF1SIDHbits;
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf05 RXF1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF1SIDLbits_t;
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
-extern sfr at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf06 RXF1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF1EIDHbits_t;
-extern volatile __RXF1EIDHbits_t at 0xf06 RXF1EIDHbits;
+extern volatile __RXF1EIDHbits_t __at 0xf06 RXF1EIDHbits;
-extern sfr at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf07 RXF1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF1EIDLbits_t;
-extern volatile __RXF1EIDLbits_t at 0xf07 RXF1EIDLbits;
+extern volatile __RXF1EIDLbits_t __at 0xf07 RXF1EIDLbits;
-extern sfr at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf08 RXF2SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF2SIDHbits_t;
-extern volatile __RXF2SIDHbits_t at 0xf08 RXF2SIDHbits;
+extern volatile __RXF2SIDHbits_t __at 0xf08 RXF2SIDHbits;
-extern sfr at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf09 RXF2SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF2SIDLbits_t;
-extern volatile __RXF2SIDLbits_t at 0xf09 RXF2SIDLbits;
+extern volatile __RXF2SIDLbits_t __at 0xf09 RXF2SIDLbits;
-extern sfr at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0a RXF2EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF2EIDHbits_t;
-extern volatile __RXF2EIDHbits_t at 0xf0a RXF2EIDHbits;
+extern volatile __RXF2EIDHbits_t __at 0xf0a RXF2EIDHbits;
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf0b RXF2EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF2EIDLbits_t;
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
-extern sfr at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0c RXF3SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF3SIDHbits_t;
-extern volatile __RXF3SIDHbits_t at 0xf0c RXF3SIDHbits;
+extern volatile __RXF3SIDHbits_t __at 0xf0c RXF3SIDHbits;
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0d RXF3SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF3SIDLbits_t;
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
-extern sfr at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0e RXF3EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF3EIDHbits_t;
-extern volatile __RXF3EIDHbits_t at 0xf0e RXF3EIDHbits;
+extern volatile __RXF3EIDHbits_t __at 0xf0e RXF3EIDHbits;
-extern sfr at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf0f RXF3EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF3EIDLbits_t;
-extern volatile __RXF3EIDLbits_t at 0xf0f RXF3EIDLbits;
+extern volatile __RXF3EIDLbits_t __at 0xf0f RXF3EIDLbits;
-extern sfr at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf10 RXF4SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF4SIDHbits_t;
-extern volatile __RXF4SIDHbits_t at 0xf10 RXF4SIDHbits;
+extern volatile __RXF4SIDHbits_t __at 0xf10 RXF4SIDHbits;
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf11 RXF4SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF4SIDLbits_t;
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
-extern sfr at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf12 RXF4EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF4EIDHbits_t;
-extern volatile __RXF4EIDHbits_t at 0xf12 RXF4EIDHbits;
+extern volatile __RXF4EIDHbits_t __at 0xf12 RXF4EIDHbits;
-extern sfr at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf13 RXF4EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF4EIDLbits_t;
-extern volatile __RXF4EIDLbits_t at 0xf13 RXF4EIDLbits;
+extern volatile __RXF4EIDLbits_t __at 0xf13 RXF4EIDLbits;
-extern sfr at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf14 RXF5SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF5SIDHbits_t;
-extern volatile __RXF5SIDHbits_t at 0xf14 RXF5SIDHbits;
+extern volatile __RXF5SIDHbits_t __at 0xf14 RXF5SIDHbits;
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf15 RXF5SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF5SIDLbits_t;
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
-extern sfr at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf16 RXF5EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF5EIDHbits_t;
-extern volatile __RXF5EIDHbits_t at 0xf16 RXF5EIDHbits;
+extern volatile __RXF5EIDHbits_t __at 0xf16 RXF5EIDHbits;
-extern sfr at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf17 RXF5EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF5EIDLbits_t;
-extern volatile __RXF5EIDLbits_t at 0xf17 RXF5EIDLbits;
+extern volatile __RXF5EIDLbits_t __at 0xf17 RXF5EIDLbits;
-extern sfr at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf18 RXM0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXM0SIDHbits_t;
-extern volatile __RXM0SIDHbits_t at 0xf18 RXM0SIDHbits;
+extern volatile __RXM0SIDHbits_t __at 0xf18 RXM0SIDHbits;
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf19 RXM0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM0SIDLbits_t;
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
-extern sfr at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1a RXM0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXM0EIDHbits_t;
-extern volatile __RXM0EIDHbits_t at 0xf1a RXM0EIDHbits;
+extern volatile __RXM0EIDHbits_t __at 0xf1a RXM0EIDHbits;
-extern sfr at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1b RXM0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXM0EIDLbits_t;
-extern volatile __RXM0EIDLbits_t at 0xf1b RXM0EIDLbits;
+extern volatile __RXM0EIDLbits_t __at 0xf1b RXM0EIDLbits;
-extern sfr at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1c RXM1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXM1SIDHbits_t;
-extern volatile __RXM1SIDHbits_t at 0xf1c RXM1SIDHbits;
+extern volatile __RXM1SIDHbits_t __at 0xf1c RXM1SIDHbits;
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1d RXM1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM1SIDLbits_t;
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
-extern sfr at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1e RXM1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXM1EIDHbits_t;
-extern volatile __RXM1EIDHbits_t at 0xf1e RXM1EIDHbits;
+extern volatile __RXM1EIDHbits_t __at 0xf1e RXM1EIDHbits;
-extern sfr at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf1f RXM1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXM1EIDLbits_t;
-extern volatile __RXM1EIDLbits_t at 0xf1f RXM1EIDLbits;
+extern volatile __RXM1EIDLbits_t __at 0xf1f RXM1EIDLbits;
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf20 TXB2CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB2CONbits_t;
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
-extern sfr at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf21 TXB2SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB2SIDHbits_t;
-extern volatile __TXB2SIDHbits_t at 0xf21 TXB2SIDHbits;
+extern volatile __TXB2SIDHbits_t __at 0xf21 TXB2SIDHbits;
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf22 TXB2SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB2SIDLbits_t;
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
-extern sfr at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf23 TXB2EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB2EIDHbits_t;
-extern volatile __TXB2EIDHbits_t at 0xf23 TXB2EIDHbits;
+extern volatile __TXB2EIDHbits_t __at 0xf23 TXB2EIDHbits;
-extern sfr at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf24 TXB2EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB2EIDLbits_t;
-extern volatile __TXB2EIDLbits_t at 0xf24 TXB2EIDLbits;
+extern volatile __TXB2EIDLbits_t __at 0xf24 TXB2EIDLbits;
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf25 TXB2DLC;
typedef union {
struct {
unsigned TXB2DLC0:1;
};
} __TXB2DLCbits_t;
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
-extern sfr at 0xf26 TXB2D0;
+extern __sfr __at 0xf26 TXB2D0;
typedef union {
struct {
unsigned TXB2D00:1;
};
} __TXB2D0bits_t;
-extern volatile __TXB2D0bits_t at 0xf26 TXB2D0bits;
+extern volatile __TXB2D0bits_t __at 0xf26 TXB2D0bits;
-extern sfr at 0xf27 TXB2D1;
+extern __sfr __at 0xf27 TXB2D1;
typedef union {
struct {
unsigned TXB2D10:1;
};
} __TXB2D1bits_t;
-extern volatile __TXB2D1bits_t at 0xf27 TXB2D1bits;
+extern volatile __TXB2D1bits_t __at 0xf27 TXB2D1bits;
-extern sfr at 0xf28 TXB2D2;
+extern __sfr __at 0xf28 TXB2D2;
typedef union {
struct {
unsigned TXB2D20:1;
};
} __TXB2D2bits_t;
-extern volatile __TXB2D2bits_t at 0xf28 TXB2D2bits;
+extern volatile __TXB2D2bits_t __at 0xf28 TXB2D2bits;
-extern sfr at 0xf29 TXB2D3;
+extern __sfr __at 0xf29 TXB2D3;
typedef union {
struct {
unsigned TXB2D30:1;
};
} __TXB2D3bits_t;
-extern volatile __TXB2D3bits_t at 0xf29 TXB2D3bits;
+extern volatile __TXB2D3bits_t __at 0xf29 TXB2D3bits;
-extern sfr at 0xf2a TXB2D4;
+extern __sfr __at 0xf2a TXB2D4;
typedef union {
struct {
unsigned TXB2D40:1;
};
} __TXB2D4bits_t;
-extern volatile __TXB2D4bits_t at 0xf2a TXB2D4bits;
+extern volatile __TXB2D4bits_t __at 0xf2a TXB2D4bits;
-extern sfr at 0xf2b TXB2D5;
+extern __sfr __at 0xf2b TXB2D5;
typedef union {
struct {
unsigned TXB2D50:1;
};
} __TXB2D5bits_t;
-extern volatile __TXB2D5bits_t at 0xf2b TXB2D5bits;
+extern volatile __TXB2D5bits_t __at 0xf2b TXB2D5bits;
-extern sfr at 0xf2c TXB2D6;
+extern __sfr __at 0xf2c TXB2D6;
typedef union {
struct {
unsigned TXB2D60:1;
};
} __TXB2D6bits_t;
-extern volatile __TXB2D6bits_t at 0xf2c TXB2D6bits;
+extern volatile __TXB2D6bits_t __at 0xf2c TXB2D6bits;
-extern sfr at 0xf2d TXB2D7;
+extern __sfr __at 0xf2d TXB2D7;
typedef union {
struct {
unsigned TXB2D70:1;
};
} __TXB2D7bits_t;
-extern volatile __TXB2D7bits_t at 0xf2d TXB2D7bits;
+extern volatile __TXB2D7bits_t __at 0xf2d TXB2D7bits;
-extern sfr at 0xf2e CANSTATRO4;
+extern __sfr __at 0xf2e CANSTATRO4;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO4bits_t;
-extern volatile __CANSTATRO4bits_t at 0xf2e CANSTATRO4bits;
+extern volatile __CANSTATRO4bits_t __at 0xf2e CANSTATRO4bits;
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf30 TXB1CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB1CONbits_t;
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
-extern sfr at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf31 TXB1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB1SIDHbits_t;
-extern volatile __TXB1SIDHbits_t at 0xf31 TXB1SIDHbits;
+extern volatile __TXB1SIDHbits_t __at 0xf31 TXB1SIDHbits;
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf32 TXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB1SIDLbits_t;
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
-extern sfr at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf33 TXB1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB1EIDHbits_t;
-extern volatile __TXB1EIDHbits_t at 0xf33 TXB1EIDHbits;
+extern volatile __TXB1EIDHbits_t __at 0xf33 TXB1EIDHbits;
-extern sfr at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf34 TXB1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB1EIDLbits_t;
-extern volatile __TXB1EIDLbits_t at 0xf34 TXB1EIDLbits;
+extern volatile __TXB1EIDLbits_t __at 0xf34 TXB1EIDLbits;
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf35 TXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB1DLCbits_t;
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
-extern sfr at 0xf36 TXB1D0;
+extern __sfr __at 0xf36 TXB1D0;
typedef union {
struct {
unsigned TXB1D00:1;
};
} __TXB1D0bits_t;
-extern volatile __TXB1D0bits_t at 0xf36 TXB1D0bits;
+extern volatile __TXB1D0bits_t __at 0xf36 TXB1D0bits;
-extern sfr at 0xf37 TXB1D1;
+extern __sfr __at 0xf37 TXB1D1;
typedef union {
struct {
unsigned TXB1D10:1;
};
} __TXB1D1bits_t;
-extern volatile __TXB1D1bits_t at 0xf37 TXB1D1bits;
+extern volatile __TXB1D1bits_t __at 0xf37 TXB1D1bits;
-extern sfr at 0xf38 TXB1D2;
+extern __sfr __at 0xf38 TXB1D2;
typedef union {
struct {
unsigned TXB1D20:1;
};
} __TXB1D2bits_t;
-extern volatile __TXB1D2bits_t at 0xf38 TXB1D2bits;
+extern volatile __TXB1D2bits_t __at 0xf38 TXB1D2bits;
-extern sfr at 0xf39 TXB1D3;
+extern __sfr __at 0xf39 TXB1D3;
typedef union {
struct {
unsigned TXB1D30:1;
};
} __TXB1D3bits_t;
-extern volatile __TXB1D3bits_t at 0xf39 TXB1D3bits;
+extern volatile __TXB1D3bits_t __at 0xf39 TXB1D3bits;
-extern sfr at 0xf3a TXB1D4;
+extern __sfr __at 0xf3a TXB1D4;
typedef union {
struct {
unsigned TXB1D40:1;
};
} __TXB1D4bits_t;
-extern volatile __TXB1D4bits_t at 0xf3a TXB1D4bits;
+extern volatile __TXB1D4bits_t __at 0xf3a TXB1D4bits;
-extern sfr at 0xf3b TXB1D5;
+extern __sfr __at 0xf3b TXB1D5;
typedef union {
struct {
unsigned TXB1D50:1;
};
} __TXB1D5bits_t;
-extern volatile __TXB1D5bits_t at 0xf3b TXB1D5bits;
+extern volatile __TXB1D5bits_t __at 0xf3b TXB1D5bits;
-extern sfr at 0xf3c TXB1D6;
+extern __sfr __at 0xf3c TXB1D6;
typedef union {
struct {
unsigned TXB1D60:1;
};
} __TXB1D6bits_t;
-extern volatile __TXB1D6bits_t at 0xf3c TXB1D6bits;
+extern volatile __TXB1D6bits_t __at 0xf3c TXB1D6bits;
-extern sfr at 0xf3d TXB1D7;
+extern __sfr __at 0xf3d TXB1D7;
typedef union {
struct {
unsigned TXB1D70:1;
};
} __TXB1D7bits_t;
-extern volatile __TXB1D7bits_t at 0xf3d TXB1D7bits;
+extern volatile __TXB1D7bits_t __at 0xf3d TXB1D7bits;
-extern sfr at 0xf3e CANSTATRO3;
+extern __sfr __at 0xf3e CANSTATRO3;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO3bits_t;
-extern volatile __CANSTATRO3bits_t at 0xf3e CANSTATRO3bits;
+extern volatile __CANSTATRO3bits_t __at 0xf3e CANSTATRO3bits;
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf40 TXB0CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB0CONbits_t;
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
-extern sfr at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf41 TXB0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB0SIDHbits_t;
-extern volatile __TXB0SIDHbits_t at 0xf41 TXB0SIDHbits;
+extern volatile __TXB0SIDHbits_t __at 0xf41 TXB0SIDHbits;
-extern sfr at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf42 TXB0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB0SIDLbits_t;
-extern volatile __TXB0SIDLbits_t at 0xf42 TXB0SIDLbits;
+extern volatile __TXB0SIDLbits_t __at 0xf42 TXB0SIDLbits;
-extern sfr at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf43 TXB0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB0EIDHbits_t;
-extern volatile __TXB0EIDHbits_t at 0xf43 TXB0EIDHbits;
+extern volatile __TXB0EIDHbits_t __at 0xf43 TXB0EIDHbits;
-extern sfr at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf44 TXB0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB0EIDLbits_t;
-extern volatile __TXB0EIDLbits_t at 0xf44 TXB0EIDLbits;
+extern volatile __TXB0EIDLbits_t __at 0xf44 TXB0EIDLbits;
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf45 TXB0DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB0DLCbits_t;
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
-extern sfr at 0xf46 TXB0D0;
+extern __sfr __at 0xf46 TXB0D0;
typedef union {
struct {
unsigned TXB0D00:1;
};
} __TXB0D0bits_t;
-extern volatile __TXB0D0bits_t at 0xf46 TXB0D0bits;
+extern volatile __TXB0D0bits_t __at 0xf46 TXB0D0bits;
-extern sfr at 0xf47 TXB0D1;
+extern __sfr __at 0xf47 TXB0D1;
typedef union {
struct {
unsigned TXB0D10:1;
};
} __TXB0D1bits_t;
-extern volatile __TXB0D1bits_t at 0xf47 TXB0D1bits;
+extern volatile __TXB0D1bits_t __at 0xf47 TXB0D1bits;
-extern sfr at 0xf48 TXB0D2;
+extern __sfr __at 0xf48 TXB0D2;
typedef union {
struct {
unsigned TXB0D20:1;
};
} __TXB0D2bits_t;
-extern volatile __TXB0D2bits_t at 0xf48 TXB0D2bits;
+extern volatile __TXB0D2bits_t __at 0xf48 TXB0D2bits;
-extern sfr at 0xf49 TXB0D3;
+extern __sfr __at 0xf49 TXB0D3;
typedef union {
struct {
unsigned TXB0D30:1;
};
} __TXB0D3bits_t;
-extern volatile __TXB0D3bits_t at 0xf49 TXB0D3bits;
+extern volatile __TXB0D3bits_t __at 0xf49 TXB0D3bits;
-extern sfr at 0xf4a TXB0D4;
+extern __sfr __at 0xf4a TXB0D4;
typedef union {
struct {
unsigned TXB0D40:1;
};
} __TXB0D4bits_t;
-extern volatile __TXB0D4bits_t at 0xf4a TXB0D4bits;
+extern volatile __TXB0D4bits_t __at 0xf4a TXB0D4bits;
-extern sfr at 0xf4b TXB0D5;
+extern __sfr __at 0xf4b TXB0D5;
typedef union {
struct {
unsigned TXB0D50:1;
};
} __TXB0D5bits_t;
-extern volatile __TXB0D5bits_t at 0xf4b TXB0D5bits;
+extern volatile __TXB0D5bits_t __at 0xf4b TXB0D5bits;
-extern sfr at 0xf4c TXB0D6;
+extern __sfr __at 0xf4c TXB0D6;
typedef union {
struct {
unsigned TXB0D60:1;
};
} __TXB0D6bits_t;
-extern volatile __TXB0D6bits_t at 0xf4c TXB0D6bits;
+extern volatile __TXB0D6bits_t __at 0xf4c TXB0D6bits;
-extern sfr at 0xf4d TXB0D7;
+extern __sfr __at 0xf4d TXB0D7;
typedef union {
struct {
unsigned TXB0D70:1;
};
} __TXB0D7bits_t;
-extern volatile __TXB0D7bits_t at 0xf4d TXB0D7bits;
+extern volatile __TXB0D7bits_t __at 0xf4d TXB0D7bits;
-extern sfr at 0xf4e CANSTATRO2;
+extern __sfr __at 0xf4e CANSTATRO2;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO2bits_t;
-extern volatile __CANSTATRO2bits_t at 0xf4e CANSTATRO2bits;
+extern volatile __CANSTATRO2bits_t __at 0xf4e CANSTATRO2bits;
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf50 RXB1CON;
typedef union {
struct {
unsigned FILHIT0:1;
};
} __RXB1CONbits_t;
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
-extern sfr at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf51 RXB1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXB1SIDHbits_t;
-extern volatile __RXB1SIDHbits_t at 0xf51 RXB1SIDHbits;
+extern volatile __RXB1SIDHbits_t __at 0xf51 RXB1SIDHbits;
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf52 RXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB1SIDLbits_t;
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
-extern sfr at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf53 RXB1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXB1EIDHbits_t;
-extern volatile __RXB1EIDHbits_t at 0xf53 RXB1EIDHbits;
+extern volatile __RXB1EIDHbits_t __at 0xf53 RXB1EIDHbits;
-extern sfr at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf54 RXB1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXB1EIDLbits_t;
-extern volatile __RXB1EIDLbits_t at 0xf54 RXB1EIDLbits;
+extern volatile __RXB1EIDLbits_t __at 0xf54 RXB1EIDLbits;
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf55 RXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __RXB1DLCbits_t;
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
-extern sfr at 0xf56 RXB1D0;
+extern __sfr __at 0xf56 RXB1D0;
typedef union {
struct {
unsigned RXB1D00:1;
};
} __RXB1D0bits_t;
-extern volatile __RXB1D0bits_t at 0xf56 RXB1D0bits;
+extern volatile __RXB1D0bits_t __at 0xf56 RXB1D0bits;
-extern sfr at 0xf57 RXB1D1;
+extern __sfr __at 0xf57 RXB1D1;
typedef union {
struct {
unsigned RXB1D10:1;
};
} __RXB1D1bits_t;
-extern volatile __RXB1D1bits_t at 0xf57 RXB1D1bits;
+extern volatile __RXB1D1bits_t __at 0xf57 RXB1D1bits;
-extern sfr at 0xf58 RXB1D2;
+extern __sfr __at 0xf58 RXB1D2;
typedef union {
struct {
unsigned RXB1D20:1;
};
} __RXB1D2bits_t;
-extern volatile __RXB1D2bits_t at 0xf58 RXB1D2bits;
+extern volatile __RXB1D2bits_t __at 0xf58 RXB1D2bits;
-extern sfr at 0xf59 RXB1D3;
+extern __sfr __at 0xf59 RXB1D3;
typedef union {
struct {
unsigned RXB1D30:1;
};
} __RXB1D3bits_t;
-extern volatile __RXB1D3bits_t at 0xf59 RXB1D3bits;
+extern volatile __RXB1D3bits_t __at 0xf59 RXB1D3bits;
-extern sfr at 0xf5a RXB1D4;
+extern __sfr __at 0xf5a RXB1D4;
typedef union {
struct {
unsigned RXB1D40:1;
};
} __RXB1D4bits_t;
-extern volatile __RXB1D4bits_t at 0xf5a RXB1D4bits;
+extern volatile __RXB1D4bits_t __at 0xf5a RXB1D4bits;
-extern sfr at 0xf5b RXB1D5;
+extern __sfr __at 0xf5b RXB1D5;
typedef union {
struct {
unsigned RXB1D50:1;
};
} __RXB1D5bits_t;
-extern volatile __RXB1D5bits_t at 0xf5b RXB1D5bits;
+extern volatile __RXB1D5bits_t __at 0xf5b RXB1D5bits;
-extern sfr at 0xf5c RXB1D6;
+extern __sfr __at 0xf5c RXB1D6;
typedef union {
struct {
unsigned RXB1D60:1;
};
} __RXB1D6bits_t;
-extern volatile __RXB1D6bits_t at 0xf5c RXB1D6bits;
+extern volatile __RXB1D6bits_t __at 0xf5c RXB1D6bits;
-extern sfr at 0xf5d RXB1D7;
+extern __sfr __at 0xf5d RXB1D7;
typedef union {
struct {
unsigned RXB1D70:1;
};
} __RXB1D7bits_t;
-extern volatile __RXB1D7bits_t at 0xf5d RXB1D7bits;
+extern volatile __RXB1D7bits_t __at 0xf5d RXB1D7bits;
-extern sfr at 0xf5e CANSTATRO1;
+extern __sfr __at 0xf5e CANSTATRO1;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO1bits_t;
-extern volatile __CANSTATRO1bits_t at 0xf5e CANSTATRO1bits;
+extern volatile __CANSTATRO1bits_t __at 0xf5e CANSTATRO1bits;
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf60 RXB0CON;
typedef union {
struct {
unsigned FILHIT0:1;
};
} __RXB0CONbits_t;
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
-extern sfr at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf61 RXB0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXB0SIDHbits_t;
-extern volatile __RXB0SIDHbits_t at 0xf61 RXB0SIDHbits;
+extern volatile __RXB0SIDHbits_t __at 0xf61 RXB0SIDHbits;
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf62 RXB0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB0SIDLbits_t;
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
-extern sfr at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf63 RXB0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXB0EIDHbits_t;
-extern volatile __RXB0EIDHbits_t at 0xf63 RXB0EIDHbits;
+extern volatile __RXB0EIDHbits_t __at 0xf63 RXB0EIDHbits;
-extern sfr at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf64 RXB0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXB0EIDLbits_t;
-extern volatile __RXB0EIDLbits_t at 0xf64 RXB0EIDLbits;
+extern volatile __RXB0EIDLbits_t __at 0xf64 RXB0EIDLbits;
-extern sfr at 0xf65 RXB0DLC;
+extern __sfr __at 0xf65 RXB0DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __RXB0DLCbits_t;
-extern volatile __RXB0DLCbits_t at 0xf65 RXB0DLCbits;
+extern volatile __RXB0DLCbits_t __at 0xf65 RXB0DLCbits;
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
typedef union {
struct {
unsigned :1;
};
} __CANSTATbits_t;
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
typedef union {
struct {
unsigned WIN0:1;
};
} __CANCONbits_t;
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
typedef union {
struct {
unsigned BRP0:1;
};
} __BRGCON1bits_t;
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
typedef union {
struct {
unsigned PRSEG0:1;
};
} __BRGCON2bits_t;
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
typedef union {
struct {
unsigned SEG2PH0:1;
};
} __BRGCON3bits_t;
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
typedef union {
struct {
unsigned :1;
};
} __CIOCONbits_t;
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
typedef union {
struct {
unsigned EWARN:1;
};
} __COMSTATbits_t;
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
typedef union {
struct {
unsigned REC0:1;
};
} __RXERRCNTbits_t;
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
typedef union {
struct {
unsigned TEC0:1;
};
} __TXERRCNTbits_t;
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned :1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned RX0IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned RX0IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned RX0IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb0 PSPCON;
typedef union {
struct {
unsigned :1;
};
} __PSPCONbits_t;
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
typedef union {
struct {
unsigned CM0:1;
};
} __CMCONbits_t;
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
typedef union {
struct {
unsigned CVR0:1;
};
} __CVRCONbits_t;
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
-extern sfr at 0xfb6 ECCPAS;
+extern __sfr __at 0xfb6 ECCPAS;
typedef union {
struct {
unsigned PSSBD0:1;
};
} __ECCPASbits_t;
-extern volatile __ECCPASbits_t at 0xfb6 ECCPASbits;
+extern volatile __ECCPASbits_t __at 0xfb6 ECCPASbits;
-extern sfr at 0xfb7 ECCP1DEL;
+extern __sfr __at 0xfb7 ECCP1DEL;
typedef union {
struct {
unsigned EPDC0:1;
};
} __ECCP1DELbits_t;
-extern volatile __ECCP1DELbits_t at 0xfb7 ECCP1DELbits;
+extern volatile __ECCP1DELbits_t __at 0xfb7 ECCP1DELbits;
-extern sfr at 0xfba ECCP1CON;
+extern __sfr __at 0xfba ECCP1CON;
typedef union {
struct {
unsigned ECCP1M0:1;
};
} __ECCP1CONbits_t;
-extern volatile __ECCP1CONbits_t at 0xfba ECCP1CONbits;
+extern volatile __ECCP1CONbits_t __at 0xfba ECCP1CONbits;
-extern sfr at 0xfbb ECCPR1L;
-extern sfr at 0xfbc ECCPR1H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb ECCPR1L;
+extern __sfr __at 0xfbc ECCPR1H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F452_H__
#define __PIC18F452_H__
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned :1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
+extern __sfr __at 0xfd5 T0CON;
typedef union {
struct {
unsigned T0PS0:1;
};
} __T0CONbits_t;
-extern volatile __T0CONbits_t at 0xfd5 T0CONbits;
+extern volatile __T0CONbits_t __at 0xfd5 T0CONbits;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F458_H__
#define __PIC18F458_H__
-extern sfr at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf00 RXF0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF0SIDHbits_t;
-extern volatile __RXF0SIDHbits_t at 0xf00 RXF0SIDHbits;
+extern volatile __RXF0SIDHbits_t __at 0xf00 RXF0SIDHbits;
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf01 RXF0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF0SIDLbits_t;
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
-extern sfr at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf02 RXF0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF0EIDHbits_t;
-extern volatile __RXF0EIDHbits_t at 0xf02 RXF0EIDHbits;
+extern volatile __RXF0EIDHbits_t __at 0xf02 RXF0EIDHbits;
-extern sfr at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf03 RXF0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF0EIDLbits_t;
-extern volatile __RXF0EIDLbits_t at 0xf03 RXF0EIDLbits;
+extern volatile __RXF0EIDLbits_t __at 0xf03 RXF0EIDLbits;
-extern sfr at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf04 RXF1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF1SIDHbits_t;
-extern volatile __RXF1SIDHbits_t at 0xf04 RXF1SIDHbits;
+extern volatile __RXF1SIDHbits_t __at 0xf04 RXF1SIDHbits;
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf05 RXF1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF1SIDLbits_t;
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
-extern sfr at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf06 RXF1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF1EIDHbits_t;
-extern volatile __RXF1EIDHbits_t at 0xf06 RXF1EIDHbits;
+extern volatile __RXF1EIDHbits_t __at 0xf06 RXF1EIDHbits;
-extern sfr at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf07 RXF1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF1EIDLbits_t;
-extern volatile __RXF1EIDLbits_t at 0xf07 RXF1EIDLbits;
+extern volatile __RXF1EIDLbits_t __at 0xf07 RXF1EIDLbits;
-extern sfr at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf08 RXF2SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF2SIDHbits_t;
-extern volatile __RXF2SIDHbits_t at 0xf08 RXF2SIDHbits;
+extern volatile __RXF2SIDHbits_t __at 0xf08 RXF2SIDHbits;
-extern sfr at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf09 RXF2SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF2SIDLbits_t;
-extern volatile __RXF2SIDLbits_t at 0xf09 RXF2SIDLbits;
+extern volatile __RXF2SIDLbits_t __at 0xf09 RXF2SIDLbits;
-extern sfr at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0a RXF2EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF2EIDHbits_t;
-extern volatile __RXF2EIDHbits_t at 0xf0a RXF2EIDHbits;
+extern volatile __RXF2EIDHbits_t __at 0xf0a RXF2EIDHbits;
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf0b RXF2EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF2EIDLbits_t;
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
-extern sfr at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0c RXF3SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF3SIDHbits_t;
-extern volatile __RXF3SIDHbits_t at 0xf0c RXF3SIDHbits;
+extern volatile __RXF3SIDHbits_t __at 0xf0c RXF3SIDHbits;
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0d RXF3SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF3SIDLbits_t;
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
-extern sfr at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0e RXF3EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF3EIDHbits_t;
-extern volatile __RXF3EIDHbits_t at 0xf0e RXF3EIDHbits;
+extern volatile __RXF3EIDHbits_t __at 0xf0e RXF3EIDHbits;
-extern sfr at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf0f RXF3EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF3EIDLbits_t;
-extern volatile __RXF3EIDLbits_t at 0xf0f RXF3EIDLbits;
+extern volatile __RXF3EIDLbits_t __at 0xf0f RXF3EIDLbits;
-extern sfr at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf10 RXF4SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF4SIDHbits_t;
-extern volatile __RXF4SIDHbits_t at 0xf10 RXF4SIDHbits;
+extern volatile __RXF4SIDHbits_t __at 0xf10 RXF4SIDHbits;
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf11 RXF4SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF4SIDLbits_t;
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
-extern sfr at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf12 RXF4EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF4EIDHbits_t;
-extern volatile __RXF4EIDHbits_t at 0xf12 RXF4EIDHbits;
+extern volatile __RXF4EIDHbits_t __at 0xf12 RXF4EIDHbits;
-extern sfr at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf13 RXF4EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF4EIDLbits_t;
-extern volatile __RXF4EIDLbits_t at 0xf13 RXF4EIDLbits;
+extern volatile __RXF4EIDLbits_t __at 0xf13 RXF4EIDLbits;
-extern sfr at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf14 RXF5SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXF5SIDHbits_t;
-extern volatile __RXF5SIDHbits_t at 0xf14 RXF5SIDHbits;
+extern volatile __RXF5SIDHbits_t __at 0xf14 RXF5SIDHbits;
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf15 RXF5SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF5SIDLbits_t;
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
-extern sfr at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf16 RXF5EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXF5EIDHbits_t;
-extern volatile __RXF5EIDHbits_t at 0xf16 RXF5EIDHbits;
+extern volatile __RXF5EIDHbits_t __at 0xf16 RXF5EIDHbits;
-extern sfr at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf17 RXF5EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXF5EIDLbits_t;
-extern volatile __RXF5EIDLbits_t at 0xf17 RXF5EIDLbits;
+extern volatile __RXF5EIDLbits_t __at 0xf17 RXF5EIDLbits;
-extern sfr at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf18 RXM0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXM0SIDHbits_t;
-extern volatile __RXM0SIDHbits_t at 0xf18 RXM0SIDHbits;
+extern volatile __RXM0SIDHbits_t __at 0xf18 RXM0SIDHbits;
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf19 RXM0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM0SIDLbits_t;
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
-extern sfr at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1a RXM0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXM0EIDHbits_t;
-extern volatile __RXM0EIDHbits_t at 0xf1a RXM0EIDHbits;
+extern volatile __RXM0EIDHbits_t __at 0xf1a RXM0EIDHbits;
-extern sfr at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1b RXM0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXM0EIDLbits_t;
-extern volatile __RXM0EIDLbits_t at 0xf1b RXM0EIDLbits;
+extern volatile __RXM0EIDLbits_t __at 0xf1b RXM0EIDLbits;
-extern sfr at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1c RXM1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXM1SIDHbits_t;
-extern volatile __RXM1SIDHbits_t at 0xf1c RXM1SIDHbits;
+extern volatile __RXM1SIDHbits_t __at 0xf1c RXM1SIDHbits;
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1d RXM1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM1SIDLbits_t;
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
-extern sfr at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1e RXM1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXM1EIDHbits_t;
-extern volatile __RXM1EIDHbits_t at 0xf1e RXM1EIDHbits;
+extern volatile __RXM1EIDHbits_t __at 0xf1e RXM1EIDHbits;
-extern sfr at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf1f RXM1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXM1EIDLbits_t;
-extern volatile __RXM1EIDLbits_t at 0xf1f RXM1EIDLbits;
+extern volatile __RXM1EIDLbits_t __at 0xf1f RXM1EIDLbits;
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf20 TXB2CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB2CONbits_t;
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
-extern sfr at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf21 TXB2SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB2SIDHbits_t;
-extern volatile __TXB2SIDHbits_t at 0xf21 TXB2SIDHbits;
+extern volatile __TXB2SIDHbits_t __at 0xf21 TXB2SIDHbits;
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf22 TXB2SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB2SIDLbits_t;
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
-extern sfr at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf23 TXB2EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB2EIDHbits_t;
-extern volatile __TXB2EIDHbits_t at 0xf23 TXB2EIDHbits;
+extern volatile __TXB2EIDHbits_t __at 0xf23 TXB2EIDHbits;
-extern sfr at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf24 TXB2EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB2EIDLbits_t;
-extern volatile __TXB2EIDLbits_t at 0xf24 TXB2EIDLbits;
+extern volatile __TXB2EIDLbits_t __at 0xf24 TXB2EIDLbits;
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf25 TXB2DLC;
typedef union {
struct {
unsigned TXB2DLC0:1;
};
} __TXB2DLCbits_t;
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
-extern sfr at 0xf26 TXB2D0;
+extern __sfr __at 0xf26 TXB2D0;
typedef union {
struct {
unsigned TXB2D00:1;
};
} __TXB2D0bits_t;
-extern volatile __TXB2D0bits_t at 0xf26 TXB2D0bits;
+extern volatile __TXB2D0bits_t __at 0xf26 TXB2D0bits;
-extern sfr at 0xf27 TXB2D1;
+extern __sfr __at 0xf27 TXB2D1;
typedef union {
struct {
unsigned TXB2D10:1;
};
} __TXB2D1bits_t;
-extern volatile __TXB2D1bits_t at 0xf27 TXB2D1bits;
+extern volatile __TXB2D1bits_t __at 0xf27 TXB2D1bits;
-extern sfr at 0xf28 TXB2D2;
+extern __sfr __at 0xf28 TXB2D2;
typedef union {
struct {
unsigned TXB2D20:1;
};
} __TXB2D2bits_t;
-extern volatile __TXB2D2bits_t at 0xf28 TXB2D2bits;
+extern volatile __TXB2D2bits_t __at 0xf28 TXB2D2bits;
-extern sfr at 0xf29 TXB2D3;
+extern __sfr __at 0xf29 TXB2D3;
typedef union {
struct {
unsigned TXB2D30:1;
};
} __TXB2D3bits_t;
-extern volatile __TXB2D3bits_t at 0xf29 TXB2D3bits;
+extern volatile __TXB2D3bits_t __at 0xf29 TXB2D3bits;
-extern sfr at 0xf2a TXB2D4;
+extern __sfr __at 0xf2a TXB2D4;
typedef union {
struct {
unsigned TXB2D40:1;
};
} __TXB2D4bits_t;
-extern volatile __TXB2D4bits_t at 0xf2a TXB2D4bits;
+extern volatile __TXB2D4bits_t __at 0xf2a TXB2D4bits;
-extern sfr at 0xf2b TXB2D5;
+extern __sfr __at 0xf2b TXB2D5;
typedef union {
struct {
unsigned TXB2D50:1;
};
} __TXB2D5bits_t;
-extern volatile __TXB2D5bits_t at 0xf2b TXB2D5bits;
+extern volatile __TXB2D5bits_t __at 0xf2b TXB2D5bits;
-extern sfr at 0xf2c TXB2D6;
+extern __sfr __at 0xf2c TXB2D6;
typedef union {
struct {
unsigned TXB2D60:1;
};
} __TXB2D6bits_t;
-extern volatile __TXB2D6bits_t at 0xf2c TXB2D6bits;
+extern volatile __TXB2D6bits_t __at 0xf2c TXB2D6bits;
-extern sfr at 0xf2d TXB2D7;
+extern __sfr __at 0xf2d TXB2D7;
typedef union {
struct {
unsigned TXB2D70:1;
};
} __TXB2D7bits_t;
-extern volatile __TXB2D7bits_t at 0xf2d TXB2D7bits;
+extern volatile __TXB2D7bits_t __at 0xf2d TXB2D7bits;
-extern sfr at 0xf2e CANSTATRO4;
+extern __sfr __at 0xf2e CANSTATRO4;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO4bits_t;
-extern volatile __CANSTATRO4bits_t at 0xf2e CANSTATRO4bits;
+extern volatile __CANSTATRO4bits_t __at 0xf2e CANSTATRO4bits;
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf30 TXB1CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB1CONbits_t;
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
-extern sfr at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf31 TXB1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB1SIDHbits_t;
-extern volatile __TXB1SIDHbits_t at 0xf31 TXB1SIDHbits;
+extern volatile __TXB1SIDHbits_t __at 0xf31 TXB1SIDHbits;
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf32 TXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB1SIDLbits_t;
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
-extern sfr at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf33 TXB1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB1EIDHbits_t;
-extern volatile __TXB1EIDHbits_t at 0xf33 TXB1EIDHbits;
+extern volatile __TXB1EIDHbits_t __at 0xf33 TXB1EIDHbits;
-extern sfr at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf34 TXB1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB1EIDLbits_t;
-extern volatile __TXB1EIDLbits_t at 0xf34 TXB1EIDLbits;
+extern volatile __TXB1EIDLbits_t __at 0xf34 TXB1EIDLbits;
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf35 TXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB1DLCbits_t;
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
-extern sfr at 0xf36 TXB1D0;
+extern __sfr __at 0xf36 TXB1D0;
typedef union {
struct {
unsigned TXB1D00:1;
};
} __TXB1D0bits_t;
-extern volatile __TXB1D0bits_t at 0xf36 TXB1D0bits;
+extern volatile __TXB1D0bits_t __at 0xf36 TXB1D0bits;
-extern sfr at 0xf37 TXB1D1;
+extern __sfr __at 0xf37 TXB1D1;
typedef union {
struct {
unsigned TXB1D10:1;
};
} __TXB1D1bits_t;
-extern volatile __TXB1D1bits_t at 0xf37 TXB1D1bits;
+extern volatile __TXB1D1bits_t __at 0xf37 TXB1D1bits;
-extern sfr at 0xf38 TXB1D2;
+extern __sfr __at 0xf38 TXB1D2;
typedef union {
struct {
unsigned TXB1D20:1;
};
} __TXB1D2bits_t;
-extern volatile __TXB1D2bits_t at 0xf38 TXB1D2bits;
+extern volatile __TXB1D2bits_t __at 0xf38 TXB1D2bits;
-extern sfr at 0xf39 TXB1D3;
+extern __sfr __at 0xf39 TXB1D3;
typedef union {
struct {
unsigned TXB1D30:1;
};
} __TXB1D3bits_t;
-extern volatile __TXB1D3bits_t at 0xf39 TXB1D3bits;
+extern volatile __TXB1D3bits_t __at 0xf39 TXB1D3bits;
-extern sfr at 0xf3a TXB1D4;
+extern __sfr __at 0xf3a TXB1D4;
typedef union {
struct {
unsigned TXB1D40:1;
};
} __TXB1D4bits_t;
-extern volatile __TXB1D4bits_t at 0xf3a TXB1D4bits;
+extern volatile __TXB1D4bits_t __at 0xf3a TXB1D4bits;
-extern sfr at 0xf3b TXB1D5;
+extern __sfr __at 0xf3b TXB1D5;
typedef union {
struct {
unsigned TXB1D50:1;
};
} __TXB1D5bits_t;
-extern volatile __TXB1D5bits_t at 0xf3b TXB1D5bits;
+extern volatile __TXB1D5bits_t __at 0xf3b TXB1D5bits;
-extern sfr at 0xf3c TXB1D6;
+extern __sfr __at 0xf3c TXB1D6;
typedef union {
struct {
unsigned TXB1D60:1;
};
} __TXB1D6bits_t;
-extern volatile __TXB1D6bits_t at 0xf3c TXB1D6bits;
+extern volatile __TXB1D6bits_t __at 0xf3c TXB1D6bits;
-extern sfr at 0xf3d TXB1D7;
+extern __sfr __at 0xf3d TXB1D7;
typedef union {
struct {
unsigned TXB1D70:1;
};
} __TXB1D7bits_t;
-extern volatile __TXB1D7bits_t at 0xf3d TXB1D7bits;
+extern volatile __TXB1D7bits_t __at 0xf3d TXB1D7bits;
-extern sfr at 0xf3e CANSTATRO3;
+extern __sfr __at 0xf3e CANSTATRO3;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO3bits_t;
-extern volatile __CANSTATRO3bits_t at 0xf3e CANSTATRO3bits;
+extern volatile __CANSTATRO3bits_t __at 0xf3e CANSTATRO3bits;
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf40 TXB0CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB0CONbits_t;
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
-extern sfr at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf41 TXB0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __TXB0SIDHbits_t;
-extern volatile __TXB0SIDHbits_t at 0xf41 TXB0SIDHbits;
+extern volatile __TXB0SIDHbits_t __at 0xf41 TXB0SIDHbits;
-extern sfr at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf42 TXB0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB0SIDLbits_t;
-extern volatile __TXB0SIDLbits_t at 0xf42 TXB0SIDLbits;
+extern volatile __TXB0SIDLbits_t __at 0xf42 TXB0SIDLbits;
-extern sfr at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf43 TXB0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __TXB0EIDHbits_t;
-extern volatile __TXB0EIDHbits_t at 0xf43 TXB0EIDHbits;
+extern volatile __TXB0EIDHbits_t __at 0xf43 TXB0EIDHbits;
-extern sfr at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf44 TXB0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __TXB0EIDLbits_t;
-extern volatile __TXB0EIDLbits_t at 0xf44 TXB0EIDLbits;
+extern volatile __TXB0EIDLbits_t __at 0xf44 TXB0EIDLbits;
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf45 TXB0DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB0DLCbits_t;
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
-extern sfr at 0xf46 TXB0D0;
+extern __sfr __at 0xf46 TXB0D0;
typedef union {
struct {
unsigned TXB0D00:1;
};
} __TXB0D0bits_t;
-extern volatile __TXB0D0bits_t at 0xf46 TXB0D0bits;
+extern volatile __TXB0D0bits_t __at 0xf46 TXB0D0bits;
-extern sfr at 0xf47 TXB0D1;
+extern __sfr __at 0xf47 TXB0D1;
typedef union {
struct {
unsigned TXB0D10:1;
};
} __TXB0D1bits_t;
-extern volatile __TXB0D1bits_t at 0xf47 TXB0D1bits;
+extern volatile __TXB0D1bits_t __at 0xf47 TXB0D1bits;
-extern sfr at 0xf48 TXB0D2;
+extern __sfr __at 0xf48 TXB0D2;
typedef union {
struct {
unsigned TXB0D20:1;
};
} __TXB0D2bits_t;
-extern volatile __TXB0D2bits_t at 0xf48 TXB0D2bits;
+extern volatile __TXB0D2bits_t __at 0xf48 TXB0D2bits;
-extern sfr at 0xf49 TXB0D3;
+extern __sfr __at 0xf49 TXB0D3;
typedef union {
struct {
unsigned TXB0D30:1;
};
} __TXB0D3bits_t;
-extern volatile __TXB0D3bits_t at 0xf49 TXB0D3bits;
+extern volatile __TXB0D3bits_t __at 0xf49 TXB0D3bits;
-extern sfr at 0xf4a TXB0D4;
+extern __sfr __at 0xf4a TXB0D4;
typedef union {
struct {
unsigned TXB0D40:1;
};
} __TXB0D4bits_t;
-extern volatile __TXB0D4bits_t at 0xf4a TXB0D4bits;
+extern volatile __TXB0D4bits_t __at 0xf4a TXB0D4bits;
-extern sfr at 0xf4b TXB0D5;
+extern __sfr __at 0xf4b TXB0D5;
typedef union {
struct {
unsigned TXB0D50:1;
};
} __TXB0D5bits_t;
-extern volatile __TXB0D5bits_t at 0xf4b TXB0D5bits;
+extern volatile __TXB0D5bits_t __at 0xf4b TXB0D5bits;
-extern sfr at 0xf4c TXB0D6;
+extern __sfr __at 0xf4c TXB0D6;
typedef union {
struct {
unsigned TXB0D60:1;
};
} __TXB0D6bits_t;
-extern volatile __TXB0D6bits_t at 0xf4c TXB0D6bits;
+extern volatile __TXB0D6bits_t __at 0xf4c TXB0D6bits;
-extern sfr at 0xf4d TXB0D7;
+extern __sfr __at 0xf4d TXB0D7;
typedef union {
struct {
unsigned TXB0D70:1;
};
} __TXB0D7bits_t;
-extern volatile __TXB0D7bits_t at 0xf4d TXB0D7bits;
+extern volatile __TXB0D7bits_t __at 0xf4d TXB0D7bits;
-extern sfr at 0xf4e CANSTATRO2;
+extern __sfr __at 0xf4e CANSTATRO2;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO2bits_t;
-extern volatile __CANSTATRO2bits_t at 0xf4e CANSTATRO2bits;
+extern volatile __CANSTATRO2bits_t __at 0xf4e CANSTATRO2bits;
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf50 RXB1CON;
typedef union {
struct {
unsigned FILHIT0:1;
};
} __RXB1CONbits_t;
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
-extern sfr at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf51 RXB1SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXB1SIDHbits_t;
-extern volatile __RXB1SIDHbits_t at 0xf51 RXB1SIDHbits;
+extern volatile __RXB1SIDHbits_t __at 0xf51 RXB1SIDHbits;
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf52 RXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB1SIDLbits_t;
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
-extern sfr at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf53 RXB1EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXB1EIDHbits_t;
-extern volatile __RXB1EIDHbits_t at 0xf53 RXB1EIDHbits;
+extern volatile __RXB1EIDHbits_t __at 0xf53 RXB1EIDHbits;
-extern sfr at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf54 RXB1EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXB1EIDLbits_t;
-extern volatile __RXB1EIDLbits_t at 0xf54 RXB1EIDLbits;
+extern volatile __RXB1EIDLbits_t __at 0xf54 RXB1EIDLbits;
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf55 RXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __RXB1DLCbits_t;
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
-extern sfr at 0xf56 RXB1D0;
+extern __sfr __at 0xf56 RXB1D0;
typedef union {
struct {
unsigned RXB1D00:1;
};
} __RXB1D0bits_t;
-extern volatile __RXB1D0bits_t at 0xf56 RXB1D0bits;
+extern volatile __RXB1D0bits_t __at 0xf56 RXB1D0bits;
-extern sfr at 0xf57 RXB1D1;
+extern __sfr __at 0xf57 RXB1D1;
typedef union {
struct {
unsigned RXB1D10:1;
};
} __RXB1D1bits_t;
-extern volatile __RXB1D1bits_t at 0xf57 RXB1D1bits;
+extern volatile __RXB1D1bits_t __at 0xf57 RXB1D1bits;
-extern sfr at 0xf58 RXB1D2;
+extern __sfr __at 0xf58 RXB1D2;
typedef union {
struct {
unsigned RXB1D20:1;
};
} __RXB1D2bits_t;
-extern volatile __RXB1D2bits_t at 0xf58 RXB1D2bits;
+extern volatile __RXB1D2bits_t __at 0xf58 RXB1D2bits;
-extern sfr at 0xf59 RXB1D3;
+extern __sfr __at 0xf59 RXB1D3;
typedef union {
struct {
unsigned RXB1D30:1;
};
} __RXB1D3bits_t;
-extern volatile __RXB1D3bits_t at 0xf59 RXB1D3bits;
+extern volatile __RXB1D3bits_t __at 0xf59 RXB1D3bits;
-extern sfr at 0xf5a RXB1D4;
+extern __sfr __at 0xf5a RXB1D4;
typedef union {
struct {
unsigned RXB1D40:1;
};
} __RXB1D4bits_t;
-extern volatile __RXB1D4bits_t at 0xf5a RXB1D4bits;
+extern volatile __RXB1D4bits_t __at 0xf5a RXB1D4bits;
-extern sfr at 0xf5b RXB1D5;
+extern __sfr __at 0xf5b RXB1D5;
typedef union {
struct {
unsigned RXB1D50:1;
};
} __RXB1D5bits_t;
-extern volatile __RXB1D5bits_t at 0xf5b RXB1D5bits;
+extern volatile __RXB1D5bits_t __at 0xf5b RXB1D5bits;
-extern sfr at 0xf5c RXB1D6;
+extern __sfr __at 0xf5c RXB1D6;
typedef union {
struct {
unsigned RXB1D60:1;
};
} __RXB1D6bits_t;
-extern volatile __RXB1D6bits_t at 0xf5c RXB1D6bits;
+extern volatile __RXB1D6bits_t __at 0xf5c RXB1D6bits;
-extern sfr at 0xf5d RXB1D7;
+extern __sfr __at 0xf5d RXB1D7;
typedef union {
struct {
unsigned RXB1D70:1;
};
} __RXB1D7bits_t;
-extern volatile __RXB1D7bits_t at 0xf5d RXB1D7bits;
+extern volatile __RXB1D7bits_t __at 0xf5d RXB1D7bits;
-extern sfr at 0xf5e CANSTATRO1;
+extern __sfr __at 0xf5e CANSTATRO1;
typedef union {
struct {
unsigned :1;
};
} __CANSTATRO1bits_t;
-extern volatile __CANSTATRO1bits_t at 0xf5e CANSTATRO1bits;
+extern volatile __CANSTATRO1bits_t __at 0xf5e CANSTATRO1bits;
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf60 RXB0CON;
typedef union {
struct {
unsigned FILHIT0:1;
};
} __RXB0CONbits_t;
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
-extern sfr at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf61 RXB0SIDH;
typedef union {
struct {
unsigned SID3:1;
};
} __RXB0SIDHbits_t;
-extern volatile __RXB0SIDHbits_t at 0xf61 RXB0SIDHbits;
+extern volatile __RXB0SIDHbits_t __at 0xf61 RXB0SIDHbits;
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf62 RXB0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB0SIDLbits_t;
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
-extern sfr at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf63 RXB0EIDH;
typedef union {
struct {
unsigned EID8:1;
};
} __RXB0EIDHbits_t;
-extern volatile __RXB0EIDHbits_t at 0xf63 RXB0EIDHbits;
+extern volatile __RXB0EIDHbits_t __at 0xf63 RXB0EIDHbits;
-extern sfr at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf64 RXB0EIDL;
typedef union {
struct {
unsigned EID0:1;
};
} __RXB0EIDLbits_t;
-extern volatile __RXB0EIDLbits_t at 0xf64 RXB0EIDLbits;
+extern volatile __RXB0EIDLbits_t __at 0xf64 RXB0EIDLbits;
-extern sfr at 0xf65 RXB0DLC;
+extern __sfr __at 0xf65 RXB0DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __RXB0DLCbits_t;
-extern volatile __RXB0DLCbits_t at 0xf65 RXB0DLCbits;
+extern volatile __RXB0DLCbits_t __at 0xf65 RXB0DLCbits;
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
typedef union {
struct {
unsigned :1;
};
} __CANSTATbits_t;
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
typedef union {
struct {
unsigned WIN0:1;
};
} __CANCONbits_t;
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
typedef union {
struct {
unsigned BRP0:1;
};
} __BRGCON1bits_t;
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
typedef union {
struct {
unsigned PRSEG0:1;
};
} __BRGCON2bits_t;
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
typedef union {
struct {
unsigned SEG2PH0:1;
};
} __BRGCON3bits_t;
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
typedef union {
struct {
unsigned :1;
};
} __CIOCONbits_t;
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
typedef union {
struct {
unsigned EWARN:1;
};
} __COMSTATbits_t;
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
typedef union {
struct {
unsigned REC0:1;
};
} __RXERRCNTbits_t;
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
typedef union {
struct {
unsigned TEC0:1;
};
} __TXERRCNTbits_t;
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned :1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned RX0IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned RX0IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned RX0IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb0 PSPCON;
typedef union {
struct {
unsigned :1;
};
} __PSPCONbits_t;
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
typedef union {
struct {
unsigned CM0:1;
};
} __CMCONbits_t;
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
typedef union {
struct {
unsigned CVR0:1;
};
} __CVRCONbits_t;
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
-extern sfr at 0xfb6 ECCPAS;
+extern __sfr __at 0xfb6 ECCPAS;
typedef union {
struct {
unsigned PSSBD0:1;
};
} __ECCPASbits_t;
-extern volatile __ECCPASbits_t at 0xfb6 ECCPASbits;
+extern volatile __ECCPASbits_t __at 0xfb6 ECCPASbits;
-extern sfr at 0xfb7 ECCP1DEL;
+extern __sfr __at 0xfb7 ECCP1DEL;
typedef union {
struct {
unsigned EPDC0:1;
};
} __ECCP1DELbits_t;
-extern volatile __ECCP1DELbits_t at 0xfb7 ECCP1DELbits;
+extern volatile __ECCP1DELbits_t __at 0xfb7 ECCP1DELbits;
-extern sfr at 0xfba ECCP1CON;
+extern __sfr __at 0xfba ECCP1CON;
typedef union {
struct {
unsigned ECCP1M0:1;
};
} __ECCP1CONbits_t;
-extern volatile __ECCP1CONbits_t at 0xfba ECCP1CONbits;
+extern volatile __ECCP1CONbits_t __at 0xfba ECCP1CONbits;
-extern sfr at 0xfbb ECCPR1L;
-extern sfr at 0xfbc ECCPR1H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb ECCPR1L;
+extern __sfr __at 0xfbc ECCPR1H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F6520_H__
#define __PIC18F6520_H__
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA2bits_t;
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA2bits_t;
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
typedef union {
struct {
unsigned CCP5M0:1;
};
} __CCP5CONbits_t;
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
typedef union {
struct {
unsigned CCP4M0:1;
};
} __CCP4CONbits_t;
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T4CONbits_t;
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
typedef union {
struct {
unsigned RF0:1;
};
} __PORTFbits_t;
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
typedef union {
struct {
unsigned RG0:1;
};
} __PORTGbits_t;
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
typedef union {
struct {
unsigned LATF0:1;
};
} __LATFbits_t;
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
typedef union {
struct {
unsigned LATG0:1;
};
} __LATGbits_t;
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned TRISE0:1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
typedef union {
struct {
unsigned TRISF0:1;
};
} __TRISFbits_t;
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
typedef union {
struct {
unsigned TRISG0:1;
};
} __TRISGbits_t;
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
-extern sfr at 0xf9c MEMCON;
+extern __sfr __at 0xf9c MEMCON;
typedef union {
struct {
unsigned WM0:1;
};
} __MEMCONbits_t;
-extern volatile __MEMCONbits_t at 0xf9c MEMCONbits;
+extern volatile __MEMCONbits_t __at 0xf9c MEMCONbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned CCP3IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned CCP3IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned CCP3IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA1bits_t;
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA1bits_t;
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
typedef union {
struct {
unsigned :1;
};
} __PSPCONbits_t;
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
typedef union {
struct {
unsigned CM0:1;
};
} __CMCONbits_t;
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
typedef union {
struct {
unsigned CVR0:1;
};
} __CVRCONbits_t;
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
typedef union {
struct {
unsigned CCP3M0:1;
};
} __CCP3CONbits_t;
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
typedef union {
struct {
unsigned ADCS0:1;
};
} __ADCON2bits_t;
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F6620_H__
#define __PIC18F6620_H__
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA2bits_t;
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA2bits_t;
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
typedef union {
struct {
unsigned CCP5M0:1;
};
} __CCP5CONbits_t;
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
typedef union {
struct {
unsigned CCP4M0:1;
};
} __CCP4CONbits_t;
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T4CONbits_t;
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
typedef union {
struct {
unsigned RF0:1;
};
} __PORTFbits_t;
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
typedef union {
struct {
unsigned RG0:1;
};
} __PORTGbits_t;
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
typedef union {
struct {
unsigned LATF0:1;
};
} __LATFbits_t;
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
typedef union {
struct {
unsigned LATG0:1;
};
} __LATGbits_t;
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned TRISE0:1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
typedef union {
struct {
unsigned TRISF0:1;
};
} __TRISFbits_t;
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
typedef union {
struct {
unsigned TRISG0:1;
};
} __TRISGbits_t;
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned CCP3IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned CCP3IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned CCP3IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA1bits_t;
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA1bits_t;
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
typedef union {
struct {
unsigned :1;
};
} __PSPCONbits_t;
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
typedef union {
struct {
unsigned CM0:1;
};
} __CMCONbits_t;
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
typedef union {
struct {
unsigned CVR0:1;
};
} __CVRCONbits_t;
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
typedef union {
struct {
unsigned CCP3M0:1;
};
} __CCP3CONbits_t;
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
typedef union {
struct {
unsigned ADCS0:1;
};
} __ADCON2bits_t;
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F6680_H__
#define __PIC18F6680_H__
-extern sfr at 0xf00 RXF0SIDH;
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf01 RXF0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF0SIDLbits_t;
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
-extern sfr at 0xf02 RXF0EIDH;
-extern sfr at 0xf03 RXF0EIDL;
-extern sfr at 0xf04 RXF1SIDH;
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf05 RXF1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF1SIDLbits_t;
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
-extern sfr at 0xf06 RXF1EIDH;
-extern sfr at 0xf07 RXF1EIDL;
-extern sfr at 0xf08 RXF2SIDH;
-extern sfr at 0xf09 RXF2SIDL;
-extern sfr at 0xf0a RXF2EIDH;
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0b RXF2EIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF2EIDLbits_t;
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
-extern sfr at 0xf0c RXF3SIDH;
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0d RXF3SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF3SIDLbits_t;
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
-extern sfr at 0xf0e RXF3EIDH;
-extern sfr at 0xf0f RXF3EIDL;
-extern sfr at 0xf10 RXF4SIDH;
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf11 RXF4SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF4SIDLbits_t;
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
-extern sfr at 0xf12 RXF4EIDH;
-extern sfr at 0xf13 RXF4EIDL;
-extern sfr at 0xf14 RXF5SIDH;
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf15 RXF5SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF5SIDLbits_t;
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
-extern sfr at 0xf16 RXF5EIDH;
-extern sfr at 0xf17 RXF5EIDL;
-extern sfr at 0xf18 RXM0SIDH;
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf19 RXM0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM0SIDLbits_t;
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
-extern sfr at 0xf1a RXM0EIDH;
-extern sfr at 0xf1b RXM0EIDL;
-extern sfr at 0xf1c RXM1SIDH;
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1d RXM1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM1SIDLbits_t;
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
-extern sfr at 0xf1e RXM1EIDH;
-extern sfr at 0xf1f RXM1EIDL;
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf20 TXB2CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB2CONbits_t;
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
-extern sfr at 0xf21 TXB2SIDH;
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf22 TXB2SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB2SIDLbits_t;
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
-extern sfr at 0xf23 TXB2EIDH;
-extern sfr at 0xf24 TXB2EIDL;
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf25 TXB2DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB2DLCbits_t;
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
-extern sfr at 0xf26 TXB2D0;
-extern sfr at 0xf27 TXB2D1;
-extern sfr at 0xf28 TXB2D2;
-extern sfr at 0xf29 TXB2D3;
-extern sfr at 0xf2a TXB2D4;
-extern sfr at 0xf2b TXB2D5;
-extern sfr at 0xf2c TXB2D6;
-extern sfr at 0xf2d TXB2D7;
-extern sfr at 0xf2e CANSTATRO3;
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf26 TXB2D0;
+extern __sfr __at 0xf27 TXB2D1;
+extern __sfr __at 0xf28 TXB2D2;
+extern __sfr __at 0xf29 TXB2D3;
+extern __sfr __at 0xf2a TXB2D4;
+extern __sfr __at 0xf2b TXB2D5;
+extern __sfr __at 0xf2c TXB2D6;
+extern __sfr __at 0xf2d TXB2D7;
+extern __sfr __at 0xf2e CANSTATRO3;
+extern __sfr __at 0xf30 TXB1CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB1CONbits_t;
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
-extern sfr at 0xf31 TXB1SIDH;
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf32 TXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB1SIDLbits_t;
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
-extern sfr at 0xf33 TXB1EIDH;
-extern sfr at 0xf34 TXB1EIDL;
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf35 TXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB1DLCbits_t;
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
-extern sfr at 0xf36 TXB1D0;
-extern sfr at 0xf37 TXB1D1;
-extern sfr at 0xf38 TXB1D2;
-extern sfr at 0xf39 TXB1D3;
-extern sfr at 0xf3a TXB1D4;
-extern sfr at 0xf3b TXB1D5;
-extern sfr at 0xf3c TXB1D6;
-extern sfr at 0xf3d TXB1D7;
-extern sfr at 0xf3e CANSTATRO2;
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf36 TXB1D0;
+extern __sfr __at 0xf37 TXB1D1;
+extern __sfr __at 0xf38 TXB1D2;
+extern __sfr __at 0xf39 TXB1D3;
+extern __sfr __at 0xf3a TXB1D4;
+extern __sfr __at 0xf3b TXB1D5;
+extern __sfr __at 0xf3c TXB1D6;
+extern __sfr __at 0xf3d TXB1D7;
+extern __sfr __at 0xf3e CANSTATRO2;
+extern __sfr __at 0xf40 TXB0CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB0CONbits_t;
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
-extern sfr at 0xf41 TXB0SIDH;
-extern sfr at 0xf42 TXB0SIDL;
-extern sfr at 0xf43 TXB0EIDH;
-extern sfr at 0xf44 TXB0EIDL;
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf45 TXB0DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB0DLCbits_t;
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
-extern sfr at 0xf46 TXB0D0;
-extern sfr at 0xf47 TXB0D1;
-extern sfr at 0xf48 TXB0D2;
-extern sfr at 0xf49 TXB0D3;
-extern sfr at 0xf4a TXB0D4;
-extern sfr at 0xf4b TXB0D5;
-extern sfr at 0xf4c TXB0D6;
-extern sfr at 0xf4d TXB0D7;
-extern sfr at 0xf4e CANSTATRO1;
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf46 TXB0D0;
+extern __sfr __at 0xf47 TXB0D1;
+extern __sfr __at 0xf48 TXB0D2;
+extern __sfr __at 0xf49 TXB0D3;
+extern __sfr __at 0xf4a TXB0D4;
+extern __sfr __at 0xf4b TXB0D5;
+extern __sfr __at 0xf4c TXB0D6;
+extern __sfr __at 0xf4d TXB0D7;
+extern __sfr __at 0xf4e CANSTATRO1;
+extern __sfr __at 0xf50 RXB1CON;
typedef union {
struct {
unsigned :1;
};
} __RXB1CONbits_t;
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
-extern sfr at 0xf51 RXB1SIDH;
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf52 RXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB1SIDLbits_t;
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
-extern sfr at 0xf53 RXB1EIDH;
-extern sfr at 0xf54 RXB1EIDL;
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf55 RXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __RXB1DLCbits_t;
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
-extern sfr at 0xf56 RXB1D0;
-extern sfr at 0xf57 RXB1D1;
-extern sfr at 0xf58 RXB1D2;
-extern sfr at 0xf59 RXB1D3;
-extern sfr at 0xf5a RXB1D4;
-extern sfr at 0xf5b RXB1D5;
-extern sfr at 0xf5c RXB1D6;
-extern sfr at 0xf5d RXB1D7;
-extern sfr at 0xf5e CANSTATRO0;
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf56 RXB1D0;
+extern __sfr __at 0xf57 RXB1D1;
+extern __sfr __at 0xf58 RXB1D2;
+extern __sfr __at 0xf59 RXB1D3;
+extern __sfr __at 0xf5a RXB1D4;
+extern __sfr __at 0xf5b RXB1D5;
+extern __sfr __at 0xf5c RXB1D6;
+extern __sfr __at 0xf5d RXB1D7;
+extern __sfr __at 0xf5e CANSTATRO0;
+extern __sfr __at 0xf60 RXB0CON;
typedef union {
struct {
unsigned FILHIT0:1;
};
} __RXB0CONbits_t;
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
-extern sfr at 0xf61 RXB0SIDH;
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf62 RXB0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB0SIDLbits_t;
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
-extern sfr at 0xf63 RXB0EIDH;
-extern sfr at 0xf64 RXB0EIDL;
-extern sfr at 0xf65 RXB0DLC;
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf65 RXB0DLC;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
typedef union {
struct {
unsigned :1;
};
} __CANSTATbits_t;
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
typedef union {
struct {
unsigned :1;
};
} __CANCONbits_t;
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
typedef union {
struct {
unsigned BRP0:1;
};
} __BRGCON1bits_t;
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
typedef union {
struct {
unsigned PRSEG0:1;
};
} __BRGCON2bits_t;
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
typedef union {
struct {
unsigned SEG2PH0:1;
};
} __BRGCON3bits_t;
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
typedef union {
struct {
unsigned :1;
};
} __CIOCONbits_t;
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
typedef union {
struct {
unsigned EWARN:1;
};
} __COMSTATbits_t;
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
typedef union {
struct {
unsigned REC0:1;
};
} __RXERRCNTbits_t;
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
typedef union {
struct {
unsigned TEC0:1;
};
} __TXERRCNTbits_t;
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
typedef union {
struct {
unsigned RF0:1;
};
} __PORTFbits_t;
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
typedef union {
struct {
unsigned RG0:1;
};
} __PORTGbits_t;
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
typedef union {
struct {
unsigned LATF0:1;
};
} __LATFbits_t;
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
typedef union {
struct {
unsigned LATG0:1;
};
} __LATGbits_t;
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned TRISE0:1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
typedef union {
struct {
unsigned TRISF0:1;
};
} __TRISFbits_t;
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
typedef union {
struct {
unsigned TRISG0:1;
};
} __TRISGbits_t;
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned RX0IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned RX0IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned RX0IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb0 PSPCON;
typedef union {
struct {
unsigned :1;
};
} __PSPCONbits_t;
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
typedef union {
struct {
unsigned CM0:1;
};
} __CMCONbits_t;
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
typedef union {
struct {
unsigned CVR0:1;
};
} __CVRCONbits_t;
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
-extern sfr at 0xfb6 ECCPAS;
+extern __sfr __at 0xfb6 ECCPAS;
typedef union {
struct {
unsigned PSSBD0:1;
};
} __ECCPASbits_t;
-extern volatile __ECCPASbits_t at 0xfb6 ECCPASbits;
+extern volatile __ECCPASbits_t __at 0xfb6 ECCPASbits;
-extern sfr at 0xfb7 ECCP1DEL;
+extern __sfr __at 0xfb7 ECCP1DEL;
typedef union {
struct {
unsigned EPDC0:1;
};
} __ECCP1DELbits_t;
-extern volatile __ECCP1DELbits_t at 0xfb7 ECCP1DELbits;
+extern volatile __ECCP1DELbits_t __at 0xfb7 ECCP1DELbits;
-extern sfr at 0xfba ECCP1CON;
+extern __sfr __at 0xfba ECCP1CON;
typedef union {
struct {
unsigned ECCP1M0:1;
};
} __ECCP1CONbits_t;
-extern volatile __ECCP1CONbits_t at 0xfba ECCP1CONbits;
+extern volatile __ECCP1CONbits_t __at 0xfba ECCP1CONbits;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb ECCPR1L;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc ECCPR1H;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbb ECCPR1L;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc ECCPR1H;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfc0 ADCON2;
typedef union {
struct {
unsigned ADCS0:1;
};
} __ADCON2bits_t;
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F6720_H__
#define __PIC18F6720_H__
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA2bits_t;
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA2bits_t;
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
typedef union {
struct {
unsigned CCP5M0:1;
};
} __CCP5CONbits_t;
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
typedef union {
struct {
unsigned CCP4M0:1;
};
} __CCP4CONbits_t;
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T4CONbits_t;
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
typedef union {
struct {
unsigned RF0:1;
};
} __PORTFbits_t;
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
typedef union {
struct {
unsigned RG0:1;
};
} __PORTGbits_t;
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
typedef union {
struct {
unsigned LATF0:1;
};
} __LATFbits_t;
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
typedef union {
struct {
unsigned LATG0:1;
};
} __LATGbits_t;
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned TRISE0:1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
typedef union {
struct {
unsigned TRISF0:1;
};
} __TRISFbits_t;
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
typedef union {
struct {
unsigned TRISG0:1;
};
} __TRISGbits_t;
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned CCP3IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned CCP3IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned CCP3IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA1bits_t;
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA1bits_t;
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
typedef union {
struct {
unsigned :1;
};
} __PSPCONbits_t;
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
typedef union {
struct {
unsigned CM0:1;
};
} __CMCONbits_t;
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
typedef union {
struct {
unsigned CVR0:1;
};
} __CVRCONbits_t;
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
typedef union {
struct {
unsigned CCP3M0:1;
};
} __CCP3CONbits_t;
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
typedef union {
struct {
unsigned ADCS0:1;
};
} __ADCON2bits_t;
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F8520_H__
#define __PIC18F8520_H__
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA2bits_t;
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA2bits_t;
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
typedef union {
struct {
unsigned CCP5M0:1;
};
} __CCP5CONbits_t;
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
typedef union {
struct {
unsigned CCP4M0:1;
};
} __CCP4CONbits_t;
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T4CONbits_t;
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
typedef union {
struct {
unsigned RF0:1;
};
} __PORTFbits_t;
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
typedef union {
struct {
unsigned RG0:1;
};
} __PORTGbits_t;
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
-extern sfr at 0xf87 PORTH;
+extern __sfr __at 0xf87 PORTH;
typedef union {
struct {
unsigned RH0:1;
};
} __PORTHbits_t;
-extern volatile __PORTHbits_t at 0xf87 PORTHbits;
+extern volatile __PORTHbits_t __at 0xf87 PORTHbits;
-extern sfr at 0xf88 PORTJ;
+extern __sfr __at 0xf88 PORTJ;
typedef union {
struct {
unsigned RJ0:1;
};
} __PORTJbits_t;
-extern volatile __PORTJbits_t at 0xf88 PORTJbits;
+extern volatile __PORTJbits_t __at 0xf88 PORTJbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
typedef union {
struct {
unsigned LATF0:1;
};
} __LATFbits_t;
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
typedef union {
struct {
unsigned LATG0:1;
};
} __LATGbits_t;
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
-extern sfr at 0xf90 LATH;
+extern __sfr __at 0xf90 LATH;
typedef union {
struct {
unsigned LATH0:1;
};
} __LATHbits_t;
-extern volatile __LATHbits_t at 0xf90 LATHbits;
+extern volatile __LATHbits_t __at 0xf90 LATHbits;
-extern sfr at 0xf91 LATJ;
+extern __sfr __at 0xf91 LATJ;
typedef union {
struct {
unsigned LATJ0:1;
};
} __LATJbits_t;
-extern volatile __LATJbits_t at 0xf91 LATJbits;
+extern volatile __LATJbits_t __at 0xf91 LATJbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned TRISE0:1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
typedef union {
struct {
unsigned TRISF0:1;
};
} __TRISFbits_t;
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
typedef union {
struct {
unsigned TRISG0:1;
};
} __TRISGbits_t;
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
-extern sfr at 0xf99 TRISH;
+extern __sfr __at 0xf99 TRISH;
typedef union {
struct {
unsigned TRISH0:1;
};
} __TRISHbits_t;
-extern volatile __TRISHbits_t at 0xf99 TRISHbits;
+extern volatile __TRISHbits_t __at 0xf99 TRISHbits;
-extern sfr at 0xf9a TRISJ;
+extern __sfr __at 0xf9a TRISJ;
typedef union {
struct {
unsigned TRISJ0:1;
};
} __TRISJbits_t;
-extern volatile __TRISJbits_t at 0xf9a TRISJbits;
+extern volatile __TRISJbits_t __at 0xf9a TRISJbits;
-extern sfr at 0xf9c MEMCON;
+extern __sfr __at 0xf9c MEMCON;
typedef union {
struct {
unsigned WM0:1;
};
} __MEMCONbits_t;
-extern volatile __MEMCONbits_t at 0xf9c MEMCONbits;
+extern volatile __MEMCONbits_t __at 0xf9c MEMCONbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned CCP3IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned CCP3IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned CCP3IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA1bits_t;
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA1bits_t;
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
typedef union {
struct {
unsigned :1;
};
} __PSPCONbits_t;
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
typedef union {
struct {
unsigned CM0:1;
};
} __CMCONbits_t;
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
typedef union {
struct {
unsigned CVR0:1;
};
} __CVRCONbits_t;
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
typedef union {
struct {
unsigned CCP3M0:1;
};
} __CCP3CONbits_t;
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
typedef union {
struct {
unsigned ADCS0:1;
};
} __ADCON2bits_t;
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F8620_H__
#define __PIC18F8620_H__
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA2bits_t;
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA2bits_t;
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
typedef union {
struct {
unsigned CCP5M0:1;
};
} __CCP5CONbits_t;
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
typedef union {
struct {
unsigned CCP4M0:1;
};
} __CCP4CONbits_t;
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T4CONbits_t;
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
typedef union {
struct {
unsigned RF0:1;
};
} __PORTFbits_t;
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
typedef union {
struct {
unsigned RG0:1;
};
} __PORTGbits_t;
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
-extern sfr at 0xf87 PORTH;
+extern __sfr __at 0xf87 PORTH;
typedef union {
struct {
unsigned RH0:1;
};
} __PORTHbits_t;
-extern volatile __PORTHbits_t at 0xf87 PORTHbits;
+extern volatile __PORTHbits_t __at 0xf87 PORTHbits;
-extern sfr at 0xf88 PORTJ;
+extern __sfr __at 0xf88 PORTJ;
typedef union {
struct {
unsigned RJ0:1;
};
} __PORTJbits_t;
-extern volatile __PORTJbits_t at 0xf88 PORTJbits;
+extern volatile __PORTJbits_t __at 0xf88 PORTJbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
typedef union {
struct {
unsigned LATF0:1;
};
} __LATFbits_t;
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
typedef union {
struct {
unsigned LATG0:1;
};
} __LATGbits_t;
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
-extern sfr at 0xf90 LATH;
+extern __sfr __at 0xf90 LATH;
typedef union {
struct {
unsigned LATH0:1;
};
} __LATHbits_t;
-extern volatile __LATHbits_t at 0xf90 LATHbits;
+extern volatile __LATHbits_t __at 0xf90 LATHbits;
-extern sfr at 0xf91 LATJ;
+extern __sfr __at 0xf91 LATJ;
typedef union {
struct {
unsigned LATJ0:1;
};
} __LATJbits_t;
-extern volatile __LATJbits_t at 0xf91 LATJbits;
+extern volatile __LATJbits_t __at 0xf91 LATJbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned TRISE0:1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
typedef union {
struct {
unsigned TRISF0:1;
};
} __TRISFbits_t;
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
typedef union {
struct {
unsigned TRISG0:1;
};
} __TRISGbits_t;
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
-extern sfr at 0xf99 TRISH;
+extern __sfr __at 0xf99 TRISH;
typedef union {
struct {
unsigned TRISH0:1;
};
} __TRISHbits_t;
-extern volatile __TRISHbits_t at 0xf99 TRISHbits;
+extern volatile __TRISHbits_t __at 0xf99 TRISHbits;
-extern sfr at 0xf9a TRISJ;
+extern __sfr __at 0xf9a TRISJ;
typedef union {
struct {
unsigned TRISJ0:1;
};
} __TRISJbits_t;
-extern volatile __TRISJbits_t at 0xf9a TRISJbits;
+extern volatile __TRISJbits_t __at 0xf9a TRISJbits;
-extern sfr at 0xf9c MEMCON;
+extern __sfr __at 0xf9c MEMCON;
typedef union {
struct {
unsigned WM0:1;
};
} __MEMCONbits_t;
-extern volatile __MEMCONbits_t at 0xf9c MEMCONbits;
+extern volatile __MEMCONbits_t __at 0xf9c MEMCONbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned CCP3IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned CCP3IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned CCP3IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA1bits_t;
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA1bits_t;
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
typedef union {
struct {
unsigned :1;
};
} __PSPCONbits_t;
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
typedef union {
struct {
unsigned CM0:1;
};
} __CMCONbits_t;
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
typedef union {
struct {
unsigned CVR0:1;
};
} __CVRCONbits_t;
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
typedef union {
struct {
unsigned CCP3M0:1;
};
} __CCP3CONbits_t;
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
typedef union {
struct {
unsigned ADCS0:1;
};
} __ADCON2bits_t;
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F8680_H__
#define __PIC18F8680_H__
-extern sfr at 0xf00 RXF0SIDH;
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf01 RXF0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF0SIDLbits_t;
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
-extern sfr at 0xf02 RXF0EIDH;
-extern sfr at 0xf03 RXF0EIDL;
-extern sfr at 0xf04 RXF1SIDH;
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf05 RXF1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF1SIDLbits_t;
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
-extern sfr at 0xf06 RXF1EIDH;
-extern sfr at 0xf07 RXF1EIDL;
-extern sfr at 0xf08 RXF2SIDH;
-extern sfr at 0xf09 RXF2SIDL;
-extern sfr at 0xf0a RXF2EIDH;
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0b RXF2EIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF2EIDLbits_t;
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
-extern sfr at 0xf0c RXF3SIDH;
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0d RXF3SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF3SIDLbits_t;
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
-extern sfr at 0xf0e RXF3EIDH;
-extern sfr at 0xf0f RXF3EIDL;
-extern sfr at 0xf10 RXF4SIDH;
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf11 RXF4SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF4SIDLbits_t;
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
-extern sfr at 0xf12 RXF4EIDH;
-extern sfr at 0xf13 RXF4EIDL;
-extern sfr at 0xf14 RXF5SIDH;
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf15 RXF5SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXF5SIDLbits_t;
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
-extern sfr at 0xf16 RXF5EIDH;
-extern sfr at 0xf17 RXF5EIDL;
-extern sfr at 0xf18 RXM0SIDH;
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf19 RXM0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM0SIDLbits_t;
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
-extern sfr at 0xf1a RXM0EIDH;
-extern sfr at 0xf1b RXM0EIDL;
-extern sfr at 0xf1c RXM1SIDH;
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1d RXM1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXM1SIDLbits_t;
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
-extern sfr at 0xf1e RXM1EIDH;
-extern sfr at 0xf1f RXM1EIDL;
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf20 TXB2CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB2CONbits_t;
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
-extern sfr at 0xf21 TXB2SIDH;
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf22 TXB2SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB2SIDLbits_t;
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
-extern sfr at 0xf23 TXB2EIDH;
-extern sfr at 0xf24 TXB2EIDL;
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf25 TXB2DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB2DLCbits_t;
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
-extern sfr at 0xf26 TXB2D0;
-extern sfr at 0xf27 TXB2D1;
-extern sfr at 0xf28 TXB2D2;
-extern sfr at 0xf29 TXB2D3;
-extern sfr at 0xf2a TXB2D4;
-extern sfr at 0xf2b TXB2D5;
-extern sfr at 0xf2c TXB2D6;
-extern sfr at 0xf2d TXB2D7;
-extern sfr at 0xf2e CANSTATRO3;
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf26 TXB2D0;
+extern __sfr __at 0xf27 TXB2D1;
+extern __sfr __at 0xf28 TXB2D2;
+extern __sfr __at 0xf29 TXB2D3;
+extern __sfr __at 0xf2a TXB2D4;
+extern __sfr __at 0xf2b TXB2D5;
+extern __sfr __at 0xf2c TXB2D6;
+extern __sfr __at 0xf2d TXB2D7;
+extern __sfr __at 0xf2e CANSTATRO3;
+extern __sfr __at 0xf30 TXB1CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB1CONbits_t;
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
-extern sfr at 0xf31 TXB1SIDH;
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf32 TXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __TXB1SIDLbits_t;
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
-extern sfr at 0xf33 TXB1EIDH;
-extern sfr at 0xf34 TXB1EIDL;
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf35 TXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB1DLCbits_t;
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
-extern sfr at 0xf36 TXB1D0;
-extern sfr at 0xf37 TXB1D1;
-extern sfr at 0xf38 TXB1D2;
-extern sfr at 0xf39 TXB1D3;
-extern sfr at 0xf3a TXB1D4;
-extern sfr at 0xf3b TXB1D5;
-extern sfr at 0xf3c TXB1D6;
-extern sfr at 0xf3d TXB1D7;
-extern sfr at 0xf3e CANSTATRO2;
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf36 TXB1D0;
+extern __sfr __at 0xf37 TXB1D1;
+extern __sfr __at 0xf38 TXB1D2;
+extern __sfr __at 0xf39 TXB1D3;
+extern __sfr __at 0xf3a TXB1D4;
+extern __sfr __at 0xf3b TXB1D5;
+extern __sfr __at 0xf3c TXB1D6;
+extern __sfr __at 0xf3d TXB1D7;
+extern __sfr __at 0xf3e CANSTATRO2;
+extern __sfr __at 0xf40 TXB0CON;
typedef union {
struct {
unsigned TXPRI0:1;
};
} __TXB0CONbits_t;
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
-extern sfr at 0xf41 TXB0SIDH;
-extern sfr at 0xf42 TXB0SIDL;
-extern sfr at 0xf43 TXB0EIDH;
-extern sfr at 0xf44 TXB0EIDL;
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf45 TXB0DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __TXB0DLCbits_t;
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
-extern sfr at 0xf46 TXB0D0;
-extern sfr at 0xf47 TXB0D1;
-extern sfr at 0xf48 TXB0D2;
-extern sfr at 0xf49 TXB0D3;
-extern sfr at 0xf4a TXB0D4;
-extern sfr at 0xf4b TXB0D5;
-extern sfr at 0xf4c TXB0D6;
-extern sfr at 0xf4d TXB0D7;
-extern sfr at 0xf4e CANSTATRO1;
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf46 TXB0D0;
+extern __sfr __at 0xf47 TXB0D1;
+extern __sfr __at 0xf48 TXB0D2;
+extern __sfr __at 0xf49 TXB0D3;
+extern __sfr __at 0xf4a TXB0D4;
+extern __sfr __at 0xf4b TXB0D5;
+extern __sfr __at 0xf4c TXB0D6;
+extern __sfr __at 0xf4d TXB0D7;
+extern __sfr __at 0xf4e CANSTATRO1;
+extern __sfr __at 0xf50 RXB1CON;
typedef union {
struct {
unsigned :1;
};
} __RXB1CONbits_t;
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
-extern sfr at 0xf51 RXB1SIDH;
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf52 RXB1SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB1SIDLbits_t;
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
-extern sfr at 0xf53 RXB1EIDH;
-extern sfr at 0xf54 RXB1EIDL;
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf55 RXB1DLC;
typedef union {
struct {
unsigned DLC0:1;
};
} __RXB1DLCbits_t;
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
-extern sfr at 0xf56 RXB1D0;
-extern sfr at 0xf57 RXB1D1;
-extern sfr at 0xf58 RXB1D2;
-extern sfr at 0xf59 RXB1D3;
-extern sfr at 0xf5a RXB1D4;
-extern sfr at 0xf5b RXB1D5;
-extern sfr at 0xf5c RXB1D6;
-extern sfr at 0xf5d RXB1D7;
-extern sfr at 0xf5e CANSTATRO0;
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf56 RXB1D0;
+extern __sfr __at 0xf57 RXB1D1;
+extern __sfr __at 0xf58 RXB1D2;
+extern __sfr __at 0xf59 RXB1D3;
+extern __sfr __at 0xf5a RXB1D4;
+extern __sfr __at 0xf5b RXB1D5;
+extern __sfr __at 0xf5c RXB1D6;
+extern __sfr __at 0xf5d RXB1D7;
+extern __sfr __at 0xf5e CANSTATRO0;
+extern __sfr __at 0xf60 RXB0CON;
typedef union {
struct {
unsigned FILHIT0:1;
};
} __RXB0CONbits_t;
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
-extern sfr at 0xf61 RXB0SIDH;
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf62 RXB0SIDL;
typedef union {
struct {
unsigned EID16:1;
};
} __RXB0SIDLbits_t;
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
-extern sfr at 0xf63 RXB0EIDH;
-extern sfr at 0xf64 RXB0EIDL;
-extern sfr at 0xf65 RXB0DLC;
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf65 RXB0DLC;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
typedef union {
struct {
unsigned :1;
};
} __CANSTATbits_t;
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
typedef union {
struct {
unsigned :1;
};
} __CANCONbits_t;
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
typedef union {
struct {
unsigned BRP0:1;
};
} __BRGCON1bits_t;
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
typedef union {
struct {
unsigned PRSEG0:1;
};
} __BRGCON2bits_t;
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
typedef union {
struct {
unsigned SEG2PH0:1;
};
} __BRGCON3bits_t;
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
typedef union {
struct {
unsigned :1;
};
} __CIOCONbits_t;
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
typedef union {
struct {
unsigned EWARN:1;
};
} __COMSTATbits_t;
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
typedef union {
struct {
unsigned REC0:1;
};
} __RXERRCNTbits_t;
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
typedef union {
struct {
unsigned TEC0:1;
};
} __TXERRCNTbits_t;
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
typedef union {
struct {
unsigned RF0:1;
};
} __PORTFbits_t;
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
typedef union {
struct {
unsigned RG0:1;
};
} __PORTGbits_t;
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
-extern sfr at 0xf87 PORTH;
+extern __sfr __at 0xf87 PORTH;
typedef union {
struct {
unsigned RH0:1;
};
} __PORTHbits_t;
-extern volatile __PORTHbits_t at 0xf87 PORTHbits;
+extern volatile __PORTHbits_t __at 0xf87 PORTHbits;
-extern sfr at 0xf88 PORTJ;
+extern __sfr __at 0xf88 PORTJ;
typedef union {
struct {
unsigned RJ0:1;
};
} __PORTJbits_t;
-extern volatile __PORTJbits_t at 0xf88 PORTJbits;
+extern volatile __PORTJbits_t __at 0xf88 PORTJbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
typedef union {
struct {
unsigned LATF0:1;
};
} __LATFbits_t;
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
typedef union {
struct {
unsigned LATG0:1;
};
} __LATGbits_t;
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
-extern sfr at 0xf90 LATH;
+extern __sfr __at 0xf90 LATH;
typedef union {
struct {
unsigned LATH0:1;
};
} __LATHbits_t;
-extern volatile __LATHbits_t at 0xf90 LATHbits;
+extern volatile __LATHbits_t __at 0xf90 LATHbits;
-extern sfr at 0xf91 LATJ;
+extern __sfr __at 0xf91 LATJ;
typedef union {
struct {
unsigned LATJ0:1;
};
} __LATJbits_t;
-extern volatile __LATJbits_t at 0xf91 LATJbits;
+extern volatile __LATJbits_t __at 0xf91 LATJbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned TRISE0:1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
typedef union {
struct {
unsigned TRISF0:1;
};
} __TRISFbits_t;
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
typedef union {
struct {
unsigned TRISG0:1;
};
} __TRISGbits_t;
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
-extern sfr at 0xf99 TRISH;
+extern __sfr __at 0xf99 TRISH;
typedef union {
struct {
unsigned TRISH0:1;
};
} __TRISHbits_t;
-extern volatile __TRISHbits_t at 0xf99 TRISHbits;
+extern volatile __TRISHbits_t __at 0xf99 TRISHbits;
-extern sfr at 0xf9a TRISJ;
+extern __sfr __at 0xf9a TRISJ;
typedef union {
struct {
unsigned TRISJ0:1;
};
} __TRISJbits_t;
-extern volatile __TRISJbits_t at 0xf9a TRISJbits;
+extern volatile __TRISJbits_t __at 0xf9a TRISJbits;
-extern sfr at 0xf9c MEMCON;
+extern __sfr __at 0xf9c MEMCON;
typedef union {
struct {
unsigned WM0:1;
};
} __MEMCONbits_t;
-extern volatile __MEMCONbits_t at 0xf9c MEMCONbits;
+extern volatile __MEMCONbits_t __at 0xf9c MEMCONbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned RX0IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned RX0IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned RX0IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTAbits_t;
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTAbits_t;
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb0 PSPCON;
typedef union {
struct {
unsigned :1;
};
} __PSPCONbits_t;
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
typedef union {
struct {
unsigned CM0:1;
};
} __CMCONbits_t;
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
typedef union {
struct {
unsigned CVR0:1;
};
} __CVRCONbits_t;
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
-extern sfr at 0xfb6 ECCPAS;
+extern __sfr __at 0xfb6 ECCPAS;
typedef union {
struct {
unsigned PSSBD0:1;
};
} __ECCPASbits_t;
-extern volatile __ECCPASbits_t at 0xfb6 ECCPASbits;
+extern volatile __ECCPASbits_t __at 0xfb6 ECCPASbits;
-extern sfr at 0xfb7 ECCP1DEL;
+extern __sfr __at 0xfb7 ECCP1DEL;
typedef union {
struct {
unsigned EPDC0:1;
};
} __ECCP1DELbits_t;
-extern volatile __ECCP1DELbits_t at 0xfb7 ECCP1DELbits;
+extern volatile __ECCP1DELbits_t __at 0xfb7 ECCP1DELbits;
-extern sfr at 0xfba ECCP1CON;
+extern __sfr __at 0xfba ECCP1CON;
typedef union {
struct {
unsigned ECCP1M0:1;
};
} __ECCP1CONbits_t;
-extern volatile __ECCP1CONbits_t at 0xfba ECCP1CONbits;
+extern volatile __ECCP1CONbits_t __at 0xfba ECCP1CONbits;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb ECCPR1L;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc ECCPR1H;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbb ECCPR1L;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc ECCPR1H;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfc0 ADCON2;
typedef union {
struct {
unsigned ADCS0:1;
};
} __ADCON2bits_t;
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
#ifndef __PIC18F8720_H__
#define __PIC18F8720_H__
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA2bits_t;
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA2bits_t;
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
typedef union {
struct {
unsigned CCP5M0:1;
};
} __CCP5CONbits_t;
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
typedef union {
struct {
unsigned CCP4M0:1;
};
} __CCP4CONbits_t;
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T4CONbits_t;
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
typedef union {
struct {
unsigned RA0:1;
};
} __PORTAbits_t;
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
typedef union {
struct {
unsigned RB0:1;
};
} __PORTBbits_t;
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
typedef union {
struct {
unsigned RC0:1;
};
} __PORTCbits_t;
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
typedef union {
struct {
unsigned RD0:1;
};
} __PORTDbits_t;
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
typedef union {
struct {
unsigned RE0:1;
};
} __PORTEbits_t;
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
typedef union {
struct {
unsigned RF0:1;
};
} __PORTFbits_t;
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
typedef union {
struct {
unsigned RG0:1;
};
} __PORTGbits_t;
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
-extern sfr at 0xf87 PORTH;
+extern __sfr __at 0xf87 PORTH;
typedef union {
struct {
unsigned RH0:1;
};
} __PORTHbits_t;
-extern volatile __PORTHbits_t at 0xf87 PORTHbits;
+extern volatile __PORTHbits_t __at 0xf87 PORTHbits;
-extern sfr at 0xf88 PORTJ;
+extern __sfr __at 0xf88 PORTJ;
typedef union {
struct {
unsigned RJ0:1;
};
} __PORTJbits_t;
-extern volatile __PORTJbits_t at 0xf88 PORTJbits;
+extern volatile __PORTJbits_t __at 0xf88 PORTJbits;
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
typedef union {
struct {
unsigned LATA0:1;
};
} __LATAbits_t;
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
typedef union {
struct {
unsigned LATB0:1;
};
} __LATBbits_t;
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
typedef union {
struct {
unsigned LATC0:1;
};
} __LATCbits_t;
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
typedef union {
struct {
unsigned LATD0:1;
};
} __LATDbits_t;
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
typedef union {
struct {
unsigned LATE0:1;
};
} __LATEbits_t;
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
typedef union {
struct {
unsigned LATF0:1;
};
} __LATFbits_t;
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
typedef union {
struct {
unsigned LATG0:1;
};
} __LATGbits_t;
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
-extern sfr at 0xf90 LATH;
+extern __sfr __at 0xf90 LATH;
typedef union {
struct {
unsigned LATH0:1;
};
} __LATHbits_t;
-extern volatile __LATHbits_t at 0xf90 LATHbits;
+extern volatile __LATHbits_t __at 0xf90 LATHbits;
-extern sfr at 0xf91 LATJ;
+extern __sfr __at 0xf91 LATJ;
typedef union {
struct {
unsigned LATJ0:1;
};
} __LATJbits_t;
-extern volatile __LATJbits_t at 0xf91 LATJbits;
+extern volatile __LATJbits_t __at 0xf91 LATJbits;
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
typedef union {
struct {
unsigned TRISA0:1;
};
} __TRISAbits_t;
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
typedef union {
struct {
unsigned TRISB0:1;
};
} __TRISBbits_t;
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
typedef union {
struct {
unsigned TRISC0:1;
};
} __TRISCbits_t;
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
typedef union {
struct {
unsigned TRISD0:1;
};
} __TRISDbits_t;
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
typedef union {
struct {
unsigned TRISE0:1;
};
} __TRISEbits_t;
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
typedef union {
struct {
unsigned TRISF0:1;
};
} __TRISFbits_t;
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
typedef union {
struct {
unsigned TRISG0:1;
};
} __TRISGbits_t;
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
-extern sfr at 0xf99 TRISH;
+extern __sfr __at 0xf99 TRISH;
typedef union {
struct {
unsigned TRISH0:1;
};
} __TRISHbits_t;
-extern volatile __TRISHbits_t at 0xf99 TRISHbits;
+extern volatile __TRISHbits_t __at 0xf99 TRISHbits;
-extern sfr at 0xf9a TRISJ;
+extern __sfr __at 0xf9a TRISJ;
typedef union {
struct {
unsigned TRISJ0:1;
};
} __TRISJbits_t;
-extern volatile __TRISJbits_t at 0xf9a TRISJbits;
+extern volatile __TRISJbits_t __at 0xf9a TRISJbits;
-extern sfr at 0xf9c MEMCON;
+extern __sfr __at 0xf9c MEMCON;
typedef union {
struct {
unsigned WM0:1;
};
} __MEMCONbits_t;
-extern volatile __MEMCONbits_t at 0xf9c MEMCONbits;
+extern volatile __MEMCONbits_t __at 0xf9c MEMCONbits;
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
typedef union {
struct {
unsigned TMR1IE:1;
};
} __PIE1bits_t;
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
typedef union {
struct {
unsigned TMR1IF:1;
};
} __PIR1bits_t;
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
typedef union {
struct {
unsigned TMR1IP:1;
};
} __IPR1bits_t;
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
typedef union {
struct {
unsigned CCP2IE:1;
};
} __PIE2bits_t;
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
typedef union {
struct {
unsigned CCP2IF:1;
};
} __PIR2bits_t;
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
typedef union {
struct {
unsigned CCP2IP:1;
};
} __IPR2bits_t;
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
typedef union {
struct {
unsigned CCP3IE:1;
};
} __PIE3bits_t;
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
typedef union {
struct {
unsigned CCP3IF:1;
};
} __PIR3bits_t;
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
typedef union {
struct {
unsigned CCP3IP:1;
};
} __IPR3bits_t;
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
typedef union {
struct {
unsigned RD:1;
};
} __EECON1bits_t;
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
typedef union {
struct {
unsigned RX9D:1;
};
} __RCSTA1bits_t;
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
typedef union {
struct {
unsigned TX9D:1;
};
} __TXSTA1bits_t;
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
typedef union {
struct {
unsigned :1;
};
} __PSPCONbits_t;
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
typedef union {
struct {
unsigned TMR3ON:1;
};
} __T3CONbits_t;
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
typedef union {
struct {
unsigned CM0:1;
};
} __CMCONbits_t;
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
typedef union {
struct {
unsigned CVR0:1;
};
} __CVRCONbits_t;
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
typedef union {
struct {
unsigned CCP3M0:1;
};
} __CCP3CONbits_t;
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
typedef union {
struct {
unsigned CCP2M0:1;
};
} __CCP2CONbits_t;
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
typedef union {
struct {
unsigned CCP1M0:1;
};
} __CCP1CONbits_t;
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
typedef union {
struct {
unsigned ADCS0:1;
};
} __ADCON2bits_t;
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
typedef union {
struct {
unsigned PCFG0:1;
};
} __ADCON1bits_t;
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
typedef union {
struct {
unsigned ADON:1;
};
} __ADCON0bits_t;
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
typedef union {
struct {
unsigned SEN:1;
};
} __SSPCON2bits_t;
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
typedef union {
struct {
unsigned SSPM0:1;
};
} __SSPCON1bits_t;
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
typedef union {
struct {
unsigned BF:1;
};
} __SSPSTATbits_t;
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
typedef union {
struct {
unsigned T2CKPS0:1;
};
} __T2CONbits_t;
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
typedef union {
struct {
unsigned TMR1ON:1;
};
} __T1CONbits_t;
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
typedef union {
struct {
unsigned BOR:1;
};
} __RCONbits_t;
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
typedef union {
struct {
unsigned SWDTEN:1;
};
} __WDTCONbits_t;
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
typedef union {
struct {
unsigned LVDL0:1;
};
} __LVDCONbits_t;
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
typedef union {
struct {
unsigned SCS:1;
};
} __OSCCONbits_t;
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
typedef union {
struct {
unsigned C:1;
};
} __STATUSbits_t;
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
typedef union {
struct {
unsigned INT1F:1;
};
} __INTCON3bits_t;
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
typedef union {
struct {
unsigned RBIP:1;
};
} __INTCON2bits_t;
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
typedef union {
struct {
unsigned RBIF:1;
};
} __INTCONbits_t;
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
typedef union {
struct {
unsigned STKPTR0:1;
};
} __STKPTRbits_t;
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
/* Configuration registers locations */
** $Id$
*/
-#ifndef __PIC16_STDIO_H
-#define __PIC16_STDIO_H 1
+#ifndef __STDIO_H
+#define __STDIO_H 1
/* link the C library */
#pragma library c
//extern int _print_format (pfn_outputchar pfn, void* pvoid, const char *format, va_list ap);
/* printf_small() supports float print */
-extern void printf_small(char *, ...);
+void printf_small(char *, ...);
/* printf_tiny() does not support float print */
-extern void printf_tiny(char *, ...) reentrant;
+void printf_tiny(char *, ...); // __reentrant;
extern unsigned int printf (char *,...);
extern unsigned int sprintf (char *, char *, ...);
extern void __stream_putchar(FILE *, unsigned char);
-#define PUTCHAR(arg) void putchar(unsigned char arg) wparam
+#define PUTCHAR(arg) void putchar(unsigned char arg) __wparam
extern PUTCHAR(c);
-extern void __stream_usart_putchar(unsigned char c) _naked wparam;
-extern void __stream_mssp_putchar(unsigned char c) _naked wparam;
-extern void __stream_gpsim_putchar(unsigned char c) _naked wparam;
+extern void __stream_usart_putchar(unsigned char c) __wparam __naked;
+extern void __stream_mssp_putchar(unsigned char c) __wparam __naked;
+extern void __stream_gpsim_putchar(unsigned char c) __wparam __naked;
extern char *gets(char *);
extern char getchar(void);
-#endif /* __PIC16_STDIO_H */
+#endif /* __STDIO_H */
** $Id$
*/
-#ifndef __PIC16_STDLIB_H
-#define __PIC16_STDLIB_H 1
+#ifndef __STDLIB_H__
+#define __STDLIB_H__ 1
#pragma library c
+#include <stdint.h>
+
+
#ifndef NULL
# define NULL (void *)0
#endif
-//#include <malloc.h>
+#define RAND_MAX 0x7fffffff
+
+/* initialize random seed */
+void srand(unsigned long seed);
+
+/* return a random number between 0 and RAND_MAX */
+long rand(void);
+
+/* reentrant version of rand() */
+long rand_r(unsigned long *ctx);
+
+
+/* returns the CRC16 checksum of the data buffer, takes as
+ * last argument an old value of crc16 checksum */
+uint16_t crc16(uint8_t *, uint32_t, uint16_t);
+
+
+/* convert a ASCII string to float */
+float atof (char *);
+
+/* convert a ASCII string to integer */
+int atoi (char *);
+
+/* convert a ASCII string to long */
+long atol (char *);
-extern float atof (char *);
-extern int atoi (char *);
-extern long atol (char *);
+/* convert an unsigned/signed integer to ASCII string */
+void uitoa(unsigned int, __data char *, unsigned char);
+void itoa(int, __data char*, unsigned char);
-extern void uitoa(unsigned int, data char *, unsigned char);
-extern void itoa(int, data char*, unsigned char);
+/* convert an unsigned/signed long integer to ASCII string */
+void ultoa(unsigned long, __data unsigned char *, unsigned char);
+void ltoa(long, __data unsigned char*, unsigned char);
-extern void ultoa(unsigned long, data unsigned char *, unsigned char);
-extern void ltoa(long, data unsigned char*, unsigned char);
+/* helper functions: convert a float to ASCII string */
+extern char x_ftoa(float, __data char *, unsigned char, unsigned char);
-extern char x_ftoa(float, data char *, unsigned char, unsigned char);
+/* George M. Gallant's version of ftoa() */
+extern void g_ftoa(__data char *, float, char);
-extern void g_ftoa(data char *, float, char);
-#endif /* __PIC16_STDLIB_H */
+#endif /* __STDLIB_H__ */
#ifndef __STRING_H /* { */
#define __STRING_H 1
-#define _STRING_SPEC data
+#define _STRING_SPEC __data
#ifndef NULL
# define NULL (void *)0
typedef unsigned int size_t;
#endif
-extern char *strcat (char *, char *);
-extern char *strchr (char *, char);
-extern int strcmp (char *, char *);
-extern char *strcpy (char *, char *);
-extern int strcspn(char *, char *);
-extern int strlen (char *);
-extern char *strlwr (char *);
-extern char *strncat(char *, char *, size_t );
-extern int strncmp(char *, char *, size_t );
-extern char *strncpy(char *, char *, size_t );
-extern char *strpbrk(char *, char *);
-extern char *strrchr(char *, char);
-extern int strspn (char *, char *);
-extern char *strstr (char *, char *);
-extern char *strtok (char *, char *);
-extern char *strupr (char *);
+char *strcat (char *, char *);
+char *strchr (char *, char);
+int strcmp (char *, char *);
+char *strcpy (char *, char *);
+int strcspn(char *, char *);
+int strlen (char *);
+char *strlwr (char *);
+char *strncat(char *, char *, size_t );
+int strncmp(char *, char *, size_t );
+char *strncpy(char *, char *, size_t );
+char *strpbrk(char *, char *);
+char *strrchr(char *, char);
+int strspn (char *, char *);
+char *strstr (char *, char *);
+char *strtok (char *, char *);
+char *strupr (char *);
+
+void *memccpy(void *, void *, char, size_t);
+void *memchr(void *, char, size_t);
+int memcmp (void *, void *, size_t);
+void *memcpy (void *, void *, size_t);
+void *memmove (void *, void *, size_t);
+void *memrchr(void *, char, size_t);
+void *memset (_STRING_SPEC void *, unsigned char, size_t );
+
+__code void *memchrpgm(__code void *, char, size_t);
+__data void *memchrram(__data void *, char, size_t);
+__data void *memcpypgm2ram(__data void *, __code void *, size_t);
+__data void *memcpyram2ram(__data void *, __data void *, size_t);
-extern void *memccpy(void *, void *, char, size_t);
-extern void *memchr(void *, char, size_t);
-extern int memcmp (void *, void *, size_t);
-extern void *memcpy (void *, void *, size_t);
-extern void *memmove (void *, void *, size_t);
-extern void *memrchr(void *, char, size_t);
-extern void *memset (_STRING_SPEC void *, unsigned char, size_t );
#endif /* } */
# but it's needed for `make clean`; Bernhard
MM = -MM
+CSTD = --std-c99
+
MODELFLAGS = -mpic16
OPT_FLAGS += --denable-peeps
COMPILE_FLAGS += $(MODELFLAGS) $(OPT_FLAGS)
-CFLAGS = -I$(LIBC_INC_DIR)
+CFLAGS = $(CSTD) -I$(LIBC_INC_DIR)
CFILES = $(patsubst %,%.c,$(SRCS))
COFILES = $(patsubst %.c,%.o,$(CFILES))
#include <stdio.h>
#include <stdlib.h>
-void printf_small(char *fmt, ...) reentrant
+void printf_small(char *fmt, ...) __reentrant
{
char *ch;
char radix;
char ffloat;
float flt;
char *str;
- data char *str1;
+ __data char *str1;
long val;
static char buffer[16];
va_list ap ;
char upcase;
char *str, *ch;
- data char *str1;
+ __data char *str1;
long val;
// static char buffer[16];
char buffer[16];
extern WREG;
/* note that USART should already been initialized */
-void __stream_gpsim_putchar(unsigned char c) _naked wparam
+void __stream_gpsim_putchar(unsigned char c) __wparam __naked
{
c;
- _asm
+ __asm
MOVFF _WREG, 0xf7f
RETURN
- _endasm;
+ __endasm;
}
extern SSPBUF;
/* note that USART should already been initialized */
-void __stream_mssp_putchar(unsigned char c) _naked wparam
+void __stream_mssp_putchar(unsigned char c) __wparam __naked
{
c;
- _asm
+ __asm
MOVWF _SSPBUF
RETURN
- _endasm;
+ __endasm;
}
extern TXSTA;
/* note that USART should already been initialized */
-void __stream_usart_putchar(unsigned char c) _naked wparam
+void __stream_usart_putchar(unsigned char c) __wparam __naked
{
c;
- _asm
+ __asm
@1:
BTFSS _TXSTA, 1
BRA @1
MOVWF _TXREG
RETURN
- _endasm;
+ __endasm;
}
unsigned char upcase;
unsigned int count=0;
unsigned char *str, *ch;
- data char *str1;
+ __data char *str1;
long val;
// static char buffer[16];
char buffer[16];
memmisc \
realloc \
x_ftoa \
- putchar
+ putchar \
+ rand \
+ crc16
S_SRCS = g_ftoa
--- /dev/null
+/*
+ * crc16.c - CRC16 checksum generation
+ *
+ * this source is part of the linux kernel distribution
+ *
+ * modified for SDCC/pic16 by Vangelis Rokas, 2005 <vrokas AT users.sourceforge.net>
+ *
+ *
+ * PURPOSE
+ * Routines to generate, calculate, and test a 16-bit CRC.
+ *
+ * DESCRIPTION
+ * The CRC code was devised by Don P. Mitchell of AT&T Bell Laboratories
+ * and Ned W. Rhodes of Software Systems Group. It has been published in
+ * "Design and Validation of Computer Protocols", Prentice Hall,
+ * Englewood Cliffs, NJ, 1991, Chapter 3, ISBN 0-13-539925-4.
+ *
+ * Copyright is held by AT&T.
+ *
+ * AT&T gives permission for the free use of the CRC source code.
+ *
+ * CONTACTS
+ * E-mail regarding any portion of the Linux UDF file system should be
+ * directed to the development team mailing list (run by majordomo):
+ * linux_udf@hpesjro.fc.hp.com
+ *
+ * COPYRIGHT
+ * This file is distributed under the terms of the GNU General Public
+ * License (GPL). Copies of the GPL can be obtained from:
+ * ftp://prep.ai.mit.edu/pub/gnu/GPL
+ * Each contributing author retains all rights to their own work.
+ *
+ *
+ * $Id$
+ */
+
+#include <stdint.h>
+
+__code uint16_t crc_table[256] = {
+ 0x0000U, 0x1021U, 0x2042U, 0x3063U, 0x4084U, 0x50a5U, 0x60c6U, 0x70e7U,
+ 0x8108U, 0x9129U, 0xa14aU, 0xb16bU, 0xc18cU, 0xd1adU, 0xe1ceU, 0xf1efU,
+ 0x1231U, 0x0210U, 0x3273U, 0x2252U, 0x52b5U, 0x4294U, 0x72f7U, 0x62d6U,
+ 0x9339U, 0x8318U, 0xb37bU, 0xa35aU, 0xd3bdU, 0xc39cU, 0xf3ffU, 0xe3deU,
+ 0x2462U, 0x3443U, 0x0420U, 0x1401U, 0x64e6U, 0x74c7U, 0x44a4U, 0x5485U,
+ 0xa56aU, 0xb54bU, 0x8528U, 0x9509U, 0xe5eeU, 0xf5cfU, 0xc5acU, 0xd58dU,
+ 0x3653U, 0x2672U, 0x1611U, 0x0630U, 0x76d7U, 0x66f6U, 0x5695U, 0x46b4U,
+ 0xb75bU, 0xa77aU, 0x9719U, 0x8738U, 0xf7dfU, 0xe7feU, 0xd79dU, 0xc7bcU,
+ 0x48c4U, 0x58e5U, 0x6886U, 0x78a7U, 0x0840U, 0x1861U, 0x2802U, 0x3823U,
+ 0xc9ccU, 0xd9edU, 0xe98eU, 0xf9afU, 0x8948U, 0x9969U, 0xa90aU, 0xb92bU,
+ 0x5af5U, 0x4ad4U, 0x7ab7U, 0x6a96U, 0x1a71U, 0x0a50U, 0x3a33U, 0x2a12U,
+ 0xdbfdU, 0xcbdcU, 0xfbbfU, 0xeb9eU, 0x9b79U, 0x8b58U, 0xbb3bU, 0xab1aU,
+ 0x6ca6U, 0x7c87U, 0x4ce4U, 0x5cc5U, 0x2c22U, 0x3c03U, 0x0c60U, 0x1c41U,
+ 0xedaeU, 0xfd8fU, 0xcdecU, 0xddcdU, 0xad2aU, 0xbd0bU, 0x8d68U, 0x9d49U,
+ 0x7e97U, 0x6eb6U, 0x5ed5U, 0x4ef4U, 0x3e13U, 0x2e32U, 0x1e51U, 0x0e70U,
+ 0xff9fU, 0xefbeU, 0xdfddU, 0xcffcU, 0xbf1bU, 0xaf3aU, 0x9f59U, 0x8f78U,
+ 0x9188U, 0x81a9U, 0xb1caU, 0xa1ebU, 0xd10cU, 0xc12dU, 0xf14eU, 0xe16fU,
+ 0x1080U, 0x00a1U, 0x30c2U, 0x20e3U, 0x5004U, 0x4025U, 0x7046U, 0x6067U,
+ 0x83b9U, 0x9398U, 0xa3fbU, 0xb3daU, 0xc33dU, 0xd31cU, 0xe37fU, 0xf35eU,
+ 0x02b1U, 0x1290U, 0x22f3U, 0x32d2U, 0x4235U, 0x5214U, 0x6277U, 0x7256U,
+ 0xb5eaU, 0xa5cbU, 0x95a8U, 0x8589U, 0xf56eU, 0xe54fU, 0xd52cU, 0xc50dU,
+ 0x34e2U, 0x24c3U, 0x14a0U, 0x0481U, 0x7466U, 0x6447U, 0x5424U, 0x4405U,
+ 0xa7dbU, 0xb7faU, 0x8799U, 0x97b8U, 0xe75fU, 0xf77eU, 0xc71dU, 0xd73cU,
+ 0x26d3U, 0x36f2U, 0x0691U, 0x16b0U, 0x6657U, 0x7676U, 0x4615U, 0x5634U,
+ 0xd94cU, 0xc96dU, 0xf90eU, 0xe92fU, 0x99c8U, 0x89e9U, 0xb98aU, 0xa9abU,
+ 0x5844U, 0x4865U, 0x7806U, 0x6827U, 0x18c0U, 0x08e1U, 0x3882U, 0x28a3U,
+ 0xcb7dU, 0xdb5cU, 0xeb3fU, 0xfb1eU, 0x8bf9U, 0x9bd8U, 0xabbbU, 0xbb9aU,
+ 0x4a75U, 0x5a54U, 0x6a37U, 0x7a16U, 0x0af1U, 0x1ad0U, 0x2ab3U, 0x3a92U,
+ 0xfd2eU, 0xed0fU, 0xdd6cU, 0xcd4dU, 0xbdaaU, 0xad8bU, 0x9de8U, 0x8dc9U,
+ 0x7c26U, 0x6c07U, 0x5c64U, 0x4c45U, 0x3ca2U, 0x2c83U, 0x1ce0U, 0x0cc1U,
+ 0xef1fU, 0xff3eU, 0xcf5dU, 0xdf7cU, 0xaf9bU, 0xbfbaU, 0x8fd9U, 0x9ff8U,
+ 0x6e17U, 0x7e36U, 0x4e55U, 0x5e74U, 0x2e93U, 0x3eb2U, 0x0ed1U, 0x1ef0U
+};
+
+/*
+ * udf_crc
+ *
+ * PURPOSE
+ * Calculate a 16-bit CRC checksum using ITU-T V.41 polynomial.
+ *
+ * DESCRIPTION
+ * The OSTA-UDF(tm) 1.50 standard states that using CRCs is mandatory.
+ * The polynomial used is: x^16 + x^12 + x^15 + 1
+ *
+ * PRE-CONDITIONS
+ * data Pointer to the data block.
+ * size Size of the data block.
+ *
+ * POST-CONDITIONS
+ * <return> CRC of the data block.
+ *
+ * HISTORY
+ * July 21, 1997 - Andrew E. Mileski
+ * Adapted from OSTA-UDF(tm) 1.50 standard.
+ */
+uint16_t crc16(uint8_t *data, uint32_t size, uint16_t crc)
+{
+ while (size--)
+ crc = crc_table[(crc >> 8 ^ *(data++)) & 0xffU] ^ (crc << 8);
+
+ return crc;
+}
+
+/****************************************************************************/
+#if defined(CRCTEST)
+
+/*
+ * PURPOSE
+ * Test udf_crc()
+ *
+ * HISTORY
+ * July 21, 1997 - Andrew E. Mileski
+ * Adapted from OSTA-UDF(tm) 1.50 standard.
+ */
+
+#include <stdio.h>
+
+unsigned char bytes[] = { 0x70U, 0x6AU, 0x77U };
+
+void dump_table(void)
+{
+ int i, j;
+
+ for(i=j=0;i<256;i++) {
+ printf("0x%ux ", crc_table[i]);
+ j++;
+ if(j % 8 == 0)printf("\n");
+ }
+}
+
+
+int main(void)
+{
+ unsigned int x;
+
+
+ stdout = STREAM_GPSIM;
+
+ dump_table();
+
+ x = crc16(bytes, sizeof(bytes), 0);
+ printf("crc16: calculated = %ux, correct = %ux\n", x, 0x3299U);
+
+ printf("test value = %d\n", -45);
+
+ return 0;
+}
+
+#endif /* defined(CRCTEST) */
+
+/****************************************************************************/
+#if defined(CRCGENERATE)
+
+/*
+ * PURPOSE
+ * Generate a table for fast 16-bit CRC calculations (any polynomial).
+ *
+ * DESCRIPTION
+ * The ITU-T V.41 polynomial is 010041.
+ *
+ * HISTORY
+ * July 21, 1997 - Andrew E. Mileski
+ * Adapted from OSTA-UDF(tm) 1.50 standard.
+ */
+
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+ unsigned long crc, poly;
+ int n, i;
+
+ /* Get the polynomial */
+ sscanf(argv[1], "%lo", &poly);
+ if (poly & 0xffff0000U){
+ fprintf(stderr, "polynomial is too large\en");
+ exit(1);
+ }
+
+ printf("/* CRC %d 0%o 0x%x */\n", poly, poly, poly);
+
+ /* Create a table */
+ printf("static unsigned short crc_table[256] = {\n");
+ for (n = 0; n < 256; n++){
+ if (n % 8 == 0)
+ printf("\t");
+ crc = n << 8;
+ for (i = 0; i < 8; i++){
+ if(crc & 0x8000U)
+ crc = (crc << 1) ^ poly;
+ else
+ crc <<= 1;
+ crc &= 0xFFFFU;
+ }
+ if (n == 255)
+ printf("0x%04xU ", crc);
+ else
+ printf("0x%04xU, ", crc);
+ if(n % 8 == 7)
+ printf("\n");
+ }
+ printf("};\n");
+
+ return 0;
+}
+
+#endif /* defined(CRCGENERATE) */
#endif
-void ultoa(unsigned long value, data unsigned char* str, unsigned char radix)
+void ultoa(unsigned long value, __data unsigned char* str, unsigned char radix)
{
unsigned int index;
unsigned char ch;
*str = 0; /* string terminator */
}
-void ltoa(long value, data unsigned char* str, unsigned char radix)
+void ltoa(long value, __data unsigned char* str, unsigned char radix)
{
#if _DEBUG
io_str( "ltoa: " );
PUTCHAR(c)
{
c;
- _asm
+ __asm
return
- _endasm;
+ __endasm;
}
--- /dev/null
+/*-
+ * rand.c - random number generation routines
+ *
+ * this source was part of the avr-lib library
+ * modified for SDCC/pic16 by Vangelis Rokas, 2005 <vrokas AT users.sourceforge.net>
+ *
+ *
+ * Copyright (c) 1990, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * Posix rand_r function added May 1999 by Wes Peters <wes@softweyr.com>.
+ */
+
+#include <stdlib.h>
+
+static long do_rand(unsigned long *ctx)
+{
+ return ((*ctx = *ctx * 1103515245UL + 12345UL) % ((unsigned long)RAND_MAX + 1));
+}
+
+long rand_r(unsigned long *ctx)
+{
+ unsigned long val = (unsigned long) *ctx;
+
+ *ctx = do_rand(&val);
+ return (long) *ctx;
+}
+
+static unsigned long next = 1;
+
+long rand(void)
+{
+ return do_rand(&next);
+}
+
+void srand(unsigned long seed)
+{
+ next = seed;
+}
+
+#ifdef TEST
+
+main()
+{
+ int i;
+ unsigned long myseed;
+
+ stdout = STREAM_GPSIM;
+
+ printf("seeding rand with 0x19610910: \n");
+ srand(0x19610910);
+
+ printf("generating three pseudo-random numbers:\n");
+ for (i = 0; i < 10; i++)
+ {
+ printf("next random number = %ld\n", rand());
+ }
+
+ printf("generating the same sequence with rand_r:\n");
+ myseed = 0x19610910;
+ for (i = 0; i < 10; i++)
+ {
+ printf("next random number = %ld\n", rand_r(&myseed));
+ }
+
+ return 0;
+}
+
+#endif /* TEST */
+
extern convert_frac;
extern convert_int;
-/* char x_ftoa(float, data char *, unsigned char, unsigned char); */
+/* char x_ftoa(float, __data char *, unsigned char, unsigned char); */
extern POSTDEC1;
#define _vv0x03 0x03
#define _vv0x04 0x04
-char x_cnvint_wrap(unsigned long num, data char *buffer)
+char x_cnvint_wrap(unsigned long num, __data char *buffer)
{
num;
buffer;
- _asm
+ __asm
movff _vv0x00, _POSTDEC1
movff _vv0x01, _POSTDEC1
movff _vv0x02, _POSTDEC1
movff _PREINC1, _vv0x02
movff _PREINC1, _vv0x01
movff _PREINC1, _vv0x00
- _endasm ;
+ __endasm ;
}
-char x_cnvfrac_wrap(unsigned long num, data char *buffer, unsigned char prec)
+char x_cnvfrac_wrap(unsigned long num, __data char *buffer, unsigned char prec)
{
num;
buffer;
prec;
- _asm
+ __asm
movff _vv0x00, _POSTDEC1
movff _vv0x01, _POSTDEC1
movff _vv0x02, _POSTDEC1
movff _PREINC1, _vv0x02
movff _PREINC1, _vv0x01
movff _PREINC1, _vv0x00
- _endasm ;
+ __endasm ;
}
float f;
};
-char x_ftoa(float num, data char *buffer, unsigned char buflen, unsigned char prec)
+char x_ftoa(float num, __data char *buffer, unsigned char buflen, unsigned char prec)
{
char len;
char expn;
#include <string.h>
-code void *memchrpgm(code void *s, char c, size_t count)
+__code void *memchrpgm(__code void *s, char c, size_t count)
{
if(!count)return (void *)0x00;
- while((*(code char *)s != c) && (count)) {
- s = (code char *)s + sizeof(code char *);
+ while((*(__code char *)s != c) && (count)) {
+ s = (__code char *)s + sizeof(__code char *);
count--;
}
#include <string.h>
-data void *memchrram(data void *s, char c, size_t count)
+__data void *memchrram(__data void *s, char c, size_t count)
{
if(!count)return (void *)0x00;
- while((*(data char *)s != c) && (count)) {
- s = (data char *)s + sizeof(data char *);
+ while((*(__data char *)s != c) && (count)) {
+ s = (__data char *)s + sizeof(__data char *);
count--;
}
-------------------------------------------------------------------------*/
#include <string.h>
-void *memcpypgm2ram (data void *dst, void code *src, size_t acount)
+__data void *memcpypgm2ram (__data void *dst, void __code *src, size_t acount)
{
void *ret = dst; /* perhaps ret should be removed, use dst instead */
- char data *d = dst;
+ char __data *d = dst;
char *s = src;
/*
-------------------------------------------------------------------------*/
#include <string.h>
-data void *memcpyram2ram (data void *dst, data void *src, size_t acount)
+__data void *memcpyram2ram (__data void *dst, __data void *src, size_t acount)
{
- void data *ret = dst; /* perhaps ret should be removed, use dst instead */
- char data *d = dst;
- char data *s = src;
+ void __data *ret = dst; /* perhaps ret should be removed, use dst instead */
+ char __data *d = dst;
+ char __data *s = src;
/*
* copy from lower addresses to higher addresses
OPT_FLAGS2 +=
-CFLAGS = -I$(LIBC_INC_DIR) $(OPT_FLAGS2)
+CFLAGS = $(CSTD) -I$(LIBC_INC_DIR) $(OPT_FLAGS2)
CFILES = $(patsubst %,%.c,$(SRCS))
#include <adc.h>
-char adc_busy(void) _naked
+char adc_busy(void) __naked
{
-#if 1
+#if 0
return (ADCON0bits.GO);
#else
- _asm
+ __asm
movlw 0x00
btfsc _ADCON0bits, 2
addlw 0x01
return
- _endasm;
+ __endasm;
#endif
}
#include <adc.h>
-int adc_read(void) _naked
+int adc_read(void) __naked
{
- _asm
+ __asm
movff _ADRESH, _PRODL
movf _ADRESL, w
return
- _endasm;
+ __endasm;
}
#include <adc.h>
-void adc_setchannel(unsigned char channel) _naked
+void adc_setchannel(unsigned char channel) __naked
{
#if 0
ADCON0 &= ~(0x7 << 3);
ADCON0 |= channel << 3;
#else
channel;
- _asm
+ __asm
movlw 0xc7
andwf _ADCON0, f
iorwf _ADCON0, f
return
- _endasm;
+ __endasm;
#endif
}
#include <usart.h>
-void usart_baud(unsigned char baudconfig) wparam
+void usart_baud(unsigned char baudconfig) __wparam
{
BAUDREG = baudconfig;
}
#include <usart.h>
-unsigned char usart_busy(void) _naked
+unsigned char usart_busy(void) __naked
{
#if 0
if(!TXSTAbits.TRMT)return 1;
else return 0;
#else
- _asm
+ __asm
movlw 0x00
btfss _TXSTAbits, 1
addlw 0x01
return
- _endasm;
+ __endasm;
#endif
}
#include <usart.h>
-unsigned char usart_drdy(void) _naked
+unsigned char usart_drdy(void) __naked
{
#if 0
if(PIR1bits.RCIF)return 1;
else return 0;
#else
- _asm
+ __asm
movlw 0x00
btfsc _PIR1bits, 5
addlw 0x01
return
- _endasm;
+ __endasm;
#endif
}
// USART Status Structure
extern union USART USART_Status;
-void usart_open(unsigned char config, unsigned int spbrg) wparam
+void usart_open(unsigned char config, unsigned int spbrg) __wparam
{
TXSTA = 0; // Reset USART registers to POR state
RCSTA = 0;
extern union USART USART_Status;
-void usart_putc(unsigned char dat) wparam _naked
+void usart_putc(unsigned char dat) __wparam __naked
{
#if 0
if(TXSTAbits.TX9) {
TXREG = dat; // Write the data byte to the USART
#else
dat;
- _asm
+ __asm
btfss _TXSTAbits, 6
bra _01_
_01_:
movwf _TXREG
return
- _endasm;
+ __endasm;
#endif
}
COMPILE_FLAGS += $(MODELFLAGS) $(OPT_FLAGS)
-#CFLAGS += -I$(LIBC_INC_DIR)
+CFLAGS += $(CSTD)
CFLAGS += -I $(PRJDIR)/device/include/pic16
else \
$(AR) -r $(LIB) $$object ; \
fi; \
- echo adding $$object ; \
+ echo -n "$$object " ; \
done ;
- mv -v $(LIB) ../bin
+ @echo
+ @mv -v $(LIB) ../bin
all-clean: clean
#include <math.h>
#include <errno.h>
-#define r1 -0.1666665668E+0
-#define r2 0.8333025139E-2
-#define r3 -0.1980741872E-3
-#define r4 0.2601903036E-5
+#define r1 (-0.1666665668E+0)
+#define r2 (0.8333025139E-2)
+#define r3 (-0.1980741872E-3)
+#define r4 (0.2601903036E-5)
/* PI=C1+C2 */
#define C1 3.140625
#OPT_FLAGS += --stack-auto
COMPILE_FLAGS += $(MODELFLAGS) $(OPT_FLAGS) $(DEBUG)
-CFLAGS = --nostdinc -I$(LIBC_INC_DIR)
+CFLAGS += $(CSTD)
+CFLAGS += --nostdinc -I$(LIBC_INC_DIR)
CFILES = $(patsubst %,%.c,$(SRCS))
COFILES = $(patsubst %.c,%.o,$(CFILES))
extern PRODL;
-void _gptrget1(void) _naked
+void _gptrget1(void) __naked
{
- _asm
+ __asm
/* decode generic pointer MSB (in WREG) bits 6 and 7:
* 00 -> code
* 01 -> EEPROM
_end_:
return
- _endasm;
+ __endasm;
}
extern TABLAT;
extern PRODL;
-void _gptrget2(void) _naked
+void _gptrget2(void) __naked
{
- _asm
+ __asm
/* decode generic pointer MSB (in WREG) bits 6 and 7:
* 00 -> code
* 01 -> EEPROM
_end_:
return
- _endasm;
+ __endasm;
}
extern PRODL;
extern PRODH;
-void _gptrget3(void) _naked
+void _gptrget3(void) __naked
{
- _asm
+ __asm
/* decode generic pointer MSB (in WREG) bits 6 and 7:
* 00 -> code
* 01 -> EEPROM
/* unimplemented yet */
return
- _endasm;
+ __endasm;
}
extern PRODL;
extern PRODH;
-void _gptrget4(void) _naked
+void _gptrget4(void) __naked
{
- _asm
+ __asm
/* decode generic pointer MSB (in WREG) bits 6 and 7:
* 00 -> code
* 01 -> EEPROM
return
- _endasm;
+ __endasm;
}
extern PRODL;
extern PRODH;
-void _gptrput1(void) _naked
+void _gptrput1(void) __naked
{
- _asm
+ __asm
/* decode generic pointer MSB (in WREG) bits 6 and 7:
* 00 -> code (unimplemented)
* 01 -> EEPROM (unimplemented)
return
- _endasm;
+ __endasm;
}
extern PRODL;
extern PRODH;
-void _gptrput2(void) _naked
+void _gptrput2(void) __naked
{
- _asm
+ __asm
/* decode generic pointer MSB (in WREG) bits 6 and 7:
* 00 -> code (unimplemented)
* 01 -> EEPROM (unimplemented)
return
- _endasm;
+ __endasm;
}
extern PRODL;
extern PRODH;
-void _gptrput3(void) _naked
+void _gptrput3(void) __naked
{
- _asm
+ __asm
/* decode generic pointer MSB (in WREG) bits 6 and 7:
* 00 -> code (unimplemented)
* 01 -> EEPROM (unimplemented)
return
- _endasm;
+ __endasm;
}
extern PRODL;
extern PRODH;
-void _gptrput4(void) _naked
+void _gptrput4(void) __naked
{
- _asm
+ __asm
/* decode generic pointer MSB (in WREG) bits 6 and 7:
* 00 -> code (unimplemented)
* 01 -> EEPROM (unimplemented)
return
- _endasm;
+ __endasm;
}
{
unsigned int reste = 0;
unsigned char count = 16;
- char c;
+ unsigned char c;
do
{
{
unsigned long reste = 0L;
unsigned char count = 32;
- char c;
+ unsigned char c;
do
{
COMPILE_FLAGS += $(MODELFLAGS) $(OPT_FLAGS)
COMPILE_FLAGS += --nostdinc --nostdlib --fommit-frame-pointer
+CFLAGS += $(CSTD)
+
CFILES = $(patsubst %,%.c,$(SRCS))
OFILES = $(patsubst %.c,%.o,$(CFILES))
extern void main (void);
/* prototype for the startup function */
-void _entry (void) _naked interrupt 0;
-void _startup (void) _naked;
+void _entry (void) __naked __interrupt 0;
+void _startup (void) __naked;
/*
* entry function, placed at interrupt vector 0 (RESET)
*/
-void _entry (void) _naked interrupt 0
+void _entry (void) __naked __interrupt 0
{
- _asm goto __startup _endasm;
+ __asm goto __startup __endasm;
}
-void _startup (void) _naked
+void _startup (void) __naked
{
- _asm
+ __asm
// Initialize the stack pointer
lfsr 1, _stack_end
lfsr 2, _stack_end
bsf 0xa6, 7, 0
bcf 0xa6, 6, 0
- _endasm ;
+ __endasm ;
/* Call the user's main routine */
main();
extern void main (void);
/* prototype for the startup function */
-void _entry (void) _naked interrupt 0;
-void _startup (void) _naked;
+void _entry (void) __naked __interrupt 0;
+void _startup (void) __naked;
/* prototype for the initialized data setup */
-void _do_cinit (void) _naked;
+void _do_cinit (void) __naked;
/*
* entry function, placed at interrupt vector 0 (RESET)
*/
-void _entry (void) _naked interrupt 0
+void _entry (void) __naked __interrupt 0
{
- _asm goto __startup _endasm;
+ __asm goto __startup __endasm;
}
-void _startup (void) _naked
+void _startup (void) __naked
{
- _asm
+ __asm
// Initialize the stack pointer
lfsr 1, _stack_end
lfsr 2, _stack_end
bsf 0xa6, 7, 0
bcf 0xa6, 6, 0
- _endasm ;
+ __endasm ;
_do_cinit();
/* the cinit table will be filled by the linker */
-extern code struct
+extern __code struct
{
unsigned short num_init;
struct _init_entry {
*/
/* the variable initialisation routine */
-void _do_cinit (void) _naked
+void _do_cinit (void) __naked
{
/*
* access registers 0x00 - 0x09 are not saved in this function
*/
- _asm
+ __asm
; TBLPTR = &cinit
movlw low(_cinit)
movwf _TBLPTRL
; while (curr_entry) {
test:
- bnz done1
+ bnz cont1 ;;done1
tstfsz curr_entry, 1
bra cont1
TBLRDPOSTINC
TBLRDPOSTINC
- ; read the destination address directly into FSR0
+ ; read the size of data to transfer destination address
TBLRDPOSTINC
movf _TABLAT, w
movwf curr_byte
movf _TABLAT, w
movwf curr_byte+1
-
; skip two bytes since it is stored as a 32bit int
TBLRDPOSTINC
TBLRDPOSTINC
; determine if we have any more bytes to copy
; movlb curr_byte
- movf curr_byte, w
+ movf curr_byte, w
copy_loop:
bnz copy_one_byte ; copy_one_byte
movf curr_byte + 1, w
movf _TABLAT, w
movwf _POSTINC0
+ movff _TABLAT, 0xf7e
+
; decrement byte counter
decf curr_byte, f
- bnc copy_loop ; copy_loop
+ bc copy_loop ; copy_loop
decf curr_byte + 1, f
+ bra copy_one_byte
- bra copy_loop
done_copying:
movff data_ptr + 1, _TBLPTRH
movff data_ptr + 2, _TBLPTRU
- dcfsnz curr_entry, f
+ decf curr_entry, f
+ bc do_next
decf curr_entry + 1, f
+do_next:
+
; next entry...
; _do_cinit_curr_entry--;
; emit done label
done:
return
- _endasm;
+ __endasm;
}
extern void main (void);
/* prototype for the startup function */
-void _entry (void) _naked interrupt 0;
-void _startup (void) _naked;
+void _entry (void) __naked __interrupt 0;
+void _startup (void) __naked;
/* prototype for the initialized data setup */
-void _do_cinit (void) _naked;
+void _do_cinit (void) __naked;
/*
* entry function, placed at interrupt vector 0 (RESET)
*/
-void _entry (void) _naked interrupt 0
+void _entry (void) __naked __interrupt 0
{
- _asm goto __startup _endasm;
+ __asm goto __startup __endasm;
}
-void _startup (void) _naked
+void _startup (void) __naked
{
- _asm
+ __asm
// Initialize the stack pointer
lfsr 1, _stack_end
lfsr 2, _stack_end
// for non-flash devices, so we do it on all parts.
bsf 0xa6, 7, 0
bcf 0xa6, 6, 0
- _endasm ;
+ __endasm ;
/* cleanup the RAM */
- _asm
+ __asm
/* load FSR0 with top of RAM memory */
; movlw 0xff
; movwf _FSR0L, 0
movlw 0x00
clear_loop:
- movwf _POSTDEC0
+ clrf _POSTDEC0
movf 0x00, w
bnz clear_loop
- _endasm ;
+ __endasm ;
_do_cinit();
/* the cinit table will be filled by the linker */
-extern code struct
+extern __code struct
{
unsigned short num_init;
struct _init_entry {
*/
/* the variable initialisation routine */
-void _do_cinit (void) _naked
+void _do_cinit (void) __naked
{
/*
* access registers 0x00 - 0x09 are not saved in this function
*/
- _asm
+ __asm
; TBLPTR = &cinit
movlw low(_cinit)
movwf _TBLPTRL
; while (curr_entry) {
test:
- bnz done1
+ bnz cont1 ;;done1
tstfsz curr_entry, 1
bra cont1
TBLRDPOSTINC
TBLRDPOSTINC
- ; read the destination address directly into FSR0
+ ; read the size of data to transfer to destination address
TBLRDPOSTINC
movf _TABLAT, w
movwf curr_byte
; decrement byte counter
decf curr_byte, f
- bnc copy_loop ; copy_loop
+ bc copy_loop ; copy_loop
decf curr_byte + 1, f
- bra copy_loop
+ bra copy_one_byte
done_copying:
movff data_ptr + 2, _TBLPTRU
- dcfsnz curr_entry, f
+ decf curr_entry, f
+ bc do_next
decf curr_entry + 1, f
+do_next:
; next entry...
; _do_cinit_curr_entry--;
; emit done label
done:
return
- _endasm;
+ __endasm;
}
t2 = PCOLR (PCINF (pc1)->oper1)->type;
break;
}
+ pc1 = pc1->next;
}
if((t1 == LR_ENTRY_BEGIN && t2 == LR_ENTRY_END)