#define FT_WR_DIR(a) (P4DIR|=BIT6):(P4DIR&=~BIT6)#define FT_WR(a) (P4OUT|=BIT6):(P4OUT&=~BIT6)

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/13 07:20:06
#define FT_WR_DIR(a) (P4DIR|=BIT6):(P4DIR&=~BIT6)#define FT_WR(a) (P4OUT|=BIT6):(P4OUT&=~BIT6)

#define FT_WR_DIR(a) (P4DIR|=BIT6):(P4DIR&=~BIT6)#define FT_WR(a) (P4OUT|=BIT6):(P4OUT&=~BIT6)
#define FT_WR_DIR(a) (P4DIR|=BIT6):(P4DIR&=~BIT6)
#define FT_WR(a) (P4OUT|=BIT6):(P4OUT&=~BIT6)

#define FT_WR_DIR(a) (P4DIR|=BIT6):(P4DIR&=~BIT6)#define FT_WR(a) (P4OUT|=BIT6):(P4OUT&=~BIT6)
BIT6应该也是一个宏定义, #define BIT6 0x20
第一句:
根据a的值确定将P4DIR的bit6置1还是清0
第二句:
根据a的值确定将P4OUT的bit6置1还是清0