* device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
[fw/sdcc] / device / include / pic16 / pic18f6620.h
index 10c4c771dff2480e49b285f7ccba65ceda56a984..651867df893af82b84061f5da1c8f46e66181b68 100644 (file)
@@ -738,6 +738,16 @@ extern volatile __TXSTA1bits_t __at (0xfac) TXSTA1bits;
 extern __sfr __at (0xfad) TXREG1;
 extern __sfr __at (0xfae) RCREG1;
 extern __sfr __at (0xfaf) SPBRG1;
+
+/* for compatibility reasons */
+extern __sfr __at (0xfab) RCSTA;
+extern volatile __RCSTA1bits_t __at (0xfab) RCSTAbits;
+extern __sfr __at (0xfac) TXSTA;
+extern volatile __TXSTA1bits_t __at (0xfac) TXSTAbits;
+extern __sfr __at (0xfad) TXREG;
+extern __sfr __at (0xfae) RCREG;
+extern __sfr __at (0xfaf) SPBRG;
+
 extern __sfr __at (0xfb0) PSPCON;
 typedef union {
        struct {
@@ -1177,6 +1187,16 @@ typedef union {
                unsigned PEIE:1;
                unsigned GIE:1;
        };
+       struct {
+               unsigned :1;
+               unsigned INT0IF:1;
+               unsigned TMR0IF:1;
+               unsigned :1;
+               unsigned INT0IE:1;
+               unsigned TMR0IE:1;
+               unsigned GIEL:1;
+               unsigned GIEH:1;
+       };
 } __INTCONbits_t;
 
 extern volatile __INTCONbits_t __at (0xff2) INTCONbits;
@@ -1368,7 +1388,4 @@ extern __sfr __at (0xfff) TOSU;
 #define __IDLOC7       0x200007
 
 
-/* added for USART compatibility with smaller devices */
-#define __MULTIPLE_USARTS 1
-
 #endif