Hi,
I try to found a solution to disable the tx function of an UART to use the pin as GPIO with the teensy 3.2.
I know that I need to disable UART_C2_TE but that doesn't work...
wrong method to turn off a bit of a register?
I found that on the core library if that help :
I wonder if someone have a solution.
Thank you
I try to found a solution to disable the tx function of an UART to use the pin as GPIO with the teensy 3.2.
I know that I need to disable UART_C2_TE but that doesn't work...
Code:
Uart.begin(250000);
UART0_C2 |= UART_C2_TE;
I found that on the core library if that help :
Code:
#ifdef HAS_KINETISK_UART1_FIFO
#define C2_ENABLE UART_C2_TE | UART_C2_RE | UART_C2_RIE | UART_C2_ILIE
#else
#define C2_ENABLE UART_C2_TE | UART_C2_RE | UART_C2_RIE
#endif
#define C2_TX_ACTIVE C2_ENABLE | UART_C2_TIE
#define C2_TX_COMPLETING C2_ENABLE | UART_C2_TCIE
#define C2_TX_INACTIVE C2_ENABLE
I wonder if someone have a solution.
Thank you