X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Finclude%2Fpic16%2Fpic18f8520.h;h=a03659a9121715c51ec6ced01c6f72b37b195fa0;hb=bb226788dab3832b0ec0cda70874ce3fce4eebc6;hp=4cf5c0b792393f4b9d79d7095c4078d064d18e9d;hpb=bf67f8d705935961d3758f9735e5f528141a47be;p=fw%2Fsdcc diff --git a/device/include/pic16/pic18f8520.h b/device/include/pic16/pic18f8520.h index 4cf5c0b7..a03659a9 100644 --- a/device/include/pic16/pic18f8520.h +++ b/device/include/pic16/pic18f8520.h @@ -850,6 +850,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 { @@ -1289,6 +1299,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; @@ -1493,7 +1513,4 @@ extern __sfr __at (0xfff) TOSU; #define __IDLOC7 0x200007 -/* added for USART compatibility with smaller devices */ -#define __MULTIPLE_USARTS 1 - #endif