管理员
最后登录1970-1-1
在线时间 小时
注册时间2013-5-3
|
发表于 2013-7-29 22:32:35
|
显示全部楼层
本帖最后由 flyleaf 于 2013-7-29 22:34 编辑
等同于:
#define LED1(a) if (a) GPIO_SetBits(GPIOC,GPIO_Pin_3); else GPIO_ResetBits(GPIOC,GPIO_Pin_3)
a非0的时候执行 前面的GPIO_SetBits(GPIOC,GPIO_Pin_3);
a为0的时候执行 后面的GPIO_ResetBits(GPIOC,GPIO_Pin_3) |
|