blob: cbd9691520a44c2a6d3bb43f2b3f125f5c966082 [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
pub mod bootstrap;
pub mod console;
pub mod gpio;
pub mod i2c;
pub mod hello;
pub mod image;
pub mod load_bitstream;
pub mod spi;
use anyhow::Result;
use erased_serde::Serialize;
use std::any::Any;
use structopt::StructOpt;
use opentitanlib::app::command::CommandDispatch;
use opentitanlib::app::TransportWrapper;
#[derive(Debug, StructOpt)]
/// No Operation.
pub struct NoOp {}
impl CommandDispatch for NoOp {
fn run(
&self,
_context: &dyn Any,
_transport: &TransportWrapper,
) -> Result<Option<Box<dyn Serialize>>> {
Ok(None)
}
}