summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <c@localhost>2022-08-24 19:47:54 -0700
committerChristian Cunningham <c@localhost>2022-08-24 19:47:54 -0700
commitb883b484e7378e8daa953e844e4e93214197eb7e (patch)
tree6050d3f66de89413375677d0321d060a323eb1b6
parent8ad21a3a41c52bd0e22f58eff79f49f8d7dd5237 (diff)
Remove serial
-rw-r--r--src/serial.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/serial.rs b/src/serial.rs
deleted file mode 100644
index 792ddf7..0000000
--- a/src/serial.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-//! # Serial Writer
-//!
-//! Write to serial
-//!
-//! ```rust
-//! #[doc(hidden)]
-//! pub fn _serial_print(args: core::fmt::Arguments) {
-//! use core::fmt::Write;
-//! SERIAL1.lock(|serial| {
-//! ...
-//! });
-//! }
-//! ```
-
-/// Prints to the host through the serial interface.
-#[macro_export]
-macro_rules! serial_print {
- ($($arg:tt)*) => {
- $crate::serial::_print(format_args!($($arg)*));
- };
-}
-
-/// Prints to the host through the serial interface, appending a newline.
-#[macro_export]
-macro_rules! serial_println {
- () => ($crate::serial_print!("\n"));
- ($fmt:expr) => ($crate::serial_print!(concat!($fmt, "\n")));
- ($fmt:expr, $($arg:tt)*) => ($crate::serial_print!(
- concat!($fmt, "\n"), $($arg)*));
-}