mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add implemnetation for most graphics primitives
this is mostly a copy of what's in graphics-server. Perhaps we can find a way to share the code between the two, but I am going to leave it duplicated for now because it's unclear if I can use this implementation as-is, or if it needs lots of modifications. If it turns out to basically work without mods, then, we can wrap a bunch of the opcode dispatch into mega-function perhaps that takes a display and opcode as parameters and wraps a lot of the boilerplate into a re-usable routine.
This commit is contained in:
parent
9f890d3dbd
commit
8c9abf6c5b
4 changed files with 818 additions and 297 deletions
|
|
@ -19,6 +19,12 @@ cram-hal-service = { path = "../cram-hal-service", optional = true }
|
|||
ux-api = { path = "../../libs/ux-api" }
|
||||
cramium-emu = { path = "../cramium-emu", optional = true }
|
||||
cramium-api = { path = "../../libs/cramium-api" }
|
||||
blitstr2 = { path = "../../libs/blitstr2" }
|
||||
xous-ipc = "0.10.4"
|
||||
rkyv = { version = "0.8.8", default-features = false, features = [
|
||||
"std",
|
||||
"alloc",
|
||||
] }
|
||||
|
||||
# QR decoding
|
||||
libm = { version = "0.2.8" }
|
||||
|
|
@ -28,12 +34,17 @@ rqrr = "0.8.0"
|
|||
locales = { path = "../../locales" }
|
||||
|
||||
[features]
|
||||
ditherpunk = []
|
||||
|
||||
# This crate is baosec specific; these flags switch between hosted mode emulation
|
||||
# (for UI development) and actual hardware targets. In UI development all camera data
|
||||
# is "faked"
|
||||
board-baosec = ["cram-hal-service", "cramium-hal", "ux-api/board-baosec"]
|
||||
hosted-baosec = ["cramium-emu", "ux-api/hosted-baosec"]
|
||||
|
||||
# temporary feature - remove after we have properly created a camera control API
|
||||
autotest = []
|
||||
|
||||
cramium-soc = ["utralib/cramium-soc"]
|
||||
decongest-udma = []
|
||||
default = [
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)]
|
||||
pub enum Opcode {
|
||||
CamIrq,
|
||||
InvalidCall,
|
||||
}
|
||||
|
||||
pub const SERVER_NAME_GFX: &str = "_Graphics_";
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
mod api;
|
||||
pub use api::*;
|
||||
pub use ux_api::service::api::*;
|
||||
pub use ux_api::service::gfx::Gfx;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue