AnsweredAssumed Answered

Pin versus port in STM32Cube example

Question asked by lekanteto on Dec 4, 2014
Latest reply on Dec 4, 2014 by lekanteto
I changed the pins in the UART_TwoBoards_ComPolling example for the Nucleo STM32L152RE board.
It did not work until i also changed the port.
Is there a fixed connection between pin and port?
How do I know which pin belongs to which port?

#define USARTx_TX_PIN                    GPIO_PIN_6
#define USARTx_TX_GPIO_PORT              GPIOB

#define USARTx_TX_PIN                    GPIO_PIN_9
#define USARTx_TX_GPIO_PORT              GPIOA