mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(bt/example): Fixed UART HCI when flow control is off on ESP32C3
This commit is contained in:
parent
1e5296008a
commit
51db5c76b7
@ -29,12 +29,6 @@ static const char *tag = "UHCI";
|
||||
#define GPIO_OUTPUT_PIN_SEL ((1ULL<<GPIO_UART_TXD_OUT) | (1ULL<<GPIO_UART_RTS_OUT))
|
||||
#define GPIO_INPUT_PIN_SEL ((1ULL<<GPIO_UART_RXD_IN) | (1ULL<<GPIO_UART_CTS_IN))
|
||||
|
||||
#ifdef CONFIG_EXAMPLE_HCI_UART_FLOW_CTRL_ENABLE
|
||||
#define HCI_UART_FLOW_CTRL_ENABLE CONFIG_EXAMPLE_HCI_UART_FLOW_CTRL_ENABLE
|
||||
#else
|
||||
#define HCI_UART_FLOW_CTRL_ENABLE FALSE
|
||||
#endif
|
||||
|
||||
// Operation functions for HCI UART Transport Layer
|
||||
static bool hci_uart_tl_init(void);
|
||||
static void hci_uart_tl_deinit(void);
|
||||
@ -209,7 +203,7 @@ void uhci_uart_install(void)
|
||||
.data_bits = UART_DATA_8_BITS,
|
||||
.parity = UART_PARITY_DISABLE,
|
||||
.stop_bits = UART_STOP_BITS_1,
|
||||
#if (HCI_UART_FLOW_CTRL_ENABLE == TRUE)
|
||||
#ifdef CONFIG_EXAMPLE_HCI_UART_FLOW_CTRL_ENABLE
|
||||
.flow_ctrl = UART_HW_FLOWCTRL_CTS_RTS,
|
||||
#else
|
||||
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
|
||||
|
Loading…
Reference in New Issue
Block a user