mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-25 09:50:52 +00:00
These are still not connected, however their existence is starting to solidify the API. Signed-off-by: Sean Cross <sean@xobs.io>
22 lines
462 B
Rust
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
|
|
}};
|
|
}
|