Quoting Robert Bergfors <[EMAIL PROTECTED]>: > Hello, > > gputils have added support for a variety of new devices, includeing > pic16f886 and 887, I suggest making a couple small changes to the > source:
Hello Raphael, I actually ment to change the include files pic16f886.h and pic16f887.h, but PIC16F88 also has RA6+RA7, so adding this to pic16f88.h was correct. Could the same changes be made also to 886 and 887? > > 1) sdcc/device/include/pic/pic16f88[6|7].h: > add RA6 and RA7 to PORTA, thus > > > // ----- PORTA bits -------------------- > typedef union { > struct { > unsigned char RA0:1; > unsigned char RA1:1; > unsigned char RA2:1; > unsigned char RA3:1; > unsigned char RA4:1; > unsigned char RA5:1; > unsigned char RA6:1; // <-- Added > unsigned char RA7:1; // <-- Added > }; > } __PORTA_bits_t; > extern volatile __PORTA_bits_t __at(PORTA_ADDR) PORTA_bits; > > #ifndef NO_BIT_DEFINES > #define RA0 PORTA_bits.RA0 > #define RA1 PORTA_bits.RA1 > #define RA2 PORTA_bits.RA2 > #define RA3 PORTA_bits.RA3 > #define RA4 PORTA_bits.RA4 > #define RA5 PORTA_bits.RA5 > #define RA6 PORTA_bits.RA6 // <-- Added > #define RA7 PORTA_bits.RA7 // <-- Added > #endif /* NO_BIT_DEFINES */ > > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user