blob: 930be7a425d1b53d0b49d0b19d9f012e5ecd0bc5 [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
use anyhow::Result;
use opentitanlib::transport::ultradebug::Ultradebug;
use opentitanlib::transport::Transport;
use crate::backend::BackendOpts;
pub fn create(args: &BackendOpts) -> Result<Box<dyn Transport>> {
Ok(Box::new(Ultradebug::new(
args.usb_vid,
args.usb_vid,
args.usb_serial.clone(),
)))
}