Merge branch 'feat/add_example_usj_v5.2' into 'release/v5.2'

change(usb_serial_jtag): Add example for usb serial jtag echo (backport v5.2)

See merge request espressif/esp-idf!30019
This commit is contained in:
morris
2024-04-07 16:07:36 +08:00
16 changed files with 265 additions and 12 deletions

View File

@@ -161,6 +161,15 @@ 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,
* 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
*/
static inline void usb_serial_jtag_ll_txfifo_flush(void)