Merge branch 'bugfix/pm_uart_garbage' into 'master'

esp_pm: fix garbage on UART when CONFIG_PM_ENABLE=y

See merge request espressif/esp-idf!10843
pull/4512/merge
Ivan Grokhotkov 2020-10-20 22:18:00 +08:00
commit b98032aae4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -680,7 +680,7 @@ void esp_pm_impl_dump_stats(FILE* out)
void esp_pm_impl_init(void)
{
#if defined(CONFIG_ESP_CONSOLE_UART)
while(!uart_ll_get_txfifo_len(UART_LL_GET_HW(CONFIG_ESP_CONSOLE_UART_NUM)));
while(!uart_ll_is_tx_idle(UART_LL_GET_HW(CONFIG_ESP_CONSOLE_UART_NUM)));
/* When DFS is enabled, override system setting and use REFTICK as UART clock source */
uart_ll_set_baudrate(UART_LL_GET_HW(CONFIG_ESP_CONSOLE_UART_NUM), UART_SCLK_REF_TICK, CONFIG_ESP_CONSOLE_UART_BAUDRATE);
#endif // CONFIG_ESP_CONSOLE_UART