make baochip boot logo drawing optional in the kernel driver

This commit is contained in:
bunnie 2026-03-23 17:23:58 +08:00
parent 0252961d6b
commit d4933e96a4
2 changed files with 7 additions and 3 deletions

View file

@ -56,6 +56,7 @@ hosted-baosec = ["bao1x-emu", "ux-api/hosted-baosec", "no-gam"]
# temporary feature - remove after we have properly created a camera control API
autotest = []
with-logo = []
bao1x = ["utralib/bao1x", "blitstr2/bao1x"]
b64-export = ["base64"]
default = [

View file

@ -236,9 +236,12 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! {
// but it'll do the job 90% of the time and it's way better than having none at all.
let is_panic = Arc::new(AtomicBool::new(false));
// ---- boot logo
display.blit_screen(&ux_api::bitmaps::baochip128x128::BITMAP);
display.redraw();
// ---- Baochip boot logo, if enabled
#[cfg(feature = "with-logo")]
{
display.blit_screen(&ux_api::bitmaps::baochip128x128::BITMAP);
display.redraw();
}
// This is safe because the SPIM is finished with initialization, and the handler is
// Mutex-protected.