Question
Pin versus port in STM32Cube example
Posted on December 04, 2014 at 01:32
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