mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-24 09:40:52 +00:00
9 lines
240 B
Rust
9 lines
240 B
Rust
#![cfg_attr(target_os = "none", no_std)]
|
|
|
|
pub mod api;
|
|
use xous::{CID, send_message};
|
|
|
|
pub fn set_canvas(cid: CID, g: graphics_server::Gid) -> Result<(), xous::Error> {
|
|
send_message(cid, api::Opcode::SetCanvas(g).into())?;
|
|
Ok(())
|
|
}
|