Skip to content

Commit

Permalink
fix(ESPAT-2189): Fixed a potential uart tx voltage fluctuation issue …
Browse files Browse the repository at this point in the history
…during light-sleep
  • Loading branch information
ustccw committed Dec 31, 2024
1 parent 953399d commit b2b3f79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/interface/uart/at_uart_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ void at_uart_workaround(void)
// a workaround for uart1 outputs uninterrupted data during light-sleep
PIN_SLP_INPUT_ENABLE(GPIO_PIN_MUX_REG[g_uart_port_pin.rx_pin]);
gpio_sleep_set_pull_mode(g_uart_port_pin.rx_pin, GPIO_PULLUP_ONLY);

// a workaround for uart1 tx voltage fluctuation issue during light-sleep
gpio_sleep_sel_dis(g_uart_port_pin.tx_pin);
}

void at_uart_config_init(uart_config_t *config)
Expand Down

0 comments on commit b2b3f79

Please sign in to comment.