fixup feature specifiers

This commit is contained in:
bunnie 2025-02-18 23:21:41 +08:00
parent e4292c38e7
commit 14bfa42aec
5 changed files with 14 additions and 6 deletions

View file

@ -17,6 +17,7 @@ cramium-hal = { path = "../../libs/cramium-hal", features = [
], optional = true }
cram-hal-service = { path = "../cram-hal-service", optional = true }
ux-api = { path = "../../libs/ux-api" }
cramium-emu = { path = "../../libs/cramium-emu", optional = true }
# QR decoding
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
# is "faked"
board-baosec = ["cram-hal-service"]
hosted-baosec = []
hosted-baosec = ["cramium-emu"]
cramium-soc = ["utralib/cramium-soc"]
decongest-udma = []

View file

@ -1,3 +1,6 @@
#[cfg(feature = "hosted-baosec")]
use cramium_emu::display::Mono;
#[cfg(feature = "board-baosec")]
use cramium_hal::sh1107::Mono;
use ux_api::minigfx::*;

View file

@ -1,3 +1,5 @@
use crate::Opcode;
pub fn wrapped_main() -> ! {
log_server::init_wait().unwrap();
log::set_max_level(log::LevelFilter::Info);
@ -7,6 +9,7 @@ pub fn wrapped_main() -> ! {
let tt = ticktimer::Ticktimer::new().unwrap();
let mut msg_opt = None;
loop {
xous::reply_and_receive_next(sid, &mut msg_opt).unwrap();
let msg = msg_opt.as_mut().unwrap();

View file

@ -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) {
for (y, row) in frame.chunks(IMAGE_WIDTH).enumerate() {
if y & 1 == 0 {

View file

@ -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::*;
mod api;