drivers: uart_stm32: Add support for tx/rx swap
Add a new boolean devicetree property `tx-rx-swap` to the st,stm32-usart binding, used to control TX/RX swap during device initialization. Signed-off-by: Alexander Mihajlovic <a@abxy.se>
This commit is contained in:
parent
dcaf8dab14
commit
4ff4991e16
3 changed files with 15 additions and 0 deletions
|
@ -28,6 +28,8 @@ struct uart_stm32_config {
|
|||
int parity;
|
||||
/* switch to enable single wire / half duplex feature */
|
||||
bool single_wire;
|
||||
/* enable tx/rx pin swap */
|
||||
bool tx_rx_swap;
|
||||
const struct pinctrl_dev_config *pcfg;
|
||||
#if defined(CONFIG_UART_INTERRUPT_DRIVEN) || defined(CONFIG_UART_ASYNC_API) || \
|
||||
defined(CONFIG_PM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue