I am designing a board with an stm32f722 MCU (64 pin version) and I can't afford to waste / not use any GPIO.
My question is following: Is there an option to only use the Rx-pin of a uart / usart so that the Tx-pin can be used for something else (in my case SPI_SCK)?
If I enable a uart / usart in STM32CubeMx and go to the "Configuration" tab I can change "Data Direction" to "Receive only". But this doesn't disable the Tx-pin.
Another way may be using half-duplex mode but then the Tx-pin would be used anyways and I couldn't use it for SPI.
Note: I am still planning my own board and don't have any hardware to test.