标题:
stm32的编写问题
[打印本页]
作者:
wqllss
时间:
2018-1-17 19:29
标题:
stm32的编写问题
BitAction怎么用。比如GPIO_WriteBit(GPIOE, GPIO_Pin_4,(BitAction)(1-LED1_State)),这一句是什么意思啊
#define LED1_ON GPIO_ResetBits(GPIOE,GPIO_Pin_4)
#define LED1_OFF GPIO_SetBits(GPIOE,GPIO_Pin_4)
#define LED1_State GPIO_ReadOutputDataBit(GPIOE, GPIO_Pin_4)
#define LED1_Toggle GPIO_WriteBit(GPIOE, GPIO_Pin_4,(BitAction)(1-LED1_State)
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1