Skip to content
Snippets Groups Projects
Commit fb6969cc authored by Astro's avatar Astro :gear:
Browse files

add os

parent a44a3bad
Branches
No related tags found
No related merge requests found
...@@ -65,8 +65,9 @@ pub mod bindings { ...@@ -65,8 +65,9 @@ pub mod bindings {
include!(concat!(env!("OUT_DIR"), "/bindings.rs")); include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
} }
use bindings::*;
mod os;
pub use os::*;
mod display; mod display;
pub use display::{Display, Color, LineStyle, FillStyle}; pub use display::{Display, Color, LineStyle, FillStyle};
mod buttons; mod buttons;
......
use super::bindings::*;
pub fn exec(path: &str) -> ! {
let mut pathbuf = super::str_to_cstr(path);
unsafe {
epic_exec(pathbuf.as_mut_ptr());
}
unreachable!()
}
pub fn exit(ret: i32) -> ! {
unsafe {
epic_exit(ret);
}
unreachable!()
}
pub fn system_reset() -> ! {
unsafe {
epic_system_reset();
}
unreachable!()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment