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