mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fixup feature specifiers
This commit is contained in:
parent
e4292c38e7
commit
14bfa42aec
5 changed files with 14 additions and 6 deletions
|
|
@ -17,6 +17,7 @@ cramium-hal = { path = "../../libs/cramium-hal", features = [
|
||||||
], optional = true }
|
], 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" }
|
||||||
|
cramium-emu = { path = "../../libs/cramium-emu", optional = true }
|
||||||
|
|
||||||
# QR decoding
|
# QR decoding
|
||||||
libm = { version = "0.2.8" }
|
libm = { version = "0.2.8" }
|
||||||
|
|
@ -30,7 +31,7 @@ locales = { path = "../../locales" }
|
||||||
# (for UI development) and actual hardware targets. In UI development all camera data
|
# (for UI development) and actual hardware targets. In UI development all camera data
|
||||||
# is "faked"
|
# is "faked"
|
||||||
board-baosec = ["cram-hal-service"]
|
board-baosec = ["cram-hal-service"]
|
||||||
hosted-baosec = []
|
hosted-baosec = ["cramium-emu"]
|
||||||
|
|
||||||
cramium-soc = ["utralib/cramium-soc"]
|
cramium-soc = ["utralib/cramium-soc"]
|
||||||
decongest-udma = []
|
decongest-udma = []
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
#[cfg(feature = "hosted-baosec")]
|
||||||
|
use cramium_emu::display::Mono;
|
||||||
|
#[cfg(feature = "board-baosec")]
|
||||||
use cramium_hal::sh1107::Mono;
|
use cramium_hal::sh1107::Mono;
|
||||||
use ux_api::minigfx::*;
|
use ux_api::minigfx::*;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
use crate::Opcode;
|
||||||
|
|
||||||
pub fn wrapped_main() -> ! {
|
pub fn wrapped_main() -> ! {
|
||||||
log_server::init_wait().unwrap();
|
log_server::init_wait().unwrap();
|
||||||
log::set_max_level(log::LevelFilter::Info);
|
log::set_max_level(log::LevelFilter::Info);
|
||||||
|
|
@ -7,6 +9,7 @@ pub fn wrapped_main() -> ! {
|
||||||
|
|
||||||
let tt = ticktimer::Ticktimer::new().unwrap();
|
let tt = ticktimer::Ticktimer::new().unwrap();
|
||||||
|
|
||||||
|
let mut msg_opt = None;
|
||||||
loop {
|
loop {
|
||||||
xous::reply_and_receive_next(sid, &mut msg_opt).unwrap();
|
xous::reply_and_receive_next(sid, &mut msg_opt).unwrap();
|
||||||
let msg = msg_opt.as_mut().unwrap();
|
let msg = msg_opt.as_mut().unwrap();
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
use cramium_hal::iox::{IoxPort, IoxValue};
|
||||||
|
use cramium_hal::sh1107::{Mono, Oled128x128};
|
||||||
|
use cramium_hal::udma::PeriphId;
|
||||||
|
use num_traits::ToPrimitive;
|
||||||
|
use utralib::utra;
|
||||||
|
|
||||||
pub fn blit_to_display(sh1107: &mut Oled128x128, frame: &[u8], display_cleared: bool) {
|
pub fn blit_to_display(sh1107: &mut Oled128x128, frame: &[u8], display_cleared: bool) {
|
||||||
for (y, row) in frame.chunks(IMAGE_WIDTH).enumerate() {
|
for (y, row) in frame.chunks(IMAGE_WIDTH).enumerate() {
|
||||||
if y & 1 == 0 {
|
if y & 1 == 0 {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,3 @@
|
||||||
use cramium_hal::iox::{IoxPort, IoxValue};
|
|
||||||
use cramium_hal::sh1107::{Mono, Oled128x128};
|
|
||||||
use cramium_hal::udma::PeriphId;
|
|
||||||
use num_traits::ToPrimitive;
|
|
||||||
use utralib::utra;
|
|
||||||
use ux_api::minigfx::*;
|
use ux_api::minigfx::*;
|
||||||
|
|
||||||
mod api;
|
mod api;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue