szl: add startup banner

This commit is contained in:
Sebastien Bourdeauducq 2020-07-20 19:51:09 +08:00
parent c3201565c4
commit 9a8f8e2d7b
1 changed files with 12 additions and 1 deletions

View File

@ -13,7 +13,8 @@ use libcortex_a9::{
asm::{dsb, isb}, asm::{dsb, isb},
}; };
use libboard_zynq::{ use libboard_zynq::{
self as zynq, clocks::Clocks, clocks::source::{ClockSource, ArmPll, IoPll}, self as zynq, println,
clocks::Clocks, clocks::source::{ClockSource, ArmPll, IoPll},
logger, logger,
timer::GlobalTimer, timer::GlobalTimer,
}; };
@ -35,6 +36,16 @@ pub fn main_core0() {
GlobalTimer::start(); GlobalTimer::start();
logger::init().unwrap(); logger::init().unwrap();
log::set_max_level(log::LevelFilter::Debug); log::set_max_level(log::LevelFilter::Debug);
println!(r#"
__________ __
/ ___/__ / / /
\__ \ / / / /
___/ / / /__/ /___
/____/ /____/_____/
(C) 2020 M-Labs
"#);
info!("Simple Zynq Loader starting..."); info!("Simple Zynq Loader starting...");
enable_fpu(); enable_fpu();