mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
get past some configuration issues
This commit is contained in:
parent
33db7cf039
commit
b76f02bb11
2 changed files with 20 additions and 18 deletions
|
|
@ -12,7 +12,9 @@ log-server = { package = "xous-api-log", version = "0.1.63" }
|
||||||
log = "0.4.14"
|
log = "0.4.14"
|
||||||
num-derive = { version = "0.4.2", default-features = false }
|
num-derive = { version = "0.4.2", default-features = false }
|
||||||
num-traits = { version = "0.2.14", default-features = false }
|
num-traits = { version = "0.2.14", default-features = false }
|
||||||
cramium-hal = { path = "../../libs/cramium-hal", features = ["std"] }
|
cramium-hal = { path = "../../libs/cramium-hal", features = [
|
||||||
|
"std",
|
||||||
|
], optional = true }
|
||||||
cram-hal-service = { path = "../cram-hal-service", optional = true }
|
cram-hal-service = { path = "../cram-hal-service", optional = true }
|
||||||
ux-api = { path = "../../libs/ux-api" }
|
ux-api = { path = "../../libs/ux-api" }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@ use num_traits::ToPrimitive;
|
||||||
use utralib::utra;
|
use utralib::utra;
|
||||||
use ux_api::minigfx::*;
|
use ux_api::minigfx::*;
|
||||||
|
|
||||||
|
mod api;
|
||||||
mod gfx;
|
mod gfx;
|
||||||
mod homography;
|
mod homography;
|
||||||
mod modules;
|
mod modules;
|
||||||
mod qr;
|
mod qr;
|
||||||
mod api;
|
|
||||||
use api::*;
|
use api::*;
|
||||||
#[cfg(feature = "board-baosec")]
|
#[cfg(feature = "board-baosec")]
|
||||||
mod hw;
|
mod hw;
|
||||||
|
|
@ -21,22 +21,22 @@ mod hosted;
|
||||||
#[cfg(feature = "hosted-baosec")]
|
#[cfg(feature = "hosted-baosec")]
|
||||||
use hosted::wrapped_main;
|
use hosted::wrapped_main;
|
||||||
|
|
||||||
//! Scope of this crate:
|
// Scope of this crate:
|
||||||
//!
|
//
|
||||||
//! bao-video contains the platform-specific drivers for the baosec platform that pertain
|
// bao-video contains the platform-specific drivers for the baosec platform that pertain
|
||||||
//! to video: both the capture of video, as well as any operations involving drawing to
|
// to video: both the capture of video, as well as any operations involving drawing to
|
||||||
//! the display (rendering graphics primitives, etc).
|
// the display (rendering graphics primitives, etc).
|
||||||
//!
|
//
|
||||||
//! Note that explicitly out of scope are the higher-level API calls for UI management, e.g.
|
// Note that explicitly out of scope are the higher-level API calls for UI management, e.g.
|
||||||
//! creation of modals and managing draw lists. Only the hardware renderers should be implemented
|
// creation of modals and managing draw lists. Only the hardware renderers should be implemented
|
||||||
//! in this crate. Think of it like a kernel module that handles a video subsystem, where both
|
// in this crate. Think of it like a kernel module that handles a video subsystem, where both
|
||||||
//! camera and display are co-located in the same module for fast data sharing (keep in mind
|
// camera and display are co-located in the same module for fast data sharing (keep in mind
|
||||||
//! this is a microkernel, so we don't have a monolith data space like Linux: all drivers are
|
// this is a microkernel, so we don't have a monolith data space like Linux: all drivers are
|
||||||
//! in their own process space unless explicitly co-located).
|
// in their own process space unless explicitly co-located).
|
||||||
//!
|
//
|
||||||
//! It also pulls in QR code processing for performance reasons - by keeping the QR code
|
// It also pulls in QR code processing for performance reasons - by keeping the QR code
|
||||||
//! processing in the process space of the camera, we can avoid an expensive memcopy between
|
// processing in the process space of the camera, we can avoid an expensive memcopy between
|
||||||
//! process spaces and improve the responsiveness of the feedback loop while QR searching happens.
|
// process spaces and improve the responsiveness of the feedback loop while QR searching happens.
|
||||||
|
|
||||||
pub const IMAGE_WIDTH: usize = 256;
|
pub const IMAGE_WIDTH: usize = 256;
|
||||||
pub const IMAGE_HEIGHT: usize = 240;
|
pub const IMAGE_HEIGHT: usize = 240;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue