mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-24 09:40:52 +00:00
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>
13 lines
497 B
Rust
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::*;
|