mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
make baochip boot logo drawing optional in the kernel driver
This commit is contained in:
parent
0252961d6b
commit
d4933e96a4
2 changed files with 7 additions and 3 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue