How can I know the GPIO_Typedef of a Pin?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Labels:
-
GPIO-EXTI
-
STM32WB series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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. ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-08 12:45 PM
The pin associativity would be in the Data Sheet.
HAL_GPIO_TogglePin(GPIOA,GPIO_PIN_11);.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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. ...
