unsigned char bitdata;
sbit bit7=bitdata^7;
sbit bit6=bitdata^6;
sbit bit5=bitdata^5;
sbit bit4=bitdata^4;
sbit bit3=bitdata^3;
sbit bit2=bitdata^2;
sbit bit1=bitdata^1;
sbit bit0=bitdata^0;
要把一部分C51上的程序移植到STM8单片机上去,结果这几句不会搞,能不能写成#define bit7 bitdata^7 来代替?
|