rdif_base/lib.rs
1#![cfg_attr(not(test), no_std)]
2
3use core::any::Any;
4
5extern crate alloc;
6#[macro_use]
7extern crate rdif_def;
8
9pub use rdif_def::{CpuId, KError, custom_type, irq};
10
11pub mod io;
12pub mod lock;
13
14pub trait DriverGeneric: Send + Any {
15 fn open(&mut self) -> Result<(), KError>;
16 fn close(&mut self) -> Result<(), KError>;
17}