#define LED1(a) if (a)GPIO_SetBits(GPIOC,GPIO_Pin_3);elseGPIO_ResetBits(GPIOC,GPIO_Pin_3)
#define LED1(a) if (a)这是一个宏定义 ,在代码中,将LED1(a)替换为if(a)即可GPIO_SetBits(GPIOC,GPIO_Pin_3);和GPIO_ResetBits(GPIOC,GPIO_Pin_3)感觉是2个函数。/没有贴出来啊