Merge branch 'bugfix/usb_serial_driver_block_v5.0' into 'release/v5.0'

usb_serial_jtag: Fix bug of blocking TX xfer when using driver (backport v5.0)

See merge request espressif/esp-idf!22830
This commit is contained in:
Michael (XIAO Xufeng)
2023-03-23 16:58:36 +08:00
4 changed files with 32 additions and 14 deletions

View File

@@ -35,7 +35,9 @@ typedef struct {
* USB-SERIAL-JTAG driver's ISR will be attached to the same CPU core that calls this function. Thus, users
* should ensure that the same core is used when calling `usb_serial_jtag_driver_uninstall()`.
*
* @note Blocking mode will result in usb_serial_jtag_write_bytes() blocking until all bytes have been written to the TX FIFO.
* @note Blocking mode will result in usb_serial_jtag_write_bytes() blocking for a
* short period if the TX FIFO if full. It will not block again until the buffer
* has some space available again.
*
* @param usb_serial_jtag_driver_config_t Configuration for usb_serial_jtag driver.
*
@@ -65,7 +67,7 @@ int usb_serial_jtag_read_bytes(void* buf, uint32_t length, TickType_t ticks_to_w
*
* @param src data buffer address
* @param size data length to send
* @param ticks_to_wait Timeout in RTOS ticks
* @param ticks_to_wait Maximum timeout in RTOS ticks
*
* @return
* - The number of bytes pushed to the TX FIFO