STM32在進行IO翻轉操作的時候可以使用以下方法:以PE.5為例
GPIO_WriteBit(GPIOE,GPIO_Pin_5,(BitAction)(1-(GPIO_ReadOutputDataBit(GPIOE,GPIO_Pin_5))));
GPIO_WriteBit(GPIOE, GPIO_Pin_5, (BitAction)!GPIO_ReadOutputDataBit(GPIOE, GPIO_Pin_5))
GPIOE->ODR ^= GPIO_Pin_5
GPIO_ToggleBits(GPIOE, GPIO_Pin_5)/*有的版本不存在*/
