fix logging

master
Sebastien Bourdeauducq 2020-10-15 15:39:50 +08:00
parent 42c0c16648
commit e628928dca
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ use core::{cmp, str};
use log::{info, warn};
use libcortex_a9::asm;
use libboard_zynq::{timer::GlobalTimer, slcr};
use libboard_zynq::{timer::GlobalTimer, logger, slcr};
use libsupport_zynq::ram;
use libconfig::Config;
use libregister::RegisterW;
@ -55,6 +55,7 @@ fn identifier_read(buf: &mut [u8]) -> &str {
#[no_mangle]
pub fn main_core0() {
let mut timer = GlobalTimer::start();
logger::init().unwrap();
log::set_max_level(log::LevelFilter::Info);
info!("Rust Pitaya firmware starting...");