How to configure any GPIO pin individually using HAL ?
Hi everyone,
I am trying to modify the demonstartion application in the NUCLEO-G47RE board. There is this comment in the main header file:
#define B1_Pin GPIO_PIN_13I went to the Description of STM32G4 HAL and low-layer dirvers found in:
In pages 354 and 355, you can see the GPIO_Pins which can be called with GPIO_PIN_x where is x is between 0 to 15. But I do not understand why the the first pin is Pin 0 when in the datasheet the pinout starts from Pin 1. Also why is the last pin to be configured Pin 15 when 52 pins are GPIOs. Any help would be really appreciated.
P.D. My MCU is using the LQFP64 package. That's the pinout I'm referring to.
