uart uart_set_pin forces me to set rts and cts, how to avoid losing gpio?
Posted: Thu Aug 17, 2017 8:11 pm
My application requires me to use serial communication to talk with a DFplayer module, which i have managed to run properly with arduino using TX and Rx.
Another situation of my application is that im using most of the GPIOs with none to spare,
the issue is when i try to start implement the uart,following the example i see the function to set the gpio pins i see that i am forced to set pins for rts and cts.
Seeing the example, i see this line:
and following to \uart.c :
i really have no pins to spare on rts and cts, is there a way i can avoid setting this pins like so?
can they be redeclared as outputs later? am i missing something?
Another situation of my application is that im using most of the GPIOs with none to spare,
the issue is when i try to start implement the uart,following the example i see the function to set the gpio pins i see that i am forced to set pins for rts and cts.
Seeing the example, i see this line:
Code: Select all
uart_set_pin(EX_UART_NUM, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE);
Code: Select all
esp_err_t uart_set_pin(uart_port_t uart_num, int tx_io_num, int rx_io_num, int rts_io_num, int cts_io_num)
can they be redeclared as outputs later? am i missing something?