Skip to content
Snippets Groups Projects
Commit 5ff5ff54 authored by Per's avatar Per
Browse files

println!

parent 14a64be0
No related branches found
No related tags found
No related merge requests found
......@@ -143,11 +143,11 @@ pub mod apb2 {
/// println over semihosting
#[macro_export]
macro_rules! println {
($e:expr) => {
($($e:tt)*) => {
{
extern crate cortex_m_semihosting;
use core::fmt::Write;
writeln!(cortex_m_semihosting::hio::hstdout().unwrap(), $e).unwrap();
writeln!(cortex_m_semihosting::hio::hstdout().unwrap(), $($e)*).unwrap();
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment