2022-10-08 12:43 PM
I connected a LED to the PA11 pin of STM32WB55VGY microcontroller
and I want to toggle it.
So, I'm trying to use HAL_GPIO_TogglePin(xx, yy) but I cannot know the "xx (GPIO_Typedef)" of PA11 pin.
Where can I found which pin is which GPIOx?
Solved! Go to Solution.
2022-10-08 12:52 PM
> I cannot know the "xx (GPIO_Typedef)" of PA11 pin
It is GPIOA :)
GPIO_Typedef of pin PB11 is GPIOB. ...
2022-10-08 12:45 PM
The pin associativity would be in the Data Sheet.
HAL_GPIO_TogglePin(GPIOA,GPIO_PIN_11);.
2022-10-08 12:52 PM
> I cannot know the "xx (GPIO_Typedef)" of PA11 pin
It is GPIOA :)
GPIO_Typedef of pin PB11 is GPIOB. ...