【】查阅资料PIC的PORT引脚是可用的,为什么还出现这么多提示?
../I2C.c:39: warning: (1385) variable "_RC3" is deprecated (declared at D:\MPLABX\xc8\v1.41\include\pic18f67j11.h:14866)
../I2C.c:41: warning: (1385) variable "_RC4" is deprecated (declared at D:\MPLABX\xc8\v1.41\include\pic18f67j11.h:14868)
../I2C.c:56: warning: (1385) variable "_RC4" is deprecated (declared at D:\MPLABX\xc8\v1.41\include\pic18f67j11.h:14868)
../handing.c:30: warning: (1385) variable "_RD6" is deprecated (declared at D:\MPLABX\xc8\v1.41\include\pic18f67j11.h:14918)
../handing.c:36: warning: (1385) variable "_RD7" is deprecated (declared at D:\MPLABX\xc8\v1.41\include\pic18f67j11.h:14920)
../handing.c:57: warning: (1385) variable "_RD5" is deprecated (declared at D:\MPLABX\xc8\v1.41\include\pic18f67j11.h:14916)
【】翻了下头文件,PORT引脚都被_DEPRECATED了,如下(我用的MPLAB X IDE V5.15,XC V1.41),什么原因呀?
extern volatile __bit _DEPRECATED RA0 @ (((unsigned) &PORTA)*8) + 0;
#define RA0_bit BANKMASK(PORTA), 0
extern volatile __bit _DEPRECATED RA1 @ (((unsigned) &PORTA)*8) + 1;
#define RA1_bit BANKMASK(PORTA), 1
extern volatile __bit _DEPRECATED RA2 @ (((unsigned) &PORTA)*8) + 2;
#define RA2_bit BANKMASK(PORTA), 2
extern volatile __bit _DEPRECATED RA3 @ (((unsigned) &PORTA)*8) + 3;
#define RA3_bit BANKMASK(PORTA), 3
extern volatile __bit _DEPRECATED RA4 @ (((unsigned) &PORTA)*8) + 4;
#define RA4_bit BANKMASK(PORTA), 4
extern volatile __bit _DEPRECATED RA5 @ (((unsigned) &PORTA)*8) + 5;
#define RA5_bit BANKMASK(PORTA), 5
extern volatile __bit _DEPRECATED RA6 @ (((unsigned) &PORTA)*8) + 6;
#define RA6_bit BANKMASK(PORTA), 6
extern volatile __bit _DEPRECATED RA7 @ (((unsigned) &PORTA)*8) + 7;
#define RA7_bit BANKMASK(PORTA), 7
extern volatile __bit _DEPRECATED RB0 @ (((unsigned) &PORTB)*8) + 0;
#define RB0_bit BANKMASK(PORTB), 0
extern volatile __bit _DEPRECATED RB1 @ (((unsigned) &PORTB)*8) + 1;
#define RB1_bit BANKMASK(PORTB), 1
extern volatile __bit _DEPRECATED RB2 @ (((unsigned) &PORTB)*8) + 2;
#define RB2_bit BANKMASK(PORTB), 2
extern volatile __bit _DEPRECATED RB3 @ (((unsigned) &PORTB)*8) + 3;
#define RB3_bit BANKMASK(PORTB), 3
extern volatile __bit _DEPRECATED RB4 @ (((unsigned) &PORTB)*8) + 4;
#define RB4_bit BANKMASK(PORTB), 4
extern volatile __bit _DEPRECATED RB5 @ (((unsigned) &PORTB)*8) + 5;
#define RB5_bit BANKMASK(PORTB), 5
extern volatile __bit _DEPRECATED RB6 @ (((unsigned) &PORTB)*8) + 6;
#define RB6_bit BANKMASK(PORTB), 6
extern volatile __bit _DEPRECATED RB7 @ (((unsigned) &PORTB)*8) + 7; |