GPIO_WriteBit(LED_PORT LED_PIN[Ledx] (BitAction)(1 - GPIO_ReadOutputDataBit(LED_PORT LED_PIN[Ledx] )));
Cube库:HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx uint16_t GPIO_Pin);
有,STM32 HAL库里面有翻转用的函数
HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx uint16_t GPIO_Pin)
HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx uint16_t GPIO_Pin)
在HAL库中的GPIO.c中就是有的
是HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx uint16_t GPIO_Pin)