drtioaux_proto: removed failure, need to fix traits
This commit is contained in:
parent
a8a2da575b
commit
39d522e1a7
@ -5,10 +5,10 @@ use crc;
|
||||
use io::{ProtoRead, ProtoWrite, Cursor, Error as IoError};
|
||||
use mem::mem::DRTIOAUX_MEM;
|
||||
use pl::csr::DRTIOAUX;
|
||||
use crate::drtioaux_proto::Error as ProtocolError;
|
||||
use drtioaux_proto::Error as ProtocolError;
|
||||
use libboard_zynq::{timer::GlobalTimer, time::Milliseconds};
|
||||
|
||||
pub use crate::drtioaux_proto::Packet;
|
||||
pub use drtioaux_proto::Packet;
|
||||
|
||||
// this is parametric over T because there's no impl Fail for !.
|
||||
#[derive(Debug)]
|
||||
|
@ -1,11 +1,9 @@
|
||||
use io::{Read, ProtoRead, Write, ProtoWrite, Error as IoError};
|
||||
|
||||
#[derive(Fail, Debug)]
|
||||
#[derive(Debug)]
|
||||
pub enum Error<T> {
|
||||
#[fail(display = "unknown packet {:#02x}", _0)]
|
||||
UnknownPacket(u8),
|
||||
#[fail(display = "{}", _0)]
|
||||
Io(#[cause] IoError<T>)
|
||||
Io(IoError<T>)
|
||||
}
|
||||
|
||||
impl<T> From<IoError<T>> for Error<T> {
|
||||
|
@ -15,6 +15,8 @@ extern crate io;
|
||||
#[path = "../../../build/pl.rs"]
|
||||
pub mod pl;
|
||||
|
||||
pub mod drtioaux_proto;
|
||||
|
||||
#[cfg(has_drtio)]
|
||||
pub mod drtioaux;
|
||||
// for now, memory map is only needed for DRTIO firmware
|
||||
|
Loading…
Reference in New Issue
Block a user