pub use veecle_osal_api::log::LogTarget;
#[cfg(not(target_os = "none"))]
use std::io::Write;
#[derive(Debug)]
pub struct Log;
impl LogTarget for Log {
type Time = crate::time::Time;
fn init() {
#[cfg(target_os = "none")]
rtt_target::rtt_init_print!();
}
fn println(args: core::fmt::Arguments<'_>) {
#[cfg(not(target_os = "none"))]
let _ = std::writeln!(std::io::stdout(), "{args}");
#[cfg(target_os = "none")]
rtt_target::rprintln!("{}", args);
}
}