mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
bugfix(uart): fix signal glitch on tx pin
gpio_matrix_out function will set output enable for GPIO, seems in gpio_matrix_out there will be a short moment that the chip will output GPIO level. So we can set GPIO as high before gpio_matrix_out function.
This commit is contained in:
parent
f6193a68a5
commit
9d466de235
@ -394,7 +394,7 @@ esp_err_t uart_set_pin(uart_port_t uart_num, int tx_io_num, int rx_io_num, int r
|
||||
}
|
||||
if(tx_io_num >= 0) {
|
||||
PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[tx_io_num], PIN_FUNC_GPIO);
|
||||
gpio_set_direction(tx_io_num, GPIO_MODE_OUTPUT);
|
||||
gpio_set_level(tx_io_num, 1);
|
||||
gpio_matrix_out(tx_io_num, tx_sig, 0, 0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user