fix logging
This commit is contained in:
parent
42c0c16648
commit
e628928dca
|
@ -7,7 +7,7 @@ use core::{cmp, str};
|
||||||
use log::{info, warn};
|
use log::{info, warn};
|
||||||
|
|
||||||
use libcortex_a9::asm;
|
use libcortex_a9::asm;
|
||||||
use libboard_zynq::{timer::GlobalTimer, slcr};
|
use libboard_zynq::{timer::GlobalTimer, logger, slcr};
|
||||||
use libsupport_zynq::ram;
|
use libsupport_zynq::ram;
|
||||||
use libconfig::Config;
|
use libconfig::Config;
|
||||||
use libregister::RegisterW;
|
use libregister::RegisterW;
|
||||||
|
@ -55,6 +55,7 @@ fn identifier_read(buf: &mut [u8]) -> &str {
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub fn main_core0() {
|
pub fn main_core0() {
|
||||||
let mut timer = GlobalTimer::start();
|
let mut timer = GlobalTimer::start();
|
||||||
|
logger::init().unwrap();
|
||||||
log::set_max_level(log::LevelFilter::Info);
|
log::set_max_level(log::LevelFilter::Info);
|
||||||
|
|
||||||
info!("Rust Pitaya firmware starting...");
|
info!("Rust Pitaya firmware starting...");
|
||||||
|
|
Loading…
Reference in New Issue