drone-stm32 0.8.3

Drone for STM32.
//! Collection of macros.

/// Macro for printing through ITM.
#[macro_export]
macro_rules! print {
  ($str:expr) => {
    $crate::itm::write_str($str);
  };

  ($($arg:tt)*) => {
    $crate::itm::write_fmt(format_args!($($arg)*));
  };
}

/// Macro for printing through ITM, with a newline.
#[macro_export]
macro_rules! println {
  () => {
    print!("\n");
  };

  ($fmt:expr) => {
    print!(concat!($fmt, "\n"));
  };

  ($fmt:expr, $($arg:tt)*) => {
    print!(concat!($fmt, "\n"), $($arg)*);
  };
}