diff --git a/src/stdio.rs b/src/stdio.rs index eca77d1..05ff4af 100644 --- a/src/stdio.rs +++ b/src/stdio.rs @@ -18,6 +18,15 @@ pub fn get_uart() -> &'static mut Uart { } } +#[macro_export] +macro_rules! print { + ($($arg:tt)*) => ({ + use core::fmt::Write; + let uart = crate::stdio::get_uart(); + write!(uart, $($arg)*); + }) +} + #[macro_export] macro_rules! println { ($($arg:tt)*) => ({