[stm32f3]Selecting uart pin
Posted: Wed Jan 14, 2015 9:22 pm
Hi,
just an easy question, to choose from possible pin to use for usartX, i just have to activate their alternative mode them with:
so does this also mean activanting altenate mode on two or more pair of TX/RX (of the same uart) use them all as uart?
just an easy question, to choose from possible pin to use for usartX, i just have to activate their alternative mode them with:
Code: Select all
palSetPadMode(GPIOC, 4, PAL_MODE_ALTERNATE(7)); // used function : USART1_TX
palSetPadMode(GPIOC, 5, PAL_MODE_ALTERNATE(7)); // used function : USART1_RX
so does this also mean activanting altenate mode on two or more pair of TX/RX (of the same uart) use them all as uart?