When I set the MX6DL uart1 to DTE mode the TX becomes input, RX becomes output.
Do I have any software method to swap the TX/RX ?
my code definition are:
MX6DL_PAD_EIM_D19__UART1_CTS,
MX6DL_PAD_EIM_D20__UART1_RTS,
MX6DL_PAD_EIM_D23__UART1_DCD,
MX6DL_PAD_EIM_D25__UART1_DSR,
MX6DL_PAD_EIM_D24__UART1_DTR,
MX6DL_PAD_EIM_EB3__UART1_RI,
MX6DL_PAD_SD3_DAT7__UART1_TXD,
MX6DL_PAD_SD3_DAT6__UART1_RXD,
and set the DCEDTE bit in UFCR for uart1 likes:
static const struct imxuart_platform_data mx6q_uart1_data __initconst = {
.flags = IMXUART_USE_DCEDTE | IMXUART_HAVE_RTSCTS | IMXUART_SDMA,
.dma_req_rx = MX6Q_DMA_REQ_UART1_RX,
.dma_req_tx = MX6Q_DMA_REQ_UART1_TX,
};
imx6q_add_imx_uart(0, &mx6q_uart1_data);
in this case, the SD_DAT7_UART1_TX becomes input, and RX becomes to output,
so I change that to:
MX6DL_PAD_SD3_DAT7__UART1_RXD,
MX6DL_PAD_SD3_DAT6__UART1_TXD,
but it not works, the SD3_DAT7's direction still input.
Dose it have any software method to do that? I want let the SD3_DAT7's direction becomes output
Thanks,
ChuYuan