blob: 5f116b51eb78a6d284e33d97185b047c62c753ca [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::cw310::CW310;
use opentitanlib::transport::Transport;
use crate::backend::BackendOpts;
pub fn create(args: &BackendOpts) -> Result<Box<dyn Transport>> {
Ok(Box::new(CW310::new(
args.usb_vid,
args.usb_vid,
args.usb_serial.clone(),
)?))
}