feat(uart_test): add test case for uart tx blocked by auto-suspend

This commit is contained in:
Michael (XIAO Xufeng)
2024-05-28 10:57:59 +08:00
committed by Xiao Xufeng
parent 9b0d803237
commit c6d4c1a7bf
4 changed files with 42 additions and 21 deletions
@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
#include "driver/uart.h"
typedef struct {
uart_port_t port_num;
soc_module_clk_t default_src_clk;
int tx_pin_num;
int rx_pin_num;
uint32_t rx_flow_ctrl_thresh;
} uart_port_param_t;
bool port_select(uart_port_param_t *port_param);