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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/10/06 18:30:35
#defineFT_WR_DIR(a)(P4DIR|=BIT6):(P4DIR&=~BIT6)#defineFT_WR(a)(P4OUT|=BIT6):(P4OUT&=~BIT6)#defineFT_

#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