It possible to set 2 pins high with GPIO_SetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
like this:
GPIO_SetBis(GPIOA,PA1|PA2)
The online stm32f10 peripheral library (here) said:
This parameter can be any combination of GPIO_Pin_x where x can be (0..15)
But inside the GPIO_SetBits
function there is:
assert_param(IS_GPIO_PIN(GPIO_Pin));
It refers to a simple macro that exams each input as sigle pin:
(((PIN) == GPIO_Pin_0) || \ ...