xous-core/xous-rs/src/lib.rs
Sean Cross d10bc2e894 syscalls: begin adding message-passing syscalls
These are still not connected, however their existence is starting to
solidify the API.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-17 10:27:03 +08:00

22 lines
462 B
Rust

#![no_std]
#[macro_use]
extern crate bitflags;
extern crate num_derive;
extern crate num_traits;
pub mod definitions;
pub mod syscall;
pub use definitions::*;
pub use syscall::*;
/// Convert a four-letter string into a 32-bit int.
#[macro_export]
macro_rules! make_name {
($fcc:expr) => {{
let mut c: [u8; 4] = Default::default();
c.copy_from_slice($fcc.as_bytes());
u32::from_le_bytes(c) as usize
}};
}