mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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
|
# temporary feature - remove after we have properly created a camera control API
|
||||||
autotest = []
|
autotest = []
|
||||||
|
|
||||||
|
with-logo = []
|
||||||
bao1x = ["utralib/bao1x", "blitstr2/bao1x"]
|
bao1x = ["utralib/bao1x", "blitstr2/bao1x"]
|
||||||
b64-export = ["base64"]
|
b64-export = ["base64"]
|
||||||
default = [
|
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.
|
// 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));
|
let is_panic = Arc::new(AtomicBool::new(false));
|
||||||
|
|
||||||
// ---- boot logo
|
// ---- Baochip boot logo, if enabled
|
||||||
display.blit_screen(&ux_api::bitmaps::baochip128x128::BITMAP);
|
#[cfg(feature = "with-logo")]
|
||||||
display.redraw();
|
{
|
||||||
|
display.blit_screen(&ux_api::bitmaps::baochip128x128::BITMAP);
|
||||||
|
display.redraw();
|
||||||
|
}
|
||||||
|
|
||||||
// This is safe because the SPIM is finished with initialization, and the handler is
|
// This is safe because the SPIM is finished with initialization, and the handler is
|
||||||
// Mutex-protected.
|
// Mutex-protected.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue