Function esp_idf_hal::sys::usb_serial_jtag_driver_install

source ·
pub unsafe extern "C" fn usb_serial_jtag_driver_install(
    usb_serial_jtag_config: *mut usb_serial_jtag_driver_config_t,
) -> i32
Expand description

@brief Install USB-SERIAL-JTAG driver and set the USB-SERIAL-JTAG to the default configuration.

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 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.

@return - ESP_OK Success - ESP_FAIL Failed for some reason.