mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-21 16:55:33 +00:00
fix(driver): Add docs and driver fix for the case where a full EP does not cause the host to pickup the data
This commit is contained in:

committed by
Cao Sen Miao

parent
46d402d22e
commit
28e2ab09ea
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -161,8 +161,14 @@ static inline int usb_serial_jtag_ll_txfifo_writable(void)
|
||||
* @brief Flushes the TX buffer, that is, make it available for the
|
||||
* host to pick up.
|
||||
*
|
||||
* @note When fifo is full (with 64 byte), HW will flush the buffer automatically.
|
||||
* It won't be executed if there is nothing in the fifo.
|
||||
* @note When fifo is full (with 64 byte), HW will flush the buffer automatically,
|
||||
* if this function is called directly after, this effectively turns into a
|
||||
* no-op. Because a 64-byte packet will be interpreted as a not-complete USB
|
||||
* transaction, you need to transfer either more data or a zero-length packet
|
||||
* for the data to actually end up at the program listening to the CDC-ACM
|
||||
* serial port. To send a zero-length packet, call
|
||||
* usb_serial_jtag_ll_txfifo_flush() again when
|
||||
* usb_serial_jtag_ll_txfifo_writable() returns true.
|
||||
*
|
||||
* @return na
|
||||
*/
|
||||
|
Reference in New Issue
Block a user