xous-core/services/llio/src/i2c/mod.rs
Sean Cross b86e0a65cd services: recognize xous as a hardware OS
Support `xous` as a valid OS. This allows us to build the entire kernel
under this target.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-02 18:11:48 +08:00

13 lines
497 B
Rust

#![cfg_attr(not(target_os = "none"), allow(dead_code))]
#![cfg_attr(not(target_os = "none"), allow(unused_imports))]
#![cfg_attr(not(target_os = "none"), allow(unused_variables))]
#[cfg(not(any(target_os = "none", target_os = "xous")))]
mod hosted;
#[cfg(not(any(target_os = "none", target_os = "xous")))]
pub use crate::i2c::hosted::*;
#[cfg(any(target_os = "none", target_os = "xous"))]
mod hardware;
#[cfg(any(target_os = "none", target_os = "xous"))]
pub(crate) use crate::i2c::hardware::*;