cancel
Showing results for 
Search instead for 
Did you mean: 

How can I know the GPIO_Typedef of a Pin?

KKIM.6
Senior II

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III

> I cannot know the "xx (GPIO_Typedef)" of PA11 pin

It is GPIOA :)

GPIO_Typedef of pin PB11 is GPIOB. ...

View solution in original post

2 REPLIES 2

The pin associativity would be in the Data Sheet.

HAL_GPIO_TogglePin(GPIOA,GPIO_PIN_11);.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Pavel A.
Evangelist III

> I cannot know the "xx (GPIO_Typedef)" of PA11 pin

It is GPIOA :)

GPIO_Typedef of pin PB11 is GPIOB. ...